RailGo
简介
官网
版本
版本
  • V1 API
  • V2 API
简介
官网
版本
版本
  • V1 API
  • V2 API
Github RailGoApps
QQ交流群
  1. V1
  • 数据服务简介
  • V1
    • 车次查询
      GET
    • 站到站车次查询
      GET
    • 车站预选词
      GET
    • 车站查询
      GET
    • 车次预选词
      GET
    • 随机选取车次
      GET
  • V2
    • 车次检票口、停台及出站口
      GET
    • 车次正晚点
      GET
    • 车站大屏
      GET
    • 车次主数据
      GET
    • 列车车厢图
      GET
    • 列车运行线路点
      GET
  1. V1

站到站车次查询

GET
https://data.railgo.zenglingkun.cn/api/train/sts_query
责任人:未设置
站到站车次查询

请求参数

Query 参数

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://data.railgo.zenglingkun.cn/api/train/sts_query?from=BJP&to=SHH&date=20251024&city=false'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
[
  {
    "bureauName": "上局",
    "car": "CR400BF-B",
    "carOwner": "上海动车段",
    "dayDiff": 0,
    "diagram": [
      {
        "from": [
          "上海虹桥",
          "10:13"
        ],
        "number": "C3611",
        "to": [
          "横店",
          "12:27"
        ]
      },
      {
        "from": [
          "横店",
          "13:13"
        ],
        "number": "G2590",
        "to": [
          "北京南",
          "23:29"
        ]
      },
      {
        "from": [
          "北京",
          "07:40"
        ],
        "number": "G3",
        "to": [
          "上海",
          "12:32"
        ]
      },
      {
        "from": [
          "上海",
          "12:55"
        ],
        "number": "G16",
        "to": [
          "北京南",
          "17:36"
        ]
      },
      {
        "from": [
          "北京南",
          "18:00"
        ],
        "number": "G23",
        "to": [
          "上海",
          "22:43"
        ]
      },
      {
        "from": [
          "无锡东",
          "06:31"
        ],
        "number": "G7199",
        "to": [
          "上海虹桥",
          "07:15"
        ]
      },
      {
        "from": [
          "上海虹桥",
          "11:00"
        ],
        "number": "G12",
        "to": [
          "北京南",
          "15:31"
        ]
      },
      {
        "from": [
          "北京南",
          "16:00"
        ],
        "number": "G19",
        "to": [
          "上海虹桥",
          "20:28"
        ]
      }
    ],
    "fromDepart": "07:40",
    "fromPos": 0,
    "fromStationTelecode": "BJP",
    "number": "G3",
    "numberFull": [
      "G3"
    ],
    "numberKind": "G",
    "passTime": "4时52分",
    "rundays": [
      "20251009",
      "20251010",
      "20251011",
      "20251012",
      "20251013",
      "20251014",
      "20251015",
      "20251016",
      "20251017",
      "20251018",
      "20251019",
      "20251020",
      "20251021",
      "20251022",
      "20251023",
      "20251024",
      "20251025",
      "20251026",
      "20251027",
      "20251028",
      "20251029",
      "20251030",
      "20251031",
      "20251101",
      "20251102",
      "20251103",
      "20251104",
      "20251105",
      "20251106",
      "20251107",
      "20251108",
      "20251109",
      "20251110",
      "20251111",
      "20251112",
      "20251113",
      "20251114",
      "20251115",
      "20251116",
      "20251117",
      "20251118",
      "20251119",
      "20251120",
      "20251121",
      "20251122",
      "20251123",
      "20251124",
      "20251125",
      "20251126",
      "20251127",
      "20251128",
      "20251129",
      "20251130",
      "20251201",
      "20251202",
      "20251203",
      "20251204",
      "20251205",
      "20251206",
      "20251207",
      "20251208",
      "20251209",
      "20251210",
      "20251211",
      "20251212",
      "20251213",
      "20251214",
      "20251215",
      "20251216",
      "20251217",
      "20251218",
      "20251219",
      "20251220",
      "20251221",
      "20251222",
      "20251223",
      "20251224",
      "20251225",
      "20251226",
      "20251227",
      "20251228",
      "20251229",
      "20251230",
      "20251231",
      "20260101",
      "20260102",
      "20260103",
      "20260104",
      "20260105",
      "20260106",
      "20260107"
    ],
    "runner": "上海客运段",
    "timetable": [
      {
        "arrive": "07:40",
        "day": 0,
        "depart": "07:40",
        "distance": 0,
        "speed": 0,
        "station": "北京",
        "stationTelecode": "BJP",
        "stopTime": 0,
        "trainCode": "G3"
      },
      {
        "arrive": "07:54",
        "day": 0,
        "depart": "08:00",
        "distance": 6,
        "speed": 25.7142857142857,
        "station": "北京南",
        "stationTelecode": "VNP",
        "stopTime": 6,
        "trainCode": "G3"
      },
      {
        "arrive": "09:24",
        "day": 0,
        "depart": "09:26",
        "distance": 412,
        "speed": 290,
        "station": "济南西",
        "stationTelecode": "JGK",
        "stopTime": 2,
        "trainCode": "G3"
      },
      {
        "arrive": "11:23",
        "day": 0,
        "depart": "11:25",
        "distance": 1029,
        "speed": 316.410256410256,
        "station": "南京南",
        "stationTelecode": "NKH",
        "stopTime": 2,
        "trainCode": "G3"
      },
      {
        "arrive": "12:32",
        "day": 0,
        "depart": "12:32",
        "distance": 1331,
        "speed": 270.44776119403,
        "station": "上海",
        "stationTelecode": "SHH",
        "stopTime": 0,
        "trainCode": "G3"
      }
    ],
    "toArrive": "12:32",
    "toPos": 4,
    "toStationTelecode": "SHH",
    "type": "高速"
  },
  {
    "bureauName": "京局",
    "car": "25K",
    "carOwner": "北京车辆段",
    "dayDiff": 1,
    "diagram": [
      {
        "from": [
          "北京",
          "20:03"
        ],
        "number": "T109",
        "to": [
          "上海",
          "11:02"
        ]
      },
      {
        "from": [
          "上海",
          "16:30"
        ],
        "number": "T110",
        "to": [
          "北京",
          "08:32"
        ]
      }
    ],
    "fromDepart": "20:03",
    "fromPos": 0,
    "fromStationTelecode": "BJP",
    "number": "T109",
    "numberFull": [
      "T109"
    ],
    "numberKind": "T",
    "passTime": "14时59分",
    "rundays": [
      "20251009",
      "20251010",
      "20251011",
      "20251012",
      "20251013",
      "20251014",
      "20251015",
      "20251016",
      "20251017",
      "20251018",
      "20251019",
      "20251020",
      "20251021",
      "20251022",
      "20251023",
      "20251024",
      "20251025",
      "20251026",
      "20251027",
      "20251028",
      "20251029",
      "20251030",
      "20251031",
      "20251101",
      "20251102",
      "20251103",
      "20251104",
      "20251105",
      "20251106",
      "20251107",
      "20251108",
      "20251109",
      "20251110",
      "20251111",
      "20251112",
      "20251113",
      "20251114",
      "20251115",
      "20251116",
      "20251117",
      "20251118",
      "20251119",
      "20251120",
      "20251121",
      "20251122",
      "20251123",
      "20251124",
      "20251125",
      "20251126",
      "20251127",
      "20251128",
      "20251129",
      "20251130",
      "20251201",
      "20251202",
      "20251203",
      "20251204",
      "20251205",
      "20251206",
      "20251207",
      "20251208",
      "20251209",
      "20251210",
      "20251211",
      "20251212",
      "20251213",
      "20251214",
      "20251215",
      "20251216",
      "20251217",
      "20251218",
      "20251219",
      "20251220",
      "20251221",
      "20251222",
      "20251223",
      "20251224",
      "20251225",
      "20251226",
      "20251227",
      "20251228",
      "20251229",
      "20251230",
      "20251231",
      "20260101",
      "20260102",
      "20260103",
      "20260104",
      "20260105",
      "20260106",
      "20260107"
    ],
    "runner": "北京客运段",
    "timetable": [
      {
        "arrive": "20:03",
        "day": 0,
        "depart": "20:03",
        "distance": 0,
        "speed": 0,
        "station": "北京",
        "stationTelecode": "BJP",
        "stopTime": 0,
        "trainCode": "T109"
      },
      {
        "arrive": "21:29",
        "day": 0,
        "depart": "21:32",
        "distance": 148,
        "speed": 103.255813953488,
        "station": "天津西",
        "stationTelecode": "TXP",
        "stopTime": 3,
        "trainCode": "T109"
      },
      {
        "arrive": "23:36",
        "day": 0,
        "depart": "23:39",
        "distance": 377,
        "speed": 110.806451612903,
        "station": "德州",
        "stationTelecode": "DZP",
        "stopTime": 3,
        "trainCode": "T109"
      },
      {
        "arrive": "03:46",
        "day": 1,
        "depart": "04:11",
        "distance": 814,
        "speed": 106.153846153846,
        "station": "徐州",
        "stationTelecode": "XCH",
        "stopTime": 25,
        "trainCode": "T109"
      },
      {
        "arrive": "07:43",
        "day": 1,
        "depart": "07:49",
        "distance": 1162,
        "speed": 98.4905660377359,
        "station": "南京",
        "stationTelecode": "NJH",
        "stopTime": 6,
        "trainCode": "T109"
      },
      {
        "arrive": "09:06",
        "day": 1,
        "depart": "09:10",
        "distance": 1298,
        "speed": 105.974025974026,
        "station": "常州",
        "stationTelecode": "CZH",
        "stopTime": 4,
        "trainCode": "T109"
      },
      {
        "arrive": "09:33",
        "day": 1,
        "depart": "09:36",
        "distance": 1337,
        "speed": 101.739130434783,
        "station": "无锡",
        "stationTelecode": "WXH",
        "stopTime": 3,
        "trainCode": "T109"
      },
      {
        "arrive": "10:04",
        "day": 1,
        "depart": "10:08",
        "distance": 1379,
        "speed": 90,
        "station": "苏州",
        "stationTelecode": "SZH",
        "stopTime": 4,
        "trainCode": "T109"
      },
      {
        "arrive": "11:02",
        "day": 1,
        "depart": "11:02",
        "distance": 1463,
        "speed": 93.3333333333333,
        "station": "上海",
        "stationTelecode": "SHH",
        "stopTime": 0,
        "trainCode": "T109"
      }
    ],
    "toArrive": "11:02",
    "toPos": 8,
    "toStationTelecode": "SHH",
    "type": "新空调特快"
  },
  {
    "bureauName": "京局",
    "car": "CR200J (长编)",
    "carOwner": "北京车辆段",
    "dayDiff": 1,
    "diagram": [
      {
        "from": [
          "北京",
          "21:21"
        ],
        "number": "D5",
        "to": [
          "上海",
          "09:27"
        ]
      },
      {
        "from": [
          "上海",
          "21:15"
        ],
        "number": "D6",
        "to": [
          "北京",
          "09:26"
        ]
      }
    ],
    "fromDepart": "21:21",
    "fromPos": 0,
    "fromStationTelecode": "BJP",
    "number": "D5",
    "numberFull": [
      "D5"
    ],
    "numberKind": "D",
    "passTime": "12时6分",
    "rundays": [
      "20251009",
      "20251010",
      "20251011",
      "20251012",
      "20251013",
      "20251014",
      "20251015",
      "20251016",
      "20251017",
      "20251018",
      "20251019",
      "20251020",
      "20251021",
      "20251022",
      "20251023",
      "20251024",
      "20251025",
      "20251026",
      "20251027",
      "20251028",
      "20251029",
      "20251030",
      "20251031",
      "20251101",
      "20251102",
      "20251103",
      "20251104",
      "20251105",
      "20251106",
      "20251107",
      "20251108",
      "20251109",
      "20251110",
      "20251111",
      "20251112",
      "20251113",
      "20251114",
      "20251115",
      "20251116",
      "20251117",
      "20251118",
      "20251119",
      "20251120",
      "20251121",
      "20251122",
      "20251123",
      "20251124",
      "20251125",
      "20251126",
      "20251127",
      "20251128",
      "20251129",
      "20251130",
      "20251201",
      "20251202",
      "20251203",
      "20251204",
      "20251205",
      "20251206",
      "20251207",
      "20251208",
      "20251209",
      "20251210",
      "20251211",
      "20251212",
      "20251213",
      "20251214",
      "20251215",
      "20251216",
      "20251217",
      "20251218",
      "20251219",
      "20251220",
      "20251221",
      "20251222",
      "20251223",
      "20251224",
      "20251225",
      "20251226",
      "20251227",
      "20251228",
      "20251229",
      "20251230",
      "20251231",
      "20260101",
      "20260102",
      "20260103",
      "20260104",
      "20260105",
      "20260106",
      "20260107"
    ],
    "runner": "北京客运段",
    "timetable": [
      {
        "arrive": "21:21",
        "day": 0,
        "depart": "21:21",
        "distance": 0,
        "speed": 0,
        "station": "北京",
        "stationTelecode": "BJP",
        "stopTime": 0,
        "trainCode": "D5"
      },
      {
        "arrive": "05:41",
        "day": 1,
        "depart": "05:43",
        "distance": 807,
        "speed": 96.84,
        "station": "明光",
        "stationTelecode": "MGH",
        "stopTime": 2,
        "trainCode": "D5"
      },
      {
        "arrive": "06:46",
        "day": 1,
        "depart": "06:52",
        "distance": 915,
        "speed": 102.857142857143,
        "station": "南京",
        "stationTelecode": "NJH",
        "stopTime": 6,
        "trainCode": "D5"
      },
      {
        "arrive": "07:53",
        "day": 1,
        "depart": "07:55",
        "distance": 1051,
        "speed": 133.770491803279,
        "station": "常州",
        "stationTelecode": "CZH",
        "stopTime": 2,
        "trainCode": "D5"
      },
      {
        "arrive": "09:27",
        "day": 1,
        "depart": "09:27",
        "distance": 1216,
        "speed": 107.608695652174,
        "station": "上海",
        "stationTelecode": "SHH",
        "stopTime": 0,
        "trainCode": "D5"
      }
    ],
    "toArrive": "09:27",
    "toPos": 4,
    "toStationTelecode": "SHH",
    "type": "动车"
  }
]

RailGo官方公众号

在这里,获得 RailGo 的最新动态

扫码添加公众号
修改于 2026-06-13 11:21:49
上一页
车次查询
下一页
车站预选词
Built with