API简介:通过用户输入的出发地和终点地与日期来查询车票信息

接口问题联系相关负责人沟通修复:查看该接口开发者

接口地址:https://tools.mgtv100.com/external/v1/pear/highSpeedTicket

返回格式:JSON

请求方式:POST

请求参数:https://tools.mgtv100.com/external/v1/pear/highSpeedTicket

注:单纯检测接口是否可调通,返回的数据请自行检查

检测接口中...(检测服务是否可用)


状态码 累计次数 最后检测时间
正常 0 0000-00-00 00:00:00
故障 375 2025-01-07 08:43:34

您好!我们的平台聚合了上千位开发者提供的免费接口,我们已尽力确保接口的稳定性,但由于无法控制其他开发者的接口,可能会出现不稳定或服务中断的情况。对此,我们深感抱歉!我们正在积极改善这一问题,感谢您的理解与支持。
1. 由于开发者可能因盈利问题导致接口失效,我为此向您道歉
2. 我们竭尽全力改进平台的接口稳定性。
3. 为便于您使用,我们提供了智能生成对接代码和在线极速测试接口的功能。
4. 我们将继续努力提供更多可靠的接口,满足您的需求。
5. 若有任何问题,欢迎通过微信与我联系:13132131321。再次感谢您的支持与信任!


接口注意:接口故障请及时反馈,修复进度将通过短信通知。

非官方接口,请联系开发者获取技术支持

Bug修复:非官方接口,Bug反馈请联系开发者

会员线路:因调用量剧增,定制独享优质线路请 参考定制方案

专属线路 成本透明 0服务费

请求参数

接口名称 是否必填 接口类型 接口说明
from string 广州
to string 深圳
time string 2024-09-10

返回示例

{
    "status": "success",
    "code": 200,
    "data": [
        {
            "traintype": "高铁",
            "trainumber": "G2925",
            "departstation": "广州南",
            "arrivestation": "深圳北",
            "departtime": "22:49",
            "arrivetime": "23:25",
            "runtime": "36分钟",
            "ticket_info": [
                {
                    "seatname": "二等座",
                    "bookable": "暂无车票",
                    "seatprice": 74.5,
                    "seatinventory": 0
                },
                {
                    "seatname": "一等座",
                    "bookable": "有车票",
                    "seatprice": 99.5,
                    "seatinventory": 99
                },
                {
                    "seatname": "商务座",
                    "bookable": "有车票",
                    "seatprice": 199.5,
                    "seatinventory": 9
                }
            ]
        },
        {
            "traintype": "高铁",
            "trainumber": "G9715",
            "departstation": "广州南",
            "arrivestation": "深圳北",
            "departtime": "22:54",
            "arrivetime": "23:32",
            "runtime": "38分钟",
            "ticket_info": [
                {
                    "seatname": "二等座",
                    "bookable": "有车票",
                    "seatprice": 74.5,
                    "seatinventory": 99
                },
                {
                    "seatname": "一等座",
                    "bookable": "有车票",
                    "seatprice": 99.5,
                    "seatinventory": 99
                },
                {
                    "seatname": "商务座",
                    "bookable": "有车票",
                    "seatprice": 199.5,
                    "seatinventory": 5
                }
            ]
        },
        {
            "traintype": "高铁",
            "trainumber": "G9717",
            "departstation": "广州南",
            "arrivestation": "深圳北",
            "departtime": "23:05",
            "arrivetime": "23:36",
            "runtime": "31分钟",
            "ticket_info": [
                {
                    "seatname": "二等座",
                    "bookable": "有车票",
                    "seatprice": 74.5,
                    "seatinventory": 99
                },
                {
                    "seatname": "一等座",
                    "bookable": "有车票",
                    "seatprice": 99.5,
                    "seatinventory": 99
                },
                {
                    "seatname": "商务座",
                    "bookable": "有车票",
                    "seatprice": 199.5,
                    "seatinventory": 99
                }
            ]
        },
        {
            "traintype": "高铁",
            "trainumber": "G2917",
            "departstation": "广州南",
            "arrivestation": "深圳北",
            "departtime": "23:10",
            "arrivetime": "23:40",
            "runtime": "30分钟",
            "ticket_info": [
                {
                    "seatname": "二等座",
                    "bookable": "暂无车票",
                    "seatprice": 74.5,
                    "seatinventory": 0
                },
                {
                    "seatname": "一等座",
                    "bookable": "暂无车票",
                    "seatprice": 99.5,
                    "seatinventory": 0
                },
                {
                    "seatname": "商务座",
                    "bookable": "暂无车票",
                    "seatprice": 199.5,
                    "seatinventory": 0
                }
            ]
        },
        {
            "traintype": "高铁",
            "trainumber": "G6097",
            "departstation": "广州南",
            "arrivestation": "深圳北",
            "departtime": "23:15",
            "arrivetime": "23:44",
            "runtime": "29分钟",
            "ticket_info": [
                {
                    "seatname": "二等座",
                    "bookable": "有车票",
                    "seatprice": 74.5,
                    "seatinventory": 10
                },
                {
                    "seatname": "一等座",
                    "bookable": "有车票",
                    "seatprice": 99.5,
                    "seatinventory": 10
                },
                {
                    "seatname": "商务座",
                    "bookable": "有车票",
                    "seatprice": 199.5,
                    "seatinventory": 9
                }
            ]
        },
        {
            "traintype": "高铁",
            "trainumber": "G6025",
            "departstation": "广州南",
            "arrivestation": "深圳北",
            "departtime": "23:25",
            "arrivetime": "23:54",
            "runtime": "29分钟",
            "ticket_info": [
                {
                    "seatname": "二等座",
                    "bookable": "暂无车票",
                    "seatprice": 74.5,
                    "seatinventory": 0
                },
                {
                    "seatname": "一等座",
                    "bookable": "暂无车票",
                    "seatprice": 99.5,
                    "seatinventory": 0
                },
                {
                    "seatname": "商务座",
                    "bookable": "有车票",
                    "seatprice": 199.5,
                    "seatinventory": 2
                }
            ]
        }
    ]
}

返回参数

接口名称 接口类型 接口说明

开发者未填写此数据,无法生成 JSON 示例,请参考小白对接

小白教程

本教程帮助用户快速对接高铁动车车票查询接口,现已支持智能生成代码

生成代码

支持生成对接高铁动车车票查询接口代码,多语言选择,助力学生对接!

注意,AI·BOT自动生成对接「高铁动车车票查询」简易代码,方便您调试对接,实时生成!

点击生成代码,自动生成对接代码,您可以自行测试,如有疑问请联系夏柔QQ:1501904!
自动生成JAVA对接「高铁动车车票查询」代码,如有疑问请联系夏柔QQ:1501904!
自动生成PHP对接「高铁动车车票查询」代码,如有疑问请联系夏柔QQ:1501904!
自动生成NodeJS对接「高铁动车车票查询」代码,如有疑问请联系夏柔QQ:1501904!
自动生成C语言对接「高铁动车车票查询」代码,如有疑问请联系夏柔QQ:1501904!
                                                        

实时调试

部分视频、图片或其他接口报错、空值并不代表无法对接,请在本地尝试请求参数接口

在线调试

温馨提示:请修改请求参数,未修改可能返回报错

参数名称 参数值(修改后测试)
{
    "status": "success",
    "code": 200,
    "data": [
        {
            "traintype": "高铁",
            "trainumber": "G2925",
            "departstation": "广州南",
            "arrivestation": "深圳北",
            "departtime": "22:49",
            "arrivetime": "23:25",
            "runtime": "36分钟",
            "ticket_info": [
                {
                    "seatname": "二等座",
                    "bookable": "暂无车票",
                    "seatprice": 74.5,
                    "seatinventory": 0
                },
                {
                    "seatname": "一等座",
                    "bookable": "有车票",
                    "seatprice": 99.5,
                    "seatinventory": 99
                },
                {
                    "seatname": "商务座",
                    "bookable": "有车票",
                    "seatprice": 199.5,
                    "seatinventory": 9
                }
            ]
        },
        {
            "traintype": "高铁",
            "trainumber": "G9715",
            "departstation": "广州南",
            "arrivestation": "深圳北",
            "departtime": "22:54",
            "arrivetime": "23:32",
            "runtime": "38分钟",
            "ticket_info": [
                {
                    "seatname": "二等座",
                    "bookable": "有车票",
                    "seatprice": 74.5,
                    "seatinventory": 99
                },
                {
                    "seatname": "一等座",
                    "bookable": "有车票",
                    "seatprice": 99.5,
                    "seatinventory": 99
                },
                {
                    "seatname": "商务座",
                    "bookable": "有车票",
                    "seatprice": 199.5,
                    "seatinventory": 5
                }
            ]
        },
        {
            "traintype": "高铁",
            "trainumber": "G9717",
            "departstation": "广州南",
            "arrivestation": "深圳北",
            "departtime": "23:05",
            "arrivetime": "23:36",
            "runtime": "31分钟",
            "ticket_info": [
                {
                    "seatname": "二等座",
                    "bookable": "有车票",
                    "seatprice": 74.5,
                    "seatinventory": 99
                },
                {
                    "seatname": "一等座",
                    "bookable": "有车票",
                    "seatprice": 99.5,
                    "seatinventory": 99
                },
                {
                    "seatname": "商务座",
                    "bookable": "有车票",
                    "seatprice": 199.5,
                    "seatinventory": 99
                }
            ]
        },
        {
            "traintype": "高铁",
            "trainumber": "G2917",
            "departstation": "广州南",
            "arrivestation": "深圳北",
            "departtime": "23:10",
            "arrivetime": "23:40",
            "runtime": "30分钟",
            "ticket_info": [
                {
                    "seatname": "二等座",
                    "bookable": "暂无车票",
                    "seatprice": 74.5,
                    "seatinventory": 0
                },
                {
                    "seatname": "一等座",
                    "bookable": "暂无车票",
                    "seatprice": 99.5,
                    "seatinventory": 0
                },
                {
                    "seatname": "商务座",
                    "bookable": "暂无车票",
                    "seatprice": 199.5,
                    "seatinventory": 0
                }
            ]
        },
        {
            "traintype": "高铁",
            "trainumber": "G6097",
            "departstation": "广州南",
            "arrivestation": "深圳北",
            "departtime": "23:15",
            "arrivetime": "23:44",
            "runtime": "29分钟",
            "ticket_info": [
                {
                    "seatname": "二等座",
                    "bookable": "有车票",
                    "seatprice": 74.5,
                    "seatinventory": 10
                },
                {
                    "seatname": "一等座",
                    "bookable": "有车票",
                    "seatprice": 99.5,
                    "seatinventory": 10
                },
                {
                    "seatname": "商务座",
                    "bookable": "有车票",
                    "seatprice": 199.5,
                    "seatinventory": 9
                }
            ]
        },
        {
            "traintype": "高铁",
            "trainumber": "G6025",
            "departstation": "广州南",
            "arrivestation": "深圳北",
            "departtime": "23:25",
            "arrivetime": "23:54",
            "runtime": "29分钟",
            "ticket_info": [
                {
                    "seatname": "二等座",
                    "bookable": "暂无车票",
                    "seatprice": 74.5,
                    "seatinventory": 0
                },
                {
                    "seatname": "一等座",
                    "bookable": "暂无车票",
                    "seatprice": 99.5,
                    "seatinventory": 0
                },
                {
                    "seatname": "商务座",
                    "bookable": "有车票",
                    "seatprice": 199.5,
                    "seatinventory": 2
                }
            ]
        }
    ]
}