12306⽕车票查询api调⽤⽂档
在即将到来的双⼗⼆,在聚合数据平台上的12306⽕车票查询api将参与活动,⾸先我们将分享下12306⽕车票查询api代码⽂档及返回⽰例,可查询实时⽕车票余票,包括车次、车次始发站、车次终点站、出发时间、到达时间、车次类型、总历时时间等等。
接⼝名称:
幼儿园教育心得接⼝平台:
⽀持格式:JSON/XML
请求⽅式:HTTP GET/POST
12306⽕车票查询api调⽤代码JSON返回⽰例:
{
"reason": "查询成功",
"result": [
陈小纭八卦{
"train_no": "D2287", /*车次*/
"start_station_name": "上海虹桥",  /*车次始发站*/
"end_station_name": "深圳北",  /*车次终点站*/
"from_station_name": "上海虹桥",  /*出发站*/
"to_station_name": "温州南",  /*到达站*/
"start_time": "06:25",  /*出发时间*/
"arrive_time": "10:53",  /*到达时间*/
"train_class_name": "动车",  /*车次类型*/
"day_difference": "0",  /*历时天数*/沃尔沃贵吗
"lishi": "04:28",  /*总历时时间*/
"gr_num": "--", /*⾼级软卧:-- 说明⽆该席位*/
"qt_num": "--", /*其他*/
"rw_num": "--", /*软卧*/
"rz_num": "--", /*软座*/
"tz_num": "--", /*特等座*/
"wz_num": "⽆", /*⽆座*/
"yw_num": "--", /*硬卧*/
"yz_num": "--", /*硬座*/
"ze_num": "⽆", /*⼆等座*/
"zy_num": "⽆", /*⼀等座*/
"swz_num": "--" /*商务座*/
},
{
"train_no": "D3203",
"start_station_name": "上海虹桥",
"end_station_name": "厦门北",
"from_station_name": "上海虹桥",
花千骨南弦月
"to_station_name": "温州南",
"start_time": "06:30",
"arrive_time": "11:09",
"train_class_name": "动车",
"day_difference": "0",
"lishi": "04:39",林丹和曾小贤
"gr_num": "--",
"qt_num": "--",
"rw_num": "--",
"rz_num": "--",
"tz_num": "--",
"wz_num": "⽆",
"yw_num": "--",
"yz_num": "--",
"ze_num": "⽆",
"zy_num": "⽆",
"swz_num": "--"
},
{
"train_no": "G7501",
"start_station_name": "上海虹桥",
"end_station_name": "苍南",
"from_station_name": "上海虹桥",
"to_station_name": "温州南",
"start_time": "07:00",
"arrive_time": "11:00",
"train_class_name": "",
"day_difference": "0",
"lishi": "04:00",
"gr_num": "--",
"qt_num": "--",
"rw_num": "--",
张子萱 匆匆那年
"rz_num": "--",
"tz_num": "--",
"wz_num": "165",
"yw_num": "--",
"yz_num": "--",
"ze_num": "⽆",
"zy_num": "⽆",
"swz_num": "15"
}
],
"error_code": 0
}
数据接⼝API服务也是⼤数据企业的重要⽅向,数据API是每⼀个开发者必备的,也是需求量最⼤的数据产品。国内最⼤的基础数据服务商聚合数据正式上线了“12·12暖冬不如低价”年末⼤促活动,主打汽车和⾦融两类数据接⼝,⽐如短信API和车辆违章查询都降到3分5⼀次,加油卡充值低⾄9.8折起,在⾏业内很有竞争⼒,当然它最⼤的优势还在于他开放的免费api接⼝,吸引了⼤量开发者。