获取车站大屏信息,获取车次、进站、出站、晚点时间、检票口等信息,与车站大屏实时同步。
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| key | string | 是 | 接口调用密钥 | |
| name | string | 否 | 站点或城市名称,可模糊输入 | 贵阳 |
| exact | integer | 否 | 是否精准匹配,仅可为:0(非精准)、1(精准),默认为:0(非精准) | 0 |
| station | string | 否 | 站点特征码,不区分大小写,搜索name时返回的同字段名的值 | KQW |
[
{
"name": "key",
"type": "string",
"required": true,
"description": "接口调用密钥",
"example": ""
},
{
"name": "name",
"type": "string",
"required": false,
"description": "站点或城市名称,可模糊输入",
"example": "贵阳"
},
{
"name": "exact",
"type": "integer",
"required": false,
"description": "是否精准匹配,仅可为:0(非精准)、1(精准),默认为:0(非精准)",
"example": "0"
},
{
"name": "station",
"type": "string",
"required": false,
"description": "站点特征码,不区分大小写,搜索name时返回的同字段名的值",
"example": "KQW"
}
]
{
"openapi": "3.1.1",
"info": {
"title": "车站大屏",
"description": "获取车站大屏信息,获取车次、进站、出站、晚点时间、检票口等信息,与车站大屏实时同步。",
"version": "1.0.0"
},
"paths": {
"/v1/12306_dp": {
"get": {
"summary": "车站大屏",
"description": "获取车站大屏信息,获取车次、进站、出站、晚点时间、检票口等信息,与车站大屏实时同步。",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "name",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "贵阳"
},
"description": "站点或城市名称,可模糊输入"
},
{
"name": "exact",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"example": 0
},
"description": "是否精准匹配,仅可为:0(非精准)、1(精准),默认为:0(非精准)"
},
{
"name": "station",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "KQW"
},
"description": "站点特征码,不区分大小写,搜索name时返回的同字段名的值"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
},
"post": {
"summary": "车站大屏",
"description": "获取车站大屏信息,获取车次、进站、出站、晚点时间、检票口等信息,与车站大屏实时同步。",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "name",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "贵阳"
},
"description": "站点或城市名称,可模糊输入"
},
{
"name": "exact",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"example": 0
},
"description": "是否精准匹配,仅可为:0(非精准)、1(精准),默认为:0(非精准)"
},
{
"name": "station",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "KQW"
},
"description": "站点特征码,不区分大小写,搜索name时返回的同字段名的值"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
},
"servers": [
{
"url": "https://xiaoapi.cn",
"description": "当前访问入口(https)"
}
]
}
{
"ok": true,
"fetchedAt": "2026-11-11T15:14:13+08:00",
"station": "KQW",
"date": "20261111",
"type": "D",
"counts": {
"bigScreen": 133,
"invalidBigScreen": 200
},
"data": {
"invalidBigScreen": [
{
"arriveTime": "-2209017600000",
"channel": "2",
"currentStationCode": "KQW",
"currentStationName": "贵阳北",
"delay": "0",
"departTime": "1794362700000",
"dispTrainCode": "C5760",
"endStationCode": "JFW",
"endStationName": "江油",
"exit": "",
"fullTrainCode": "78000C576001",
"platform": "1站台",
"show_date": "20261111|;20261111|;",
"startStationCode": "KQW",
"startStationName": "贵阳北",
"startTrainCode": "",
"stationTrainCode": "C5760",
"status": "3",
"type": "D",
"updateTime": "1794380900837",
"waitingRoom": "候车厅",
"wicket": "1B检票口"
},
{
"arriveTime": "-2209017600000",
"channel": "2",
"currentStationCode": "KQW",
"currentStationName": "贵阳北",
"delay": "0",
"departTime": "1794351840000",
"dispTrainCode": "C5831",
"endStationCode": "UBE",
"endStationName": "荔波",
"exit": "",
"fullTrainCode": "78000C583105",
"platform": "9站台",
"show_date": "20261111|;20261111|;",
"startStationCode": "KQW",
"startStationName": "贵阳北",
"startTrainCode": "",
"stationTrainCode": "C5831",
"status": "3",
"type": "D",
"updateTime": "1794380900837",
"waitingRoom": "候车厅",
"wicket": "8B9B检票口"
},
{
"arriveTime": "-2209017600000",
"channel": "2",
"currentStationCode": "KQW",
"currentStationName": "贵阳北",
"delay": "0",
"departTime": "1794365340000",
"dispTrainCode": "C5835",
"endStationCode": "UBE",
"endStationName": "荔波",
"exit": "",
"fullTrainCode": "78000C583505",
"platform": "23站台",
"show_date": "20261111|;20261111|;",
"startStationCode": "KQW",
"startStationName": "贵阳北",
"startTrainCode": "",
"stationTrainCode": "C5835",
"status": "3",
"type": "D",
"updateTime": "1794380900837",
"waitingRoom": "候车厅",
"wicket": "22A23A检票口"
},
{
"arriveTime": "1794378504503",
"channel": "2",
"currentStationCode": "KQW",
"currentStationName": "贵阳北",
"delay": "1",
"departTime": "1794378800044",
"dispTrainCode": "C5838",
"endStationCode": "BOE",
"endStationName": "毕节",
"exit": "出站口(南2),出站口(北2),出站口(南3),出站口(北3),出站换乘",
"fullTrainCode": "78000C583804",
"platform": "3站台",
"show_date": "20261111|;20261111|;",
"startStationCode": "UBE",
"startStationName": "荔波",
"startTrainCode": "",
"stationTrainCode": "C5838",
"status": "3",
"type": "D",
"updateTime": "1794380900837",
"waitingRoom": "候车厅",
"wicket": "2A3A检票口"
},
{
"arriveTime": "1794362631287",
"channel": "2",
"currentStationCode": "KQW",
"currentStationName": "贵阳北",
"delay": "1",
"departTime": "1794362897243",
"dispTrainCode": "C5843",
"endStationCode": "HNE",
"endStationName": "花溪南",
"exit": "出站口(南1),出站口(北1),出站口(南2),出站口(北2),出站口(南3),出站口(北3),出站换乘",
"fullTrainCode": "78000C584304",
"platform": "27站台",
"show_date": "20261111|;20261111|;",
"startStationCode": "ZYE",
"startStationName": "遵义",
"startTrainCode": "",
"stationTrainCode": "C5843",
"status": "3",
"type": "D",
"updateTime": "1794380900837",
"waitingRoom": "候车厅",
"wicket": "26B27B检票口"
},
{
"arriveTime": "1794359630077",
"channel": "2",
"currentStationCode": "KQW",
"currentStationName": "贵阳北",
"delay": "1",
"departTime": "1794360008048",
"dispTrainCode": "C5849",
"endStationCode": "HNE",
"endStationName": "花溪南",
"exit": "出站口(南2),出站口(北2),出站口(南3),出站口(北3),出站换乘",
"fullTrainCode": "78000C584905",
"platform": "15站台",
"show_date": "20261111|;20261111|;",
"startStationCode": "ZYE",
"startStationName": "遵义",
"startTrainCode": "",
"stationTrainCode": "C5849",
"status": "3",
"type": "D",
"updateTime": "1794380900837",
"waitingRoom": "候车厅",
"wicket": "14B15B检票口"
},
{
"arriveTime": "1794355357357",
"channel": "2",
"currentStationCode": "KQW",
"currentStationName": "贵阳北",
"delay": "2",
"departTime": "1794356204487",
"dispTrainCode": "C5850",
"endStationCode": "ZYE",
"endStationName": "遵义",
"exit": "出站口(南2),出站口(北2),出站口(南3),出站口(北3),出站换乘",
"fullTrainCode": "78000C585006",
"platform": "8站台",
"show_date": "20261111|;20261111|;",
"startStationCode": "GAE",
"startStationName": "贵安",
"startTrainCode": "",
"stationTrainCode": "C5850",
"status": "3",
"type": "D",
"updateTime": "1794380900837",
"waitingRoom": "候车厅",
"wicket": "8A9A检票口"
}
],
"stopTime": "",
"isShowTrainDetail": "N",
"perBigScreen": "",
"timestamp": 1794381253601
}
}
暂无详细文档
暂无代码示例。管理员可在后台用 AI 生成或手动编写。
// 结果将在此处显示
生效日期:2026年7月22日
欢迎使用 xiaoapi.cn(以下简称"本平台")。在使用本平台提供的 API 服务(以下简称"本服务")前,请务必仔细阅读并充分理解本免责声明。您以任何方式调用、访问或使用本服务,即视为您已阅读、理解并同意接受本声明的全部内容。
本平台作为 API 技术服务的提供方,仅提供技术接口与数据分发服务。本声明的目的在于明确平台与用户之间的责任边界,督促用户合法、合规地使用本服务,防范违法违规行为的发生。
用户在使用本服务时,明确禁止从事以下行为:
在法律法规允许的最大范围内,本平台对以下情形不承担责任:
因用户违反本声明或相关法律法规,导致本平台及其关联方、合作方遭受任何损失(包括但不限于赔偿款、罚款、律师费、诉讼费等),用户同意向本平台及相关方承担全部赔偿责任。
本平台有权根据法律法规变化、业务调整或监管要求,随时修改本声明。修改后的声明将在本页面公布,自公布之日起生效。您继续使用本服务,即视为接受更新后的声明。
如您对本声明有任何疑问,或发现他人存在违规使用本服务的行为,欢迎通过本平台公示的联系方式与我们联系,我们将及时处理。