JSON API免費(fèi)接口

電商接口

  • 淘寶商品搜索建議:

    測試鏈接
    http://suggest.taobao.com/sug?code=utf-8&q=商品關(guān)鍵字&callback=cb

    PS:callback是回調(diào)函數(shù)設(shè)定

物流接口

  • 快遞接口:

    測試鏈接
    http://www.kuaidi100.com/query?type=快遞公司代號&postid=快遞單號

    PS:快遞公司編碼:申通="shentong" EMS="ems" 順豐="shunfeng" 圓通="yuantong" 中通="zhongtong" 韻達(dá)="yunda" 天天="tiantian" 匯通="huitongkuaidi" 全峰="quanfengkuaidi" 德邦="debangwuliu" 宅急送="zhaijisong"

谷歌接口

  • FeedXml轉(zhuǎn)json接口:

    測試鏈接 官方文檔
    http://ajax.googleapis.com/ajax/services/feed/load?q=Feed地址&v=1.0

    備選參數(shù)callback:&callback=foo就會在json外面嵌套foo({})方便做jsonp使用。
    備選參數(shù)n:返回多少條記錄。

百度接口

  • 百度百科接口:

    測試鏈接
    http://baike.baidu.com/api/openapi/BaikeLemmaCardApi?scope=103&format=json&appid=379020&bk_key=關(guān)鍵字&bk_length=600

    查詢出錯(cuò)示例如下:查看原始頁面 {"error_code":"20000","error_msg":"search word not found"}

天氣接口

  • 百度接口:

    測試鏈接 官方文檔
    http://api.map.baidu.com/telematics/v3/weather?location=嘉興&output=json&ak=5slgyqGDENN7Sy7pw29IUvrZ

    PS:location:城市名或經(jīng)緯度 ak:開發(fā)者密鑰 output:默認(rèn)xml


  • 新浪接口:

    測試鏈接
    http://php.weather.sina.com.cn/iframe/index/w_cl.php?code=js&day=0&city=&dfc=1&charset=utf-8

    PS:參數(shù)中city如果給了參數(shù)就是相關(guān)的城市,否則會自動(dòng)判斷,day=0的話是今天。返回的參數(shù),大家看著辦吧,具體的我也不清楚,新浪沒給API。

您最近使用了:

收藏 菜單 QQ