電商
京東價格信息:
http://p.3.cn/prices/mgets?skuIds=J_954086&type=1
ps:商品ID這么獲取:http://item.jd.com/954086.html
返回格式:
[
{
"op": "459.00",
"m": "859.00",
"id": "J_954086",
"p": "-1.00"
}
]
物流接口
快遞接口:
http://www.kuaidi100.com/query?type=快遞公司代號&postid=快遞單號
ps:快遞公司編碼:
申通=”shentong”
EMS=”ems”
順豐=”shunfeng”
圓通=”yuantong”
中通=”zhongtong”
韻達=”yunda”
天天=”tiantian”
匯通=”huitongkuaidi”
全峰=”quanfengkuaidi”
德邦=”debangwuliu”
宅急送=”zhaijisong”
返回結(jié)果
{
"message": "ok",
"nu": "8871********8562",
"ischeck": "0",
"condition": "00",
"com": "yuantong",
"status": "200",
"state": "0",
"data": [
{
"time": "2017-11-16 11:38:16",
"ftime": "2017-11-16 11:38:16",
"context": "濟南轉(zhuǎn)運中心 已收入",
"location": null
},
{
"time": "2017-11-14 18:35:33",
"ftime": "2017-11-14 18:35:33",
"context": "合肥轉(zhuǎn)運中心 已發(fā)出,下一站 濟南轉(zhuǎn)運中心",
"location": null
},
{
"time": "2017-11-14 18:34:50",
"ftime": "2017-11-14 18:34:50",
"context": "合肥轉(zhuǎn)運中心 已收入",
"location": null
},
{
"time": "2017-11-14 14:17:14",
"ftime": "2017-11-14 14:17:14",
"context": "安徽省合肥市高新區(qū)公司 已發(fā)出,下一站 合肥轉(zhuǎn)運中心",
"location": null
},
{
"time": "2017-11-14 12:53:52",
"ftime": "2017-11-14 12:53:52",
"context": "安徽省合肥市高新區(qū)公司 已打包",
"location": null
},
{
"time": "2017-11-14 11:28:57",
"ftime": "2017-11-14 11:28:57",
"context": "安徽省合肥市高新區(qū)公司(點擊查詢電話) 已攬收",
"location": null
}
]
}
谷歌接口
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://api.map.baidu.com/telematics/v3/weather?location=嘉興&output=json&ak=5slgyqGDENN7Sy7pw29IUvrZ
location:城市名或經(jīng)緯度 ak:開發(fā)者密鑰 output:默認(rèn)xml
音樂接口
QQ空間音樂接口
http://qzone-music.qq.com/fcg-bin/cgi_playlist_xml.fcg?uin=QQ號碼&json=1&g_tk=1916754934
返回:
jsonCallback({
code: 0,
subcode: 0,
qqmusic: {
curtime: 1510819478,
issmarter: 0,
systemtime: 1510819478,
iyellowbgm: 0,
xmusicnum: 0,
picurl: "",
playlist: {
song: [
]
}
}
})
多米音樂接口
http://v5.pc.duomi.com/search-ajaxsearch-searchall?kw=關(guān)鍵字&pi=頁碼&pz=每頁音樂數(shù)
返回事例:
{
"album_offset": 0,
"albums": [
{
"artists": [
{
"id": 51031253,
"name": "Love",
"num_albums": 0,
"num_tracks": 0,
"portrait": "http://pic.cdn.duomi.com/imageproxy2/dimgm/scaleImage?url=http://img.kxting.cn//p1/09/09/70154280.jpg&w=150&h=150&s=100&c=0&o=0&m=",
"valid": true
},
{
"id": 51043484,
"name": "小愛",
"num_albums": 1,
"num_tracks": 2,
"portrait": "http://pic.cdn.duomi.com/imageproxy2/dimgm/scaleImage?url=http://img.kxting.cn//p1/23/12/70788213.jpg&w=150&h=150&s=100&c=0&o=0&m=",
"valid": true
},
{
"id": 61594324,
"name": "Ivy(韓國)",
"num_albums": 0,
"num_tracks": 0,
"portrait": "http://pic.cdn.duomi.com/imageproxy2/dimgm/scaleImage?url=http://img.kxting.cn//p1/17/18/70824849.jpg&w=150&h=150&s=100&c=0&o=0&m=",
"valid": true
},
{
"id": 50000185,
"name": "洪愛莉",
"num_albums": 0,
"num_tracks": 0,
"portrait": "http://pic.cdn.duomi.com/imageproxy2/dimgm/scaleImage?url=http://img.kxting.cn//p1/27/24/70232604.jpg&w=150&h=150&s=100&c=0&o=0&m=",
"valid": true
},
{
"id": 51042130,
"name": "愛名",
"num_albums": 0,
"num_tracks": 0,
"portrait": "http://pic.cdn.duomi.com/imageproxy2/dimgm/scaleImage?url=http://img.kxting.cn//p1/21/09/70553448.jpg&w=150&h=150&s=100&c=0&o=0&m=",
"valid": true
}
],
"dm_error": 0,
"error_msg": "操作成功",
"recommend": 0,
"total_albums": 1267,
"total_artists": 62,
"total_tracks": 5014,
"track_offset": 0,
"tracks": [
{
"album": {
"cover": "/p1/08/04/72395734.jpg",
"id": 2723405,
"name": "謝謝你@我"
},
"artists": [
{
"id": 61704635,
"name": "1931女子偶像組合",
"num_albums": 34,
"num_tracks": 48,
"portrait": "",
"valid": true
}
],
"availability": "1110",
"dlyric": "",
"id": 27995420,
"medias": [
{
"bitrate": 320,
"p2purl": "7AF7D143096C6D7D59050000007540527B00000095.mp3"
}
],
"mv": 0,
"slyric": "",
"title": "愛",
"isdown": "1",
"isplay": "1"
}
]
}
soso接口
http://cgi.music.soso.com/fcgi-bin/fcg_search_xmldata.q?source=10&w=關(guān)鍵字&perpage=1&ie=utf-8
返回示例:
searchJsonCallback({
retcode: 0,
subcode: 0,
totalnum: 11,
curnum: 1,
curpage: 1,
keyword: "hahah",
qcnum: 1,
g_searchid: "13686119657703615",
qc: [
"哈哈哈"
],
list: [
{
source: 12,
songid: 961933,
musicid: 961933,
musicsingerid: 22617,
musicalbumid: 81554,
songname: "哈哈哈",
singerid: 22617,
singername: "董育君",
albumid: 81554,
albumname: "飛",
pubtime: 1316102400,
songurl: "http://stream4.qqmusic.qq.com/12961933.wma",
conn: 20,
fromat: "qqhq;common;mp3common;wmacommon;crcommon",
download: 1,
size: 1978603,
interval: 243000,
songmid: "001Gf2Pl0yCdY7",
singermid: "004GRZQ43w9uGc",
albummid: "000CvhOB3MqiEB"
}
]
})
視頻接口
土豆接口
http://api.tudou.com/v3/gw?method=album.item.get&appKey=Appkey&format=json&albumId=視頻劇集ID&pageNo=當(dāng)前頁&pageSize=每頁顯示
地圖接口
阿里云根據(jù)地區(qū)名獲取經(jīng)緯度接口
http://gc.ditu.aliyun.com/geocoding?a=蘇州市
返回事例:
{
"lon": 120.58531,
"level": 2,
"address": "",
"cityName": "",
"alevel": 4,
"lat": 31.29888
}
參數(shù)解釋: 緯度,經(jīng)度type 001 (100代表道路讥蟆,010代表POI,001代表門址,111可以同時顯示前三項)
阿里云根據(jù)經(jīng)緯度獲取地區(qū)名接口
http://gc.ditu.aliyun.com/regeocoding?l=39.938133,116.395739&type=001
返回事例:
{
"queryLocation": [
39.938133,
116.395739
],
"addrList": [
{
"type": "doorPlate",
"status": 0,
"name": "",
"admCode": "",
"admName": "",
"nearestPoint": [],
"distance": -1
}
]
}
IP接口
新浪接口(ip值為空的時候 獲取本地的)
http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip=218.4.255.255
返回事例
{
"ret": 1,
"start": -1,
"end": -1,
"country": "中國",
"province": "山東",
"city": "濟南",
"district": "",
"isp": "",
"type": "",
"desc": ""
}
淘寶接口
http://ip.taobao.com/service/getIpInfo.php?ip=63.223.108.42
返回格式:
{
"code": 0,
"data": {
"country": "美國",
"country_id": "US",
"area": "西部",
"area_id": "US_WT",
"region": "華盛頓州",
"region_id": "US_WA",
"city": "",
"city_id": "-1",
"county": "",
"county_id": "-1",
"isp": "電訊盈科",
"isp_id": "3000107",
"ip": "63.223.108.42"
}
}
手機信息查詢接口
淘寶網(wǎng)手機信息接口:
http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=手機號
百付寶接口:
https://www.baifubao.com/callback?cmd=1059&callback=phone&phone=手機號