ShowAPI,自营为主的数据交易市场
立即注册

火车票查询(站点到站点)

提供者: ttIT 免费使用

主要查询站点到站点的火车票信息,如需查询车次或城市列表信息,请查看showapi官方的接口

浏览量:682

调用量:1204

使用人数:40

点赞:2

申请使用 查看演示
文档 授权签名(重要) 联系信息 价格一览表 接口演示 修改返回结果
接入点列表
火车票查询(站点到站点)
资源列表
·SDK及代码示例
规则中心
·名词解释
·常见问题
·用户留言

接入点说明

站点信息请参看接口官方接口:https://www.showapi.com/api/lookPoint/909中,城市列表接口

请求URL地址

http://route.showapi.com/910-1
注意:接口支持https,更安全,但稍慢一些,你懂的。请根据自己的情况进行选择。

请求参数

HTTP协议,支持GET/POST方法。
非文件上传的POST时,enctype=application/x-www-form-urlencoded。
文件上传的POST时,enctype=multipart/form-data。
1.系统级参数(所有接入点都需要的参数):+点此展开
2.应用级参数(每个接入点有自己的参数):
参数名称 类型 默认值 示例值 必须 描述
fromStation String 北京 出发站
toStation String 长沙 到达站
trainDate String 2016-03-31 出发日期
needPrice String 0 1 是否需要价格信息,默认是0,表示不需要

返回参数

以JSON格式返回结果。
1.系统级参数(所有接入点都会返回的参数):+点此展开
2.应用级参数(系统级输出参数showapi_res_body字段中的json数据结构):
名称 类型 示例值 描述
num String 车次号
fromTime String 开车时间
toTime String 到达时间
usedTime String 所需时长,分钟
fromStation String 出发站点
toStation String 到达站点
beginStation String 始发站点
endStation String 终点站
swNum String 商务票数量
tdNum String 特等票数量
ydNum String 一等票数量
edNum String 二等票数量
gr_num String 高级软卧
rw_num String 软卧数量
yw_num String 硬卧数量
rz_num String 软座数量
yz_num String 硬座数量
wz_num String 无座数量
swPrice String 商务价格
tdPrice String 特等座价格
ydPrice String 一等座价格
edPrice String 二等座价格
gjrwPrice String 高级软卧价格
rwPrice String 软卧价格
ywPrice String 硬卧价格
rzPrice String 软座价格
yzPrice String 硬座价格
wzPrice String 无座价格
ret_code String 接口调用是否成功 0为成功,其他值为失败
flag String true 业务操作是否成功
msg String 接口操作信息
  • 请求实例
  • java_sdk
  • 纯java
  • curl
  • php
  • android
  • python
String res=new ShowApiRequest("http://route.showapi.com/910-1","my_appId","my_appSecret")
           .addTextPara("fromStation","北京")
           .addTextPara("toStation","长沙")
           .addTextPara("trainDate","2016-03-31")
           .addTextPara("needPrice","1")
           .post();
System.out.println(res);

                  public static void main(String path[]) throws Exception {
									URL u=new URL("http://route.showapi.com/910-1?showapi_appid=myappid&fromStation=&toStation=&trainDate=&needPrice=&showapi_sign=mysecret");
									InputStream in=u.openStream();
									ByteArrayOutputStream out=new ByteArrayOutputStream();
									try {
										byte buf[]=new byte[1024];
										int read = 0;
										while ((read = in.read(buf)) > 0) {
											out.write(buf, 0, read);
										}
									}  finally {
										if (in != null) {
											in.close();
										}
									}
									byte b[]=out.toByteArray( );
									System.out.println(new String(b,"utf-8"));
							}
						 
						
						//字段值为中文、空格、特殊符号的地方需要做urlencode,编码为utf-8。用js的方式就是:
						//encodeURIComponent('中文')
						//比如"中文"转换后就是%25E4%25B8%25AD%25E6%2596%2587
            curl   "http://route.showapi.com/910-1?showapi_appid=123&showapi_sign=use_my_sign&fromStation=北京&toStation=长沙&trainDate=2016-03-31&needPrice=1&"
						
						 //md5签名方式--非简单签名
               			<?php
							header("Content-Type:text/html;charset=UTF-8");
							date_default_timezone_set("PRC");
							$showapi_appid = 'xxxxxx';  //替换此值,在官网的"我的应用"中找到相关值
							$showapi_secret = 'xxxxxxxxx';  //替换此值,在官网的"我的应用"中找到相关值 
							$paramArr = array(
							     'showapi_appid'=> $showapi_appid,
								 'fromStation'=> "",
								 'toStation'=> "",
								 'trainDate'=> "",
								 'needPrice'=> ""
							     //添加其他参数
							);
							
							//创建参数(包括签名的处理)
							function createParam ($paramArr,$showapi_secret) {
							     $paraStr = "";
							     $signStr = "";
							     ksort($paramArr);
							     foreach ($paramArr as $key => $val) {
							         if ($key != '' && $val != '') {
							             $signStr .= $key.$val;
							             $paraStr .= $key.'='.urlencode($val).'&';
							         }
							     }
							     $signStr .= $showapi_secret;//排好序的参数加上secret,进行md5
							     $sign = strtolower(md5($signStr));
							     $paraStr .= 'showapi_sign='.$sign;//将md5后的值作为参数,便于服务器的效验
							     echo "排好序的参数:".$signStr."
\r\n"; return $paraStr; } $param = createParam($paramArr,$showapi_secret); $url = 'http://route.showapi.com/910-1?'.$param; echo "请求的url:".$url."
\r\n"; $result = file_get_contents($url); echo "返回的json数据:
\r\n"; print $result.'
\r\n'; $result = json_decode($result); echo "
\r\n取出showapi_res_code的值:
\r\n"; print_r($result->showapi_res_code); echo "
\r\n"; ?>
						//以下代码为纯java实现,并未依赖第三方框架,具体传入参数请参看接口描述详情页.
						protected Handler mHandler =  new Handler();
						protected void onCreate(Bundle savedInstanceState) {
								super.onCreate(savedInstanceState);
								setContentView(R.layout.activity_main);
								final TextView txt = (TextView) this.findViewById(R.id.textView1);
								Button myBtn = (Button) this.findViewById(R.id.button1);
								myBtn.setOnClickListener(new OnClickListener() {
									public void onClick(View v) {
										new Thread(){
											//在新线程中发送网络请求
											public void run() {
												String appid="xxx";//要替换成自己的
												String secret="xxxxxxx";//要替换成自己的
												final String res=new ShowApiRequest( "http://route.showapi.com/910-1", appid, secret)
                    .addTextPara("fromStation", "")
                                .addTextPara("toStation", "")
                                .addTextPara("trainDate", "")
                                .addTextPara("needPrice", "")
            .post();
												
												System.out.println(res);
												//把返回内容通过handler对象更新到界面
												mHandler.post(new Thread(){
													public void run() {
														txt.setText(res+"  "+new Date());
													}
												});
											}
										}.start();
										
										
									}
								});
						}

						
#phthon3.5
from urllib import    request, parse
import json

print('send data....')
showapi_appid="xxxxxxxxxx"  #替换此值
showapi_sign="xxxxxxxxxx"   #替换此值
url="http://route.showapi.com/910-1"
send_data = parse.urlencode([
    ('showapi_appid', showapi_appid)
    ,('showapi_sign', showapi_sign)
                    ,('fromStation', "")
                    ,('toStation', "")
                    ,('trainDate', "")
                    ,('needPrice', "")
    
  ])

req = request.Request(url) 
with request.urlopen(req, data=send_data.encode('utf-8')) as f:
    print('Status:', f.status, f.reason)
    str_res= f.read().decode('utf-8')
    print('str_res:',str_res)
    json_res=json.dumps(str_res)
    print ('json_res data is:', json_res)

    
						 

						

返回实例

{
	"showapi_res_code": 0,
	"showapi_res_error": "",
	"showapi_res_body": {
		"data": [
			{
				"beginStation": "包头",
				"edNum": "--",
				"edPrice": "--",
				"endStation": "广州",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "K599",
				"rwNum": "1",
				"rwPrice": "504.5",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "--",
				"swPrice": "--",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙",
				"usedTime": 1292,
				"wzNum": "41",
				"wzPrice": "189.5",
				"ydNum": "--",
				"ydPrice": "--",
				"ywNum": "无",
				"ywPrice": "322.5",
				"yzNum": "无",
				"yzPrice": "189.5"
			},
			{
				"beginStation": "北京西",
				"edNum": "367",
				"edPrice": "649.0",
				"endStation": "贵阳北",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "G401",
				"rwNum": "--",
				"rwPrice": "--",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "3",
				"swPrice": "2050.0",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙南",
				"usedTime": 413,
				"wzNum": "--",
				"wzPrice": "649.0",
				"ydNum": "21",
				"ydPrice": "1038.0",
				"ywNum": "--",
				"ywPrice": "--",
				"yzNum": "--",
				"yzPrice": "--"
			},
			{
				"beginStation": "北京西",
				"edNum": "796",
				"edPrice": "649.0",
				"endStation": "长沙南",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "G501",
				"rwNum": "--",
				"rwPrice": "--",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "26",
				"swPrice": "2050.0",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙南",
				"usedTime": 421,
				"wzNum": "--",
				"wzPrice": "649.0",
				"ydNum": "147",
				"ydPrice": "1038.0",
				"ywNum": "--",
				"ywPrice": "--",
				"yzNum": "--",
				"yzPrice": "--"
			},
			{
				"beginStation": "北京西",
				"edNum": "无",
				"edPrice": "649.0",
				"endStation": "南宁东",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "G529",
				"rwNum": "--",
				"rwPrice": "--",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "无",
				"swPrice": "2050.0",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙南",
				"usedTime": 436,
				"wzNum": "--",
				"wzPrice": "649.0",
				"ydNum": "无",
				"ydPrice": "1038.0",
				"ywNum": "--",
				"ywPrice": "--",
				"yzNum": "--",
				"yzPrice": "--"
			},
			{
				"beginStation": "北京西",
				"edNum": "496",
				"edPrice": "649.0",
				"endStation": "深圳北",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "G71",
				"rwNum": "--",
				"rwPrice": "--",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "22",
				"swPrice": "2050.0",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙南",
				"usedTime": 407,
				"wzNum": "--",
				"wzPrice": "649.0",
				"ydNum": "109",
				"ydPrice": "1038.0",
				"ywNum": "--",
				"ywPrice": "--",
				"yzNum": "--",
				"yzPrice": "--"
			},
			{
				"beginStation": "北京西",
				"edNum": "--",
				"edPrice": "--",
				"endStation": "桂林北",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "K21",
				"rwNum": "无",
				"rwPrice": "504.5",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "--",
				"swPrice": "--",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙",
				"usedTime": 1297,
				"wzNum": "45",
				"wzPrice": "189.5",
				"ydNum": "--",
				"ydPrice": "--",
				"ywNum": "161",
				"ywPrice": "322.5",
				"yzNum": "28",
				"yzPrice": "189.5"
			},
			{
				"beginStation": "北京西",
				"edNum": "--",
				"edPrice": "--",
				"endStation": "贵阳",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "Z149",
				"rwNum": "无",
				"rwPrice": "504.5",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "--",
				"swPrice": "--",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙",
				"usedTime": 859,
				"wzNum": "12",
				"wzPrice": "189.5",
				"ydNum": "--",
				"ydPrice": "--",
				"ywNum": "17",
				"ywPrice": "322.5",
				"yzNum": "224",
				"yzPrice": "189.5"
			},
			{
				"beginStation": "北京",
				"edNum": "--",
				"edPrice": "--",
				"endStation": "张家界",
				"fromStation": "北京",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "K967",
				"rwNum": "无",
				"rwPrice": "504.5",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "--",
				"swPrice": "--",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙",
				"usedTime": 1240,
				"wzNum": "119",
				"wzPrice": "189.5",
				"ydNum": "--",
				"ydPrice": "--",
				"ywNum": "48",
				"ywPrice": "322.5",
				"yzNum": "153",
				"yzPrice": "189.5"
			},
			{
				"beginStation": "北京西",
				"edNum": "635",
				"edPrice": "649.0",
				"endStation": "贵阳北",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "G81",
				"rwNum": "--",
				"rwPrice": "--",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "22",
				"swPrice": "2050.0",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙南",
				"usedTime": 342,
				"wzNum": "--",
				"wzPrice": "649.0",
				"ydNum": "117",
				"ydPrice": "1038.0",
				"ywNum": "--",
				"ywPrice": "--",
				"yzNum": "--",
				"yzPrice": "--"
			},
			{
				"beginStation": "北京西",
				"edNum": "--",
				"edPrice": "--",
				"endStation": "昆明",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "Z53",
				"rwNum": "49",
				"rwPrice": "504.5",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "--",
				"swPrice": "--",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙",
				"usedTime": 856,
				"wzNum": "10",
				"wzPrice": "189.5",
				"ydNum": "--",
				"ydPrice": "--",
				"ywNum": "248",
				"ywPrice": "322.5",
				"yzNum": "259",
				"yzPrice": "189.5"
			},
			{
				"beginStation": "北京西",
				"edNum": "955",
				"edPrice": "649.0",
				"endStation": "长沙南",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "G83",
				"rwNum": "--",
				"rwPrice": "--",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "14",
				"swPrice": "2050.0",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙南",
				"usedTime": 344,
				"wzNum": "--",
				"wzPrice": "649.0",
				"ydNum": "24",
				"ydPrice": "1038.0",
				"ywNum": "--",
				"ywPrice": "--",
				"yzNum": "--",
				"yzPrice": "--"
			},
			{
				"beginStation": "北京西",
				"edNum": "822",
				"edPrice": "649.0",
				"endStation": "南宁东",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "G421",
				"rwNum": "--",
				"rwPrice": "--",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "13",
				"swPrice": "2050.0",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙南",
				"usedTime": 422,
				"wzNum": "--",
				"wzPrice": "649.0",
				"ydNum": "15",
				"ydPrice": "1038.0",
				"ywNum": "--",
				"ywPrice": "--",
				"yzNum": "--",
				"yzPrice": "--"
			},
			{
				"beginStation": "北京西",
				"edNum": "210",
				"edPrice": "649.0",
				"endStation": "深圳北",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "G79",
				"rwNum": "--",
				"rwPrice": "--",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "无",
				"swPrice": "2050.0",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙南",
				"usedTime": 338,
				"wzNum": "--",
				"wzPrice": "649.0",
				"ydNum": "14",
				"ydPrice": "1038.0",
				"ywNum": "--",
				"ywPrice": "--",
				"yzNum": "--",
				"yzPrice": "--"
			},
			{
				"beginStation": "北京西",
				"edNum": "509",
				"edPrice": "649.0",
				"endStation": "广州南",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "G65",
				"rwNum": "--",
				"rwPrice": "--",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "20",
				"swPrice": "2050.0",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙南",
				"usedTime": 414,
				"wzNum": "--",
				"wzPrice": "649.0",
				"ydNum": "106",
				"ydPrice": "1038.0",
				"ywNum": "--",
				"ywPrice": "--",
				"yzNum": "--",
				"yzPrice": "--"
			},
			{
				"beginStation": "北京西",
				"edNum": "922",
				"edPrice": "649.0",
				"endStation": "南昌西",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "G487",
				"rwNum": "--",
				"rwPrice": "--",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "13",
				"swPrice": "2050.0",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙南",
				"usedTime": 361,
				"wzNum": "--",
				"wzPrice": "649.0",
				"ydNum": "19",
				"ydPrice": "1038.0",
				"ywNum": "--",
				"ywPrice": "--",
				"yzNum": "--",
				"yzPrice": "--"
			},
			{
				"beginStation": "北京西",
				"edNum": "--",
				"edPrice": "--",
				"endStation": "广州",
				"fromStation": "北京西",
				"gjrwNum": "无",
				"gjrwPrice": "930.5",
				"num": "Z35",
				"rwNum": "无",
				"rwPrice": "504.5",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "--",
				"swPrice": "--",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙",
				"usedTime": 823,
				"wzNum": "122",
				"wzPrice": "189.5",
				"ydNum": "--",
				"ydPrice": "--",
				"ywNum": "无",
				"ywPrice": "322.5",
				"yzNum": "无",
				"yzPrice": "189.5"
			},
			{
				"beginStation": "北京西",
				"edNum": "293",
				"edPrice": "649.0",
				"endStation": "贵阳北",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "G403",
				"rwNum": "--",
				"rwPrice": "--",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "2",
				"swPrice": "2050.0",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙南",
				"usedTime": 417,
				"wzNum": "--",
				"wzPrice": "649.0",
				"ydNum": "12",
				"ydPrice": "1038.0",
				"ywNum": "--",
				"ywPrice": "--",
				"yzNum": "--",
				"yzPrice": "--"
			},
			{
				"beginStation": "北京西",
				"edNum": "692",
				"edPrice": "649.0",
				"endStation": "广州南",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "G67",
				"rwNum": "--",
				"rwPrice": "--",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "24",
				"swPrice": "2050.0",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙南",
				"usedTime": 436,
				"wzNum": "--",
				"wzPrice": "649.0",
				"ydNum": "122",
				"ydPrice": "1038.0",
				"ywNum": "--",
				"ywPrice": "--",
				"yzNum": "--",
				"yzPrice": "--"
			},
			{
				"beginStation": "北京",
				"edNum": "--",
				"edPrice": "--",
				"endStation": "南昌",
				"fromStation": "北京",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "T145",
				"rwNum": "无",
				"rwPrice": "504.5",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "--",
				"swPrice": "--",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙",
				"usedTime": 995,
				"wzNum": "46",
				"wzPrice": "189.5",
				"ydNum": "--",
				"ydPrice": "--",
				"ywNum": "10",
				"ywPrice": "322.5",
				"yzNum": "136",
				"yzPrice": "189.5"
			},
			{
				"beginStation": "北京西",
				"edNum": "288",
				"edPrice": "649.0",
				"endStation": "南昌西",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "G491",
				"rwNum": "--",
				"rwPrice": "--",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "无",
				"swPrice": "2050.0",
				"tdNum": "10",
				"tdPrice": "1235.0",
				"toStation": "长沙南",
				"usedTime": 448,
				"wzNum": "--",
				"wzPrice": "649.0",
				"ydNum": "86",
				"ydPrice": "1038.0",
				"ywNum": "--",
				"ywPrice": "--",
				"yzNum": "--",
				"yzPrice": "--"
			},
			{
				"beginStation": "北京西",
				"edNum": "--",
				"edPrice": "--",
				"endStation": "广州东",
				"fromStation": "北京西",
				"gjrwNum": "无",
				"gjrwPrice": "930.5",
				"num": "Z97",
				"rwNum": "无",
				"rwPrice": "504.5",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "--",
				"swPrice": "--",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙",
				"usedTime": 815,
				"wzNum": "55",
				"wzPrice": "189.5",
				"ydNum": "--",
				"ydPrice": "--",
				"ywNum": "无",
				"ywPrice": "322.5",
				"yzNum": "无",
				"yzPrice": "189.5"
			},
			{
				"beginStation": "北京西",
				"edNum": "522",
				"edPrice": "649.0",
				"endStation": "广州南",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "G69",
				"rwNum": "--",
				"rwPrice": "--",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "23",
				"swPrice": "2050.0",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙南",
				"usedTime": 389,
				"wzNum": "--",
				"wzPrice": "649.0",
				"ydNum": "113",
				"ydPrice": "1038.0",
				"ywNum": "--",
				"ywPrice": "--",
				"yzNum": "--",
				"yzPrice": "--"
			},
			{
				"beginStation": "北京西",
				"edNum": "--",
				"edPrice": "--",
				"endStation": "昆明",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "Z161",
				"rwNum": "无",
				"rwPrice": "504.5",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "--",
				"swPrice": "--",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙",
				"usedTime": 856,
				"wzNum": "22",
				"wzPrice": "189.5",
				"ydNum": "--",
				"ydPrice": "--",
				"ywNum": "无",
				"ywPrice": "322.5",
				"yzNum": "4",
				"yzPrice": "189.5"
			},
			{
				"beginStation": "北京西",
				"edNum": "443",
				"edPrice": "649.0",
				"endStation": "长沙南",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "G503",
				"rwNum": "--",
				"rwPrice": "--",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "5",
				"swPrice": "2050.0",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙南",
				"usedTime": 405,
				"wzNum": "--",
				"wzPrice": "649.0",
				"ydNum": "无",
				"ydPrice": "1038.0",
				"ywNum": "--",
				"ywPrice": "--",
				"yzNum": "--",
				"yzPrice": "--"
			},
			{
				"beginStation": "沈阳北",
				"edNum": "--",
				"edPrice": "--",
				"endStation": "广州东",
				"fromStation": "北京",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "Z13",
				"rwNum": "无",
				"rwPrice": "504.5",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "--",
				"swPrice": "--",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙",
				"usedTime": 854,
				"wzNum": "130",
				"wzPrice": "189.5",
				"ydNum": "--",
				"ydPrice": "--",
				"ywNum": "无",
				"ywPrice": "322.5",
				"yzNum": "无",
				"yzPrice": "189.5"
			},
			{
				"beginStation": "北京",
				"edNum": "--",
				"edPrice": "--",
				"endStation": "长沙",
				"fromStation": "北京",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "T1",
				"rwNum": "--",
				"rwPrice": "--",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "--",
				"swPrice": "--",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙",
				"usedTime": 955,
				"wzNum": "108",
				"wzPrice": "189.5",
				"ydNum": "--",
				"ydPrice": "--",
				"ywNum": "293",
				"ywPrice": "322.5",
				"yzNum": "321",
				"yzPrice": "189.5"
			},
			{
				"beginStation": "北京西",
				"edNum": "414",
				"edPrice": "649.0",
				"endStation": "长沙南",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "G505",
				"rwNum": "--",
				"rwPrice": "--",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "5",
				"swPrice": "2050.0",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙南",
				"usedTime": 412,
				"wzNum": "--",
				"wzPrice": "649.0",
				"ydNum": "无",
				"ydPrice": "1038.0",
				"ywNum": "--",
				"ywPrice": "--",
				"yzNum": "--",
				"yzPrice": "--"
			},
			{
				"beginStation": "北京西",
				"edNum": "--",
				"edPrice": "--",
				"endStation": "南宁",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "Z5",
				"rwNum": "无",
				"rwPrice": "504.5",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "--",
				"swPrice": "--",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙",
				"usedTime": 824,
				"wzNum": "--",
				"wzPrice": "322.5",
				"ydNum": "--",
				"ydPrice": "--",
				"ywNum": "无",
				"ywPrice": "322.5",
				"yzNum": "--",
				"yzPrice": "--"
			},
			{
				"beginStation": "北京西",
				"edNum": "--",
				"edPrice": "--",
				"endStation": "贵阳",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "Z77",
				"rwNum": "无",
				"rwPrice": "504.5",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "--",
				"swPrice": "--",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙",
				"usedTime": 824,
				"wzNum": "55",
				"wzPrice": "189.5",
				"ydNum": "--",
				"ydPrice": "--",
				"ywNum": "无",
				"ywPrice": "322.5",
				"yzNum": "1",
				"yzPrice": "189.5"
			},
			{
				"beginStation": "北京西",
				"edNum": "--",
				"edPrice": "--",
				"endStation": "南宁",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "Z285",
				"rwNum": "无",
				"rwPrice": "504.5",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "--",
				"swPrice": "--",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙",
				"usedTime": 831,
				"wzNum": "80",
				"wzPrice": "189.5",
				"ydNum": "--",
				"ydPrice": "--",
				"ywNum": "无",
				"ywPrice": "322.5",
				"yzNum": "无",
				"yzPrice": "189.5"
			},
			{
				"beginStation": "北京西",
				"edNum": "--",
				"edPrice": "--",
				"endStation": "三亚",
				"fromStation": "北京西",
				"gjrwNum": "无",
				"gjrwPrice": "930.5",
				"num": "Z201",
				"rwNum": "无",
				"rwPrice": "504.5",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "--",
				"swPrice": "--",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙",
				"usedTime": 835,
				"wzNum": "54",
				"wzPrice": "189.5",
				"ydNum": "--",
				"ydPrice": "--",
				"ywNum": "无",
				"ywPrice": "322.5",
				"yzNum": "3",
				"yzPrice": "189.5"
			},
			{
				"beginStation": "北京西",
				"edNum": "--",
				"edPrice": "--",
				"endStation": "湛江",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "K157",
				"rwNum": "无",
				"rwPrice": "--",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "--",
				"swPrice": "--",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙",
				"usedTime": 1151,
				"wzNum": "142",
				"wzPrice": "189.5",
				"ydNum": "--",
				"ydPrice": "--",
				"ywNum": "无",
				"ywPrice": "--",
				"yzNum": "无",
				"yzPrice": "189.5"
			},
			{
				"beginStation": "天津",
				"edNum": "--",
				"edPrice": "--",
				"endStation": "长沙",
				"fromStation": "北京",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "Z207",
				"rwNum": "无",
				"rwPrice": "504.5",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "--",
				"swPrice": "--",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙",
				"usedTime": 868,
				"wzNum": "--",
				"wzPrice": "504.5",
				"ydNum": "--",
				"ydPrice": "--",
				"ywNum": "--",
				"ywPrice": "--",
				"yzNum": "--",
				"yzPrice": "--"
			},
			{
				"beginStation": "北京西",
				"edNum": "--",
				"edPrice": "--",
				"endStation": "昆明",
				"fromStation": "北京西",
				"gjrwNum": "--",
				"gjrwPrice": "--",
				"num": "K471",
				"rwNum": "无",
				"rwPrice": "504.5",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "--",
				"swPrice": "--",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙",
				"usedTime": 1058,
				"wzNum": "145",
				"wzPrice": "189.5",
				"ydNum": "--",
				"ydPrice": "--",
				"ywNum": "无",
				"ywPrice": "322.5",
				"yzNum": "1",
				"yzPrice": "189.5"
			},
			{
				"beginStation": "北京西",
				"edNum": "--",
				"edPrice": "--",
				"endStation": "南宁",
				"fromStation": "北京西",
				"gjrwNum": "无",
				"gjrwPrice": "930.5",
				"num": "T289",
				"rwNum": "无",
				"rwPrice": "504.5",
				"rzNum": "--",
				"rzPrice": "--",
				"swNum": "--",
				"swPrice": "--",
				"tdNum": "--",
				"tdPrice": "--",
				"toStation": "长沙",
				"usedTime": 953,
				"wzNum": "150",
				"wzPrice": "189.5",
				"ydNum": "--",
				"ydPrice": "--",
				"ywNum": "无",
				"ywPrice": "322.5",
				"yzNum": "无",
				"yzPrice": "189.5"
			}
		],
		"flag": true,
		"fromStation": "北京",
		"needPrice": 1,
		"ret_code": 0,
		"toStation": "长沙",
		"trainDate": "2016-03-31"
	}
}




请求地址 请求参数 返回参数 请求示例 返回示例
接入点列表
火车票查询(站点到站点)
  • 包月套餐(火车票查询(站点到站点))

一次性礼包

0时间:1年

  • 100次调用
  • 不限调用频率
  • 手机认证 要求
  •  
领取

30元3000次

30 时间:包月(30天)

  • 3000次每天
  • 2次/秒调用频率
订购套餐

100元 12000次

100 时间:包月(30天)

  • 12000次每天
  • 2次/秒调用频率
订购套餐