火车查询

优选
HTTPS
提供全国火车票时刻查询、火车站站查询、火车余票查询等3个接口。
免费套餐
Level1
Level2
Level3
0 / 5 次

雷达评级

AA

用户规模

10 万+

产品上线

5

站站查询

接口地址
https://binstd.apistd.com/train/station2s
响应格式
application/json
请求方法
POST
请求参数 (Query)
参数类型必须描述
keystring
string
请求 AccessKey, 请在控制台中查看
startstring
string
出发
endstring
string
到达
ishighint
int
是否高铁
返回参数 (Body)
参数类型描述
statusstring
string
返回码
msgstring
string
返回说明信息
resultarray
array
返回结果
trainnostring
string
车次
typestring
string
类型
stationstring
string
出发站
endstationstring
string
到达站
departuretimestring
string
出发时间
arrivaltimestring
string
到达时间
sequencenostring
string
顺序
costtimestring
string
用时
distancestring
string
距离
isendstring
string
是否终点
priceswstring
string
商务座票价
pricetdstring
string
特等座票价
pricegr1string
string
高级软卧上票价
pricegr2string
string
高级软卧下票价
pricerw1string
string
软卧上票价
pricerw2string
string
软卧下票价
priceyw1string
string
硬卧上票价
priceyw2string
string
硬卧中票价
priceyw3string
string
硬卧下票价
priceydstring
string
一等座票价
priceedstring
string
二等座票价
请求返回示例
{
  "status": "0",
  "msg": "ok",
  "result": [
    {
      "trainno": "G34",
      "type": "高铁",
      "station": "杭州东",
      "endstation": "北京南",
      "departuretime": "07:18",
      "arrivaltime": "13:07",
      "sequenceno": "1",
      "costtime": "5时49分",
      "distance": "1279",
      "isend": "1",
      "pricesw": "",
      "pricetd": "",
      "pricegr1": "",
      "pricegr2": "",
      "pricerw1": "0.0",
      "pricerw2": "0.0",
      "priceyw1": "0.0",
      "priceyw2": "0.0",
      "priceyw3": "0.0",
      "priceyd": "907.0",
      "priceed": "538.5"
    },
    {
      "trainno": "G32",
      "type": "高铁",
      "station": "杭州东",
      "endstation": "北京南",
      "departuretime": "08:30",
      "arrivaltime": "13:28",
      "sequenceno": "1",
      "costtime": "4时58分",
      "distance": "1279",
      "isend": "1",
      "pricesw": "",
      "pricetd": "",
      "pricegr1": "",
      "pricegr2": "",
      "pricerw1": "0.0",
      "pricerw2": "0.0",
      "priceyw1": "0.0",
      "priceyw2": "0.0",
      "priceyw3": "0.0",
      "priceyd": "907.0",
      "priceed": "538.5"
    }
  ]
}