铁路网数据接口


效果展示

接口:

url:https://api.kinlon.work/reptile/12306?startcity=合肥&endcity=成都&year=2021&mon=06&day=23

参数

startcity:起始城市
endcity:到达城市
year:年
mon:月
day:日

method:get

返回值(json):

train:车号
start_city:起始城市
end_city:到达城市
start_time:发车时间
end_time:到达时间
total_time:总时间

1
{"data": [{"train": "D2373", "start_city": "\u5408\u80a5\u5357", "end_city": "\u6210\u90fd\u4e1c", "start_time": "08:12", "end_time": "19:17", "total_time": "11\u5c0f\u65f65\u5206"}, {"train": "D3077", "start_city": "\u5408\u80a5\u5357", "end_city": "\u6210\u90fd\u4e1c", "start_time": "08:54", "end_time": "19:45", "total_time": "10\u5c0f\u65f651\u5206"}, {"train": "D353", "start_city": "\u5408\u80a5\u5357", "end_city": "\u6210\u90fd\u4e1c", "start_time": "09:28", "end_time": "20:27", "total_time": "10\u5c0f\u65f659\u5206"}, {"train": "D2255", "start_city": "\u5408\u80a5\u5357", "end_city": "\u6210\u90fd\u4e1c", "start_time": "09:33", "end_time": "20:33", "total_time": "11\u5c0f\u65f60\u5206"}, {"train": "D637", "start_city": "\u5408\u80a5\u5357", "end_city": "\u6210\u90fd\u4e1c", "start_time": "09:55", "end_time": "20:40", "total_time": "10\u5c0f\u65f645\u5206"}, {"train": "D2207", "start_city": "\u5408\u80a5\u5357", "end_city": "\u6210\u90fd\u4e1c", "start_time": "10:17", "end_time": "21:37", "total_time": "11\u5c0f\u65f620\u5206"}, {"train": "D2223", "start_city": "\u5408\u80a5\u5357", "end_city": "\u6210\u90fd\u4e1c", "start_time": "10:45", "end_time": "21:54", "total_time": "11\u5c0f\u65f69\u5206"}, {"train": "D953", "start_city": "\u5408\u80a5\u5357", "end_city": "\u6210\u90fd\u4e1c", "start_time": "11:10", "end_time": "20:58", "total_time": "9\u5c0f\u65f648\u5206"}, {"train": "D2263", "start_city": "\u5408\u80a5\u5357", "end_city": "\u6210\u90fd\u4e1c", "start_time": "12:01", "end_time": "23:18", "total_time": "11\u5c0f\u65f617\u5206"}, {"train": "K1157", "start_city": "\u5408\u80a5", "end_city": "\u6210\u90fd", "start_time": "21:05", "end_time": "17:00", "total_time": "19\u5c0f\u65f655\u5206"}]}

版权所有 拒绝商业用途