有道身份證查詢介面API
一、返回XML格式資料:
1) 介面地址:http://www.youdao.com/smartresult-xml/search.s?type=id&q=身份證號
2) 引數說明:q : 要查詢的身份證
3) 返回XML資料:
<?xml version="1.0" encoding="gbk"?> <smartresult> <product type="identitycard"> <code>370782196402121133</code> <location>山東省濰坊市諸城市</location> <birthday>19640212</birthday> <gender>m</gender> </product> </smartresult> |
二、返回JSON格式資料:
1) 介面地址:http://www.youdao.com/smartresult-xml/search.s?jsFlag=true&type=id&q=身份證號
2) 引數說明:q :要查詢的身份證
3) 返回JSON資料:
updateCall(1, {‘product’:'identitycard’,'code’:’321528198807303319′,’location’:'湖北省宜昌市長陽土家族自治縣’,'birthday’:’19880730′,’gender’:'m’} , ”); |
有道手機歸屬地查詢介面API
一、返回XML格式資料:
1) 介面地址:
2) 引數說明:
Ø type : 引數手機歸屬地固定為mobile
Ø q : 手機號碼
3) 返回XML資料:
<?xml version="1.0" encoding="gbk"?> <smartresult> <product type="mobile"> <phonenum>1389210111</phonenum> <location>陝西 西安</location> </product> </smartresult> |
二、返回JSON格式資料:
1) 介面地址:
http://www.youdao.com/smartresult-xml/search.s?jsFlag=true&type=mobile&q=手機號碼
2) 返回JSON資料:
|
淘寶網手機歸屬地查詢介面API
API地址: http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=15850781443
引數:tel:手機號碼
返回:JSON
__GetZoneResult_ = { mts:'1862933', province:'陝西', catName:'中國聯通', telString:'18629334760' } |
火車票餘票介面API使用方法
介面說明:
支援POST/GET方式提交資料,返回JSON格式資料。另外請保持引數UTF8格式(本文示例url不是utf8只是為了演示所用,當然高階一點的瀏覽器如火狐,chorme會自動把url轉換為utf8格式,也是可以使用的)
餘票火車資訊查詢
查詢URL格式:
12306.php10086.com/yupiao.php?act=remain&arriveStation=上海&date=2012-02-02&startStation=杭州
引數格式:
act,是查詢型別,remain表示為餘票查詢型別
date: [yyyy-mm-dd格式]
startStation: 發站[中文 UTF8]
arriveStation: 到站[中文 UTF8]
json資料說明:
title: 資訊標題
station: 車站資訊
item: 車次資訊列表
trainCode: 序號
trainCode: 車次
startStation: 發站
arriveStation: 到站
startTime: 發時
endTime: 到時
takeTime: 歷時
mileage:里程
hard_seat_prc: 硬座(價格)
soft_seat_prc: 軟座(價格)
hard_sleeper1_prc: 硬臥上(價格)
hard_sleeper2_prc: 硬臥中(價格)
hard_sleeper3_prc: 硬臥下(價格)
soft_sleeper1_prc: 軟臥上(價格)
soft_sleeper2_prc: 軟臥下(價格)
one_seat_prc: 一等座(價格)
two_seat_prc: 二等座(價格)
vag_sleeper1_prc: 高階軟臥上(價格)
vag_sleeper2_prc: 高階軟臥下(價格)
trainGrade: 等級
餘票欄位:(PS:這些資料目前無值)
********************************
hard_seat: 硬座(餘票)
soft_seat: 軟座(餘票)
hard_sleeper1: 硬臥上(餘票)
hard_sleeper2: 硬臥中(餘票)
hard_sleeper3: 硬臥下(餘票)
soft_sleeper1: 軟臥上(餘票)
soft_sleeper2: 軟臥下(餘票)
best_seat: 特等座(餘票)
one_seat: 一等座(餘票)
two_seat: 二等座(餘票)
vag_sleeper1: 高階軟臥上(餘票)
vag_sleeper2: 高階軟臥下(餘票)
none_seat: 無座(餘票)
**********************
火車車次查詢
act,是查詢型別,code表示為車次查詢型別
trainCode: 車次[字母+數字]
Json:
title: 資訊標題
head: 頭部標題
item: 車次資訊
飛機機票查詢
act,是查詢型別,plane表示為機票查詢型別
date: [yyyy-mm-dd]
departureAirport: 起飛[中文 UTF8]
arrivalAirport: 到達[中文 UTF8]
json資料:
title: 資訊標題
item: 資訊列表
flightCode: 航班號
carrierCom: 航空公司
planeType: 機型
departureTime: 起飛時間
arrivalTime: 降落時間
costTime: 飛行時間
departureAirport: 起飛機場
arrivalAirport: 降落機場
correctness: 準點率
delay: 平均延時