您现在的位置是:首页> api 个人博客模板

12306火车票查询接口

无痕小Q个人博客 2020-03-10 23:59:20主页 2395人已围观

简介自己写的一个12306火车票查询接口,和12306网站上的一摸一样

接口地址https://yzc136.cn/class/api/open/railway_ticket

请求方式POST

请求参数 ( 参数名: from_station , 介绍: 这里是出发站 , 参数: 北京 。) ( 参数名: to_station , 介绍: 这里是到达站 , 参数: 大同 。)

返回示例:

{"errors":false,"data":{"validateMessagesShowId":"_validatorMessage","status":true,"httpstatus":200,"data":[{"queryLeftNewDTO":{"train_no":"25000026020P","station_train_code":"2603","start_station_telecode":"QTP","start_station_name":"秦皇岛","end_station_telecode":"DTV","end_station_name":"大同","from_station_telecode":"BJP","from_station_name":"北京","to_station_telecode":"DTV","to_station_name":"大同","start_time":"00:18","arrive_time":"06:33","day_difference":"0","train_class_name":"特快","lishi":"06:15","is_support_card":"0","control_train_day":"20301231","start_train_date":"20200322","seat_feature":"W3431333","yp_ex":"10401030","train_seat_feature":"3","controlled_train_flag":"0","controlled_train_message":"正常车次,不受控","rw_num":"有","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"有","yb_num":"-1","yw_num":"有","yz_num":"有","ze_num":"-1","zy_num":"-1","swz_num":"-1","wz_seat_type_code":"1","yz_price":"00475","rz_price":"--","yw_price":"00935","rw_price":"01465","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"00475"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"1300000K5509","station_train_code":"K55","start_station_telecode":"DLT","start_station_name":"大连","end_station_telecode":"BTC","end_station_name":"包头","from_station_telecode":"BJP","from_station_name":"北京","to_station_telecode":"DTV","to_station_name":"大同","start_time":"02:48","arrive_time":"08:57","day_difference":"0","train_class_name":"","lishi":"06:09","is_support_card":"0","control_train_day":"20301231","start_train_date":"20200322","seat_feature":"W3431333","yp_ex":"10401030","train_seat_feature":"3","controlled_train_flag":"0","controlled_train_message":"正常车次,不受控","rw_num":"有","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"有","yb_num":"-1","yw_num":"有","yz_num":"有","ze_num":"-1","zy_num":"-1","swz_num":"-1","wz_seat_type_code":"1","yz_price":"00535","rz_price":"--","yw_price":"00995","rw_price":"01525","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"00535"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"120000K96009","station_train_code":"K961","start_station_telecode":"SBT","start_station_name":"沈阳北","end_station_telecode":"YNV","end_station_name":"运城","from_station_telecode":"BJP","from_station_name":"北京","to_station_telecode":"DTV","to_station_name":"大同","start_time":"02:54","arrive_time":"09:08","day_difference":"0","train_class_name":"","lishi":"06:14","is_support_card":"0","control_train_day":"20301231","start_train_date":"20200322","seat_feature":"W3431333","yp_ex":"10401030","train_seat_feature":"3","controlled_train_flag":"0","controlled_train_message":"正常车次,不受控","rw_num":"有","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"有","yb_num":"-1","yw_num":"有","yz_num":"有","ze_num":"-1","zy_num":"-1","swz_num":"-1","wz_seat_type_code":"1","yz_price":"00535","rz_price":"--","yw_price":"00995","rw_price":"01525","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"00535"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"490000Z35000","station_train_code":"Z351","start_station_telecode":"QDK","start_station_name":"青岛","end_station_telecode":"BTC","end_station_name":"包头","from_station_telecode":"BJP","from_station_name":"北京","to_station_telecode":"DTV","to_station_name":"大同","start_time":"03:30","arrive_time":"09:35","day_difference":"0","train_class_name":"","lishi":"06:05","is_support_card":"0","control_train_day":"20301231","start_train_date":"20200322","seat_feature":"W3431333","yp_ex":"10401030","train_seat_feature":"3","controlled_train_flag":"0","controlled_train_message":"正常车次,不受控","rw_num":"有","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"有","yb_num":"-1","yw_num":"有","yz_num":"有","ze_num":"-1","zy_num":"-1","swz_num":"-1","wz_seat_type_code":"1","yz_price":"00535","rz_price":"--","yw_price":"00995","rw_price":"01525","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"00535"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"24000G250110","station_train_code":"G2501","start_station_telecode":"VAP","start_station_name":"北京北","end_station_telecode":"DMV","end_station_name":"大同南","from_station_telecode":"VAP","from_station_name":"北京北","to_station_telecode":"DMV","to_station_name":"大同南","start_time":"24:00","arrive_time":"24:00","day_difference":"0","train_class_name":"","lishi":"99:59","is_support_card":"0","control_train_day":"","start_train_date":"20200323","seat_feature":"","yp_ex":"","train_seat_feature":"","controlled_train_flag":"1","controlled_train_message":"列车停运","rw_num":"-1","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"-1","yb_num":"-1","yw_num":"-1","yz_num":"-1","ze_num":"-1","zy_num":"-1","swz_num":"-1","yz_price":"--","rz_price":"--","yw_price":"--","rw_price":"--","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"--"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"24000G250520","station_train_code":"G2505","start_station_telecode":"VAP","start_station_name":"北京北","end_station_telecode":"DMV","end_station_name":"大同南","from_station_telecode":"VAP","from_station_name":"北京北","to_station_telecode":"DMV","to_station_name":"大同南","start_time":"08:40","arrive_time":"11:00","day_difference":"0","train_class_name":"","lishi":"02:20","is_support_card":"0","control_train_day":"20301231","start_train_date":"20200323","seat_feature":"O3M393","yp_ex":"O0M090","train_seat_feature":"3","controlled_train_flag":"0","controlled_train_message":"正常车次,不受控","rw_num":"-1","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"-1","yb_num":"-1","yw_num":"-1","yz_num":"-1","ze_num":"有","zy_num":"有","swz_num":"有","yz_price":"--","rz_price":"--","yw_price":"--","rw_price":"--","gr_price":"--","zy_price":"02590","ze_price":"01620","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"04870","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"--"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"240000K26311","station_train_code":"K263","start_station_telecode":"BJP","start_station_name":"北京","end_station_telecode":"BTC","end_station_name":"包头","from_station_telecode":"BJP","from_station_name":"北京","to_station_telecode":"DTV","to_station_name":"大同","start_time":"09:25","arrive_time":"15:55","day_difference":"0","train_class_name":"","lishi":"06:30","is_support_card":"0","control_train_day":"20301231","start_train_date":"20200323","seat_feature":"W3431333","yp_ex":"10401030","train_seat_feature":"3","controlled_train_flag":"0","controlled_train_message":"正常车次,不受控","rw_num":"有","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"有","yb_num":"-1","yw_num":"有","yz_num":"有","ze_num":"-1","zy_num":"-1","swz_num":"-1","wz_seat_type_code":"1","yz_price":"00535","rz_price":"--","yw_price":"00995","rw_price":"01525","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"00535"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"24000G250720","station_train_code":"G2507","start_station_telecode":"QIP","start_station_name":"清河","end_station_telecode":"DMV","end_station_name":"大同南","from_station_telecode":"QIP","from_station_name":"清河","to_station_telecode":"DMV","to_station_name":"大同南","start_time":"24:00","arrive_time":"24:00","day_difference":"0","train_class_name":"","lishi":"99:59","is_support_card":"0","control_train_day":"","start_train_date":"20200323","seat_feature":"","yp_ex":"","train_seat_feature":"","controlled_train_flag":"1","controlled_train_message":"列车停运","rw_num":"-1","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"-1","yb_num":"-1","yw_num":"-1","yz_num":"-1","ze_num":"-1","zy_num":"-1","swz_num":"-1","yz_price":"--","rz_price":"--","yw_price":"--","rw_price":"--","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"--"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"240000K39507","station_train_code":"K395","start_station_telecode":"BJP","start_station_name":"北京","end_station_telecode":"WXC","end_station_name":"乌海西","from_station_telecode":"BJP","from_station_name":"北京","to_station_telecode":"DTV","to_station_name":"大同","start_time":"10:51","arrive_time":"16:59","day_difference":"0","train_class_name":"","lishi":"06:08","is_support_card":"0","control_train_day":"20301231","start_train_date":"20200323","seat_feature":"W3431333","yp_ex":"10401030","train_seat_feature":"3","controlled_train_flag":"0","controlled_train_message":"正常车次,不受控","rw_num":"有","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"有","yb_num":"-1","yw_num":"有","yz_num":"有","ze_num":"-1","zy_num":"-1","swz_num":"-1","wz_seat_type_code":"1","yz_price":"00535","rz_price":"--","yw_price":"00995","rw_price":"01525","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"00535"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"560000Z28231","station_train_code":"Z283","start_station_telecode":"HZH","start_station_name":"杭州","end_station_telecode":"BTC","end_station_name":"包头","from_station_telecode":"BJP","from_station_name":"北京","to_station_telecode":"DTV","to_station_name":"大同","start_time":"11:07","arrive_time":"17:07","day_difference":"0","train_class_name":"","lishi":"06:00","is_support_card":"0","control_train_day":"20301231","start_train_date":"20200322","seat_feature":"W3431333","yp_ex":"10401030","train_seat_feature":"3","controlled_train_flag":"0","controlled_train_message":"正常车次,不受控","rw_num":"有","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"有","yb_num":"-1","yw_num":"有","yz_num":"有","ze_num":"-1","zy_num":"-1","swz_num":"-1","wz_seat_type_code":"1","yz_price":"00535","rz_price":"--","yw_price":"00995","rw_price":"01525","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"00535"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"24000K11770P","station_train_code":"K1177","start_station_telecode":"BJP","start_station_name":"北京","end_station_telecode":"YIJ","end_station_name":"银川","from_station_telecode":"BJP","from_station_name":"北京","to_station_telecode":"DTV","to_station_name":"大同","start_time":"24:00","arrive_time":"24:00","day_difference":"0","train_class_name":"","lishi":"99:59","is_support_card":"0","control_train_day":"","start_train_date":"20200323","seat_feature":"","yp_ex":"","train_seat_feature":"","controlled_train_flag":"1","controlled_train_message":"列车运行图调整,暂停发售","rw_num":"-1","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"-1","yb_num":"-1","yw_num":"-1","yz_num":"-1","ze_num":"-1","zy_num":"-1","swz_num":"-1","yz_price":"--","rz_price":"--","yw_price":"--","rw_price":"--","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"--"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"24000G251300","station_train_code":"G2513","start_station_telecode":"QIP","start_station_name":"清河","end_station_telecode":"DMV","end_station_name":"大同南","from_station_telecode":"QIP","from_station_name":"清河","to_station_telecode":"DMV","to_station_name":"大同南","start_time":"14:22","arrive_time":"16:28","day_difference":"0","train_class_name":"","lishi":"02:06","is_support_card":"0","control_train_day":"20301230","start_train_date":"20200323","seat_feature":"O3M393","yp_ex":"O0M090","train_seat_feature":"3","controlled_train_flag":"0","controlled_train_message":"正常车次,不受控","rw_num":"-1","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"-1","yb_num":"-1","yw_num":"-1","yz_num":"-1","ze_num":"有","zy_num":"有","swz_num":"有","yz_price":"--","rz_price":"--","yw_price":"--","rw_price":"--","gr_price":"--","zy_price":"02420","ze_price":"01510","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"04540","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"--"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"24000G251510","station_train_code":"G2515","start_station_telecode":"VAP","start_station_name":"北京北","end_station_telecode":"DMV","end_station_name":"大同南","from_station_telecode":"VAP","from_station_name":"北京北","to_station_telecode":"DMV","to_station_name":"大同南","start_time":"24:00","arrive_time":"24:00","day_difference":"0","train_class_name":"","lishi":"99:59","is_support_card":"0","control_train_day":"","start_train_date":"20200323","seat_feature":"","yp_ex":"","train_seat_feature":"","controlled_train_flag":"1","controlled_train_message":"列车停运","rw_num":"-1","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"-1","yb_num":"-1","yw_num":"-1","yz_num":"-1","ze_num":"-1","zy_num":"-1","swz_num":"-1","yz_price":"--","rz_price":"--","yw_price":"--","rw_price":"--","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"--"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"240000113306","station_train_code":"1133","start_station_telecode":"BXP","start_station_name":"北京西","end_station_telecode":"WXC","end_station_name":"乌海西","from_station_telecode":"BXP","from_station_name":"北京西","to_station_telecode":"DTV","to_station_name":"大同","start_time":"15:30","arrive_time":"22:23","day_difference":"0","train_class_name":"直特","lishi":"06:53","is_support_card":"0","control_train_day":"20301231","start_train_date":"20200323","seat_feature":"W3431333","yp_ex":"10401030","train_seat_feature":"3","controlled_train_flag":"0","controlled_train_message":"正常车次,不受控","rw_num":"有","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"有","yb_num":"-1","yw_num":"有","yz_num":"有","ze_num":"-1","zy_num":"-1","swz_num":"-1","wz_seat_type_code":"1","yz_price":"00475","rz_price":"--","yw_price":"00935","rw_price":"01465","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"00475"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"24000G252100","station_train_code":"G2521","start_station_telecode":"QIP","start_station_name":"清河","end_station_telecode":"DMV","end_station_name":"大同南","from_station_telecode":"QIP","from_station_name":"清河","to_station_telecode":"DMV","to_station_name":"大同南","start_time":"24:00","arrive_time":"24:00","day_difference":"0","train_class_name":"","lishi":"99:59","is_support_card":"0","control_train_day":"","start_train_date":"20200323","seat_feature":"","yp_ex":"","train_seat_feature":"","controlled_train_flag":"1","controlled_train_message":"列车停运","rw_num":"-1","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"-1","yb_num":"-1","yw_num":"-1","yz_num":"-1","ze_num":"-1","zy_num":"-1","swz_num":"-1","yz_price":"--","rz_price":"--","yw_price":"--","rw_price":"--","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"--"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"24000G252310","station_train_code":"G2523","start_station_telecode":"QIP","start_station_name":"清河","end_station_telecode":"DMV","end_station_name":"大同南","from_station_telecode":"QIP","from_station_name":"清河","to_station_telecode":"DMV","to_station_name":"大同南","start_time":"24:00","arrive_time":"24:00","day_difference":"0","train_class_name":"","lishi":"99:59","is_support_card":"0","control_train_day":"","start_train_date":"20200323","seat_feature":"","yp_ex":"","train_seat_feature":"","controlled_train_flag":"1","controlled_train_message":"列车停运","rw_num":"-1","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"-1","yb_num":"-1","yw_num":"-1","yz_num":"-1","ze_num":"-1","zy_num":"-1","swz_num":"-1","yz_price":"--","rz_price":"--","yw_price":"--","rw_price":"--","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"--"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"240000K5730X","station_train_code":"K573","start_station_telecode":"BXP","start_station_name":"北京西","end_station_telecode":"DYC","end_station_name":"东胜西","from_station_telecode":"BXP","from_station_name":"北京西","to_station_telecode":"DTV","to_station_name":"大同","start_time":"20:37","arrive_time":"02:41","day_difference":"1","train_class_name":"","lishi":"06:04","is_support_card":"0","control_train_day":"20301231","start_train_date":"20200323","seat_feature":"W3431333","yp_ex":"10401030","train_seat_feature":"3","controlled_train_flag":"0","controlled_train_message":"正常车次,不受控","rw_num":"有","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"有","yb_num":"-1","yw_num":"有","yz_num":"有","ze_num":"-1","zy_num":"-1","swz_num":"-1","wz_seat_type_code":"1","yz_price":"00535","rz_price":"--","yw_price":"00995","rw_price":"01525","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"00535"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"2400000K410F","station_train_code":"K41","start_station_telecode":"BJP","start_station_name":"北京","end_station_telecode":"DHJ","end_station_name":"敦煌","from_station_telecode":"BJP","from_station_name":"北京","to_station_telecode":"DTV","to_station_name":"大同","start_time":"24:00","arrive_time":"24:00","day_difference":"1","train_class_name":"","lishi":"99:59","is_support_card":"0","control_train_day":"","start_train_date":"20200323","seat_feature":"","yp_ex":"","train_seat_feature":"","controlled_train_flag":"1","controlled_train_message":"列车运行图调整,暂停发售","rw_num":"-1","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"-1","yb_num":"-1","yw_num":"-1","yz_num":"-1","ze_num":"-1","zy_num":"-1","swz_num":"-1","yz_price":"--","rz_price":"--","yw_price":"--","rw_price":"--","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"--"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"240000Z1790J","station_train_code":"Z179","start_station_telecode":"BXP","start_station_name":"北京西","end_station_telecode":"WAR","end_station_name":"乌鲁木齐","from_station_telecode":"BXP","from_station_name":"北京西","to_station_telecode":"DTV","to_station_name":"大同","start_time":"24:00","arrive_time":"24:00","day_difference":"1","train_class_name":"","lishi":"99:59","is_support_card":"0","control_train_day":"","start_train_date":"20200323","seat_feature":"","yp_ex":"","train_seat_feature":"","controlled_train_flag":"1","controlled_train_message":"列车运行图调整,暂停发售","rw_num":"-1","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"-1","yb_num":"-1","yw_num":"-1","yz_num":"-1","ze_num":"-1","zy_num":"-1","swz_num":"-1","yz_price":"--","rz_price":"--","yw_price":"--","rw_price":"--","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"--"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"630000K6000J","station_train_code":"K597","start_station_telecode":"GZQ","start_station_name":"广州","end_station_telecode":"BTC","end_station_name":"包头","from_station_telecode":"BXP","from_station_name":"北京西","to_station_telecode":"DTV","to_station_name":"大同","start_time":"21:32","arrive_time":"03:34","day_difference":"1","train_class_name":"","lishi":"06:02","is_support_card":"0","control_train_day":"20301231","start_train_date":"20200322","seat_feature":"W3431333","yp_ex":"10401030","train_seat_feature":"3","controlled_train_flag":"0","controlled_train_message":"正常车次,不受控","rw_num":"有","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"有","yb_num":"-1","yw_num":"有","yz_num":"有","ze_num":"-1","zy_num":"-1","swz_num":"-1","wz_seat_type_code":"1","yz_price":"00535","rz_price":"--","yw_price":"00995","rw_price":"01525","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"00535"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"2400000K890S","station_train_code":"K89","start_station_telecode":"BXP","start_station_name":"北京西","end_station_telecode":"HHC","end_station_name":"呼和浩特","from_station_telecode":"BXP","from_station_name":"北京西","to_station_telecode":"DTV","to_station_name":"大同","start_time":"22:17","arrive_time":"04:19","day_difference":"1","train_class_name":"","lishi":"06:02","is_support_card":"0","control_train_day":"20301231","start_train_date":"20200323","seat_feature":"W3431333","yp_ex":"10403010","train_seat_feature":"3","controlled_train_flag":"0","controlled_train_message":"正常车次,不受控","rw_num":"有","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"有","yb_num":"-1","yw_num":"有","yz_num":"有","ze_num":"-1","zy_num":"-1","swz_num":"-1","wz_seat_type_code":"1","yz_price":"00535","rz_price":"--","yw_price":"00995","rw_price":"01525","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"00535"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"240000K69507","station_train_code":"K695","start_station_telecode":"BJP","start_station_name":"北京","end_station_telecode":"DTV","end_station_name":"大同","from_station_telecode":"BJP","from_station_name":"北京","to_station_telecode":"DTV","to_station_name":"大同","start_time":"23:32","arrive_time":"06:05","day_difference":"1","train_class_name":"","lishi":"06:33","is_support_card":"0","control_train_day":"20301231","start_train_date":"20200323","seat_feature":"W3431333","yp_ex":"10401030","train_seat_feature":"3","controlled_train_flag":"0","controlled_train_message":"正常车次,不受控","rw_num":"有","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"有","yb_num":"-1","yw_num":"有","yz_num":"有","ze_num":"-1","zy_num":"-1","swz_num":"-1","wz_seat_type_code":"1","yz_price":"00535","rz_price":"--","yw_price":"00995","rw_price":"01525","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"00535"},"buttonTextInfo":""},{"queryLeftNewDTO":{"train_no":"250000K8880T","station_train_code":"K885","start_station_telecode":"TJP","start_station_name":"天津","end_station_telecode":"LAJ","end_station_name":"兰州西","from_station_telecode":"BJP","from_station_name":"北京","to_station_telecode":"DTV","to_station_name":"大同","start_time":"23:43","arrive_time":"05:48","day_difference":"1","train_class_name":"","lishi":"06:05","is_support_card":"0","control_train_day":"20301231","start_train_date":"20200323","seat_feature":"W3431333","yp_ex":"10401030","train_seat_feature":"3","controlled_train_flag":"0","controlled_train_message":"正常车次,不受控","rw_num":"有","srrb_num":"-1","gg_num":"-1","gr_num":"-1","rz_num":"-1","tz_num":"-1","wz_num":"有","yb_num":"-1","yw_num":"有","yz_num":"有","ze_num":"-1","zy_num":"-1","swz_num":"-1","wz_seat_type_code":"1","yz_price":"00535","rz_price":"--","yw_price":"00995","rw_price":"01525","gr_price":"--","zy_price":"--","ze_price":"--","tz_price":"--","gg_price":"--","yb_price":"--","bxyw_num":"-1","bxyw_price":"--","swz_price":"--","hbyz_num":"-1","hbyz_price":"--","hbyw_num":"-1","hbyw_price":"--","bxrz_num":"-1","bxrz_price":"--","tdrz_num":"-1","tdrz_price":"--","srrb_price":"--","errb_num":"-1","errb_price":"--","yrrb_num":"-1","yrrb_price":"--","ydsr_num":"-1","ydsr_price":"--","edsr_num":"-1","edsr_price":"--","hbrz_num":"-1","hbrz_price":"--","hbrw_num":"-1","hbrw_price":"--","ydrz_num":"-1","ydrz_price":"--","edrz_num":"-1","edrz_price":"--","wz_price":"00535"},"buttonTextInfo":""}],"messages":[],"validateMessages":[]}}

介绍:

自己写的一个查询火车票的接口,可以查询全国任何地方的车票
数据来自12306网站


php代码:


                

python代码:


                

阅读量! (2395)

关于本站

昵称:无痕小Q

职业:php-go-web开发工程师

现居:北京

Email:1838638884@qq.com

点击排行

路难行,行路难,一身汗水,满心长。脚下百里路,头顶艳阳天。坚定如磐石,信念似火烧。好男儿,人穷志不缺,天道也酬勤。四方走,走四方,一身是胆,豪气壮。前方坎坷途,千难万般阻。心若有明灯,身似般若行。好男 路难行,行路难,一身汗水,满心长。脚下百里路,头顶艳阳天。坚定如磐石,信念似火烧。好男儿,人穷志不缺,天道也酬勤。四方走,走四方,一身是胆,豪气壮。前方坎坷途,千难万般阻。心若有明灯,身似般若行。好男
    山花烂漫, 你是昨夜晓凤.

网站公告

  • 欢迎来到我的博客

  • 1:欢迎来到我的博客


    2:博客免费api接口现已上线


    3:博客会定期更新文章


    4:欢迎大家来捧场


    死生契阔,与子成说。执子之手,与子偕老。

站点信息

听闻远方有你,动身跋涉千里,我吹过你吹过的风,这算不算相拥,我喜欢你,从一而终,认真且怂。 海纳百川,有容乃大;壁立千仞,无欲则刚。
  • 建站时间:2019-8-30
  • 网站程序:php,laravel-swoole框架
  • 今日流量:612(10分钟统计一次)
  • 本月流量:9331
  • 浏览总量:388258
  • 统计方式:中间件,redis消息队列,定时任务
    甫昔少年日,早充观国宾。  读书破万卷,下笔如有神。