-
Notifications
You must be signed in to change notification settings - Fork 2
/
列车信息各API.txt
29 lines (21 loc) · 1.28 KB
/
列车信息各API.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
始发站到终点站的train_no(会有重复):
https://kyfw.12306.cn/otn/resources/js/query/train_list.js
https://kyfw.12306.cn/otn/resources/js/query/train_list.js?scriptVersion=1.0
车站中文名到代码映射关系:
https://kyfw.12306.cn/otn/resources/js/framework/station_name.js
12306余票查询的Web网址:
https://kyfw.12306.cn/otn/leftTicket/init
余票信息查询:
https://kyfw.12306.cn/otn/leftTicket/query?leftTicketDTO.train_date=2018-07-05&leftTicketDTO.from_station=SHH&leftTicketDTO.to_station=CDW&purpose_codes=ADULT
另外需要注意这个余票接口经常变,目前已经发现的:
queryA
queryX
queryY
query
queryZ
车次信息的接口查到所有停靠站:
https://kyfw.12306.cn/otn/czxx/queryByTrainNo?train_no=5l0000D35273&from_station_telecode=AOH&to_station_telecode=ICW&depart_date=2018-07-01
座位价格查询:
https://kyfw.12306.cn/otn/leftTicket/queryTicketPrice?train_no=5l000D220665&from_station_no=01&to_station_no=25&seat_types=OMO&train_date=2018-07-05
https://kyfw.12306.cn/otn/leftTicket/queryTicketPrice?train_no=550000K29000&from_station_no=01&to_station_no=25&seat_types=1413&train_date=2018-07-05
https://kyfw.12306.cn/otn/leftTicket/queryTicketPrice?train_no=550000K35103&from_station_no=01&to_station_no=33&seat_types=1431&train_date=2018-07-05