• 96
  • 2904
  • 50

航班时刻票价查询

敬众科技 支持HTTPS

查询航班可售舱位、经停点、机票验真、实时起降时间、改签查询、机场天气等

  • API文档
  • 错误码参照
  • 示例代码
  • 联系我们
立即调用
接口地址:http://op.juhe.cn/flight/nfd
返回格式:jsom/xml
请求方式:http get/post
请求示例:http://op.juhe.cn/flight/nfd?key=APPKEY&&orgCity=WUH&dstCity=PVG&flightDate=2014-12-18&airline=all

请求参数说明:

名称 必填 类型 说明
  key string 在个人中心->我的数据,接口名称上方查看
  dtype string 返回数据的格式,xml或json,默认json
  orgCity string 始发城市的三字码
  dstCity string 到达城市的三字码
  flightDate Date 日期(年月日)
  airline string 航空公司的两字码或者"ALL"或者""

返回参数说明:

名称 类型 说明
  AirlineCode 字符串 航空公司
  FlightCourse 字符串 航段 如:PEK-SHA
  SeatClass 字符串 舱位
  BasicCabinType 字符串 基础舱位
  Price 双精度 票面价
  RtPrice 字符串 票价级别
  GoDepartureAirport 字符串 去程出发机场
  GoArrivalAirport 字符串 去程到达机场
  GoStartDate 字符串 去程乘机日期始
  GoExpirationDate 字符串 去程乘机日期止
  SmallestAdvancingDay 整数型 提前预定最小天数
  BiggestAdvancingDay 整数型 提前预定最大天数
  GoFlightNoInclude 字符串 去程适用航班
  GoFlightNoExclude 字符串 去程不适用航班
  RefundRule 字符串 退票规定
  ChangeRule 字符串 变更规定
  GoFlightCycle 字符串 去程班期限制
 

JSON返回示例:

{
    "resultcode": "200",
    "reason": "Success",
    "result": [
        {
            "AirlineCode": "HO",
            "FlightCourse": "WUH-PVG",
            "SeatClass": "I",
            "BasicCabinType": "Y",
            "Price": "280.0000",
            "RtPrice": "0",
            "GoDepartureAirport": "WUH",
            "GoArrivalAirport": "PVG",
            "GoStartDate": "2014-12-16",
            "GoExpirationDate": "2015-01-31",
            "SmallestAdvancingDay": "0",
            "BiggestAdvancingDay": "365",
            "GoFlightNoInclude": "1118-1118",
            "GoFlightNoExclude": [],
            "RefundRule": [],
            "ChangeRule": [],
            "GoFlightCycle": []
        },
        {
            "AirlineCode": "FM",
            "FlightCourse": "WUH-PVG",
            "SeatClass": "T",
            "BasicCabinType": "Y",
            "Price": "290.0000",
            "RtPrice": "0",
            "GoDepartureAirport": "WUH",
            "GoArrivalAirport": "PVG",
            "GoStartDate": "2014-10-17",
            "GoExpirationDate": "2015-01-31",
            "SmallestAdvancingDay": "0",
            "BiggestAdvancingDay": "365",
            "GoFlightNoInclude": "9364-9364/9372-9372",
            "GoFlightNoExclude": [],
            "RefundRule": [],
            "ChangeRule": [],
            "GoFlightCycle": []
        },
        {
            "AirlineCode": "MU",
            "FlightCourse": "WUH-PVG",
            "SeatClass": "T",
            "BasicCabinType": "Y",
            "Price": "290.0000",
            "RtPrice": "0",
            "GoDepartureAirport": "WUH",
            "GoArrivalAirport": "PVG",
            "GoStartDate": "2014-10-17",
            "GoExpirationDate": "2015-01-31",
            "SmallestAdvancingDay": "0",
            "BiggestAdvancingDay": "365",
            "GoFlightNoInclude": "9364-9364/9372-9372/577-577/2543-2543/2691-2691/2019-2019/517-517",
            "GoFlightNoExclude": [],
            "RefundRule": [],
            "ChangeRule": [],
            "GoFlightCycle": []
        },
        {
            "AirlineCode": "MU",
            "FlightCourse": "WUH-PVG",
            "SeatClass": "T",
            "BasicCabinType": "Y",
            "Price": "260.0000",
            "RtPrice": "0",
            "GoDepartureAirport": "WUH",
            "GoArrivalAirport": "PVG",
            "GoStartDate": "2014-11-12",
            "GoExpirationDate": "2014-12-31",
            "SmallestAdvancingDay": "0",
            "BiggestAdvancingDay": "365",
            "GoFlightNoInclude": "517-517",
            "GoFlightNoExclude": [],
            "RefundRule": [],
            "ChangeRule": [],
            "GoFlightCycle": []
        },
        {
            "AirlineCode": "CZ",
            "FlightCourse": "WUH-PVG",
            "SeatClass": "Z",
            "BasicCabinType": "Y",
            "Price": "430.0000",
            "RtPrice": "0",
            "GoDepartureAirport": "WUH",
            "GoArrivalAirport": "PVG",
            "GoStartDate": "2014-10-26",
            "GoExpirationDate": "2020-12-31",
            "SmallestAdvancingDay": "0",
            "BiggestAdvancingDay": "365",
            "GoFlightNoInclude": [],
            "GoFlightNoExclude": [],
            "RefundRule": [],
            "ChangeRule": [],
            "GoFlightCycle": []
        },
        {
            "AirlineCode": "HO",
            "FlightCourse": "WUH-PVG",
            "SeatClass": "X",
            "BasicCabinType": "Y",
            "Price": "220.0000",
            "RtPrice": "0",
            "GoDepartureAirport": "WUH",
            "GoArrivalAirport": "PVG",
            "GoStartDate": "2014-10-26",
            "GoExpirationDate": "2014-12-31",
            "SmallestAdvancingDay": "0",
            "BiggestAdvancingDay": "365",
            "GoFlightNoInclude": "1068-1068",
            "GoFlightNoExclude": [],
            "RefundRule": [],
            "ChangeRule": [],
            "GoFlightCycle": []
        },
        {
            "AirlineCode": "HO",
            "FlightCourse": "WUH-PVG",
            "SeatClass": "X",
            "BasicCabinType": "Y",
            "Price": "270.0000",
            "RtPrice": "0",
            "GoDepartureAirport": "WUH",
            "GoArrivalAirport": "PVG",
            "GoStartDate": "2014-10-26",
            "GoExpirationDate": "2014-12-31",
            "SmallestAdvancingDay": "0",
            "BiggestAdvancingDay": "3",
            "GoFlightNoInclude": "1118-1118",
            "GoFlightNoExclude": [],
            "RefundRule": [],
            "ChangeRule": [],
            "GoFlightCycle": []
        },
        {
            "AirlineCode": "HO",
            "FlightCourse": "WUH-PVG",
            "SeatClass": "Q",
            "BasicCabinType": "Y",
            "Price": "430.0000",
            "RtPrice": "0",
            "GoDepartureAirport": "WUH",
            "GoArrivalAirport": "PVG",
            "GoStartDate": "2014-06-20",
            "GoExpirationDate": "2023-12-30",
            "SmallestAdvancingDay": "0",
            "BiggestAdvancingDay": "365",
            "GoFlightNoInclude": [],
            "GoFlightNoExclude": [],
            "RefundRule": [],
            "ChangeRule": [],
            "GoFlightCycle": []
        },
        {
            "AirlineCode": "HO",
            "FlightCourse": "WUH-PVG",
            "SeatClass": "P",
            "BasicCabinType": "Y",
            "Price": "320.0000",
            "RtPrice": "0",
            "GoDepartureAirport": "WUH",
            "GoArrivalAirport": "PVG",
            "GoStartDate": "2014-06-20",
            "GoExpirationDate": "2020-12-31",
            "SmallestAdvancingDay": "0",
            "BiggestAdvancingDay": "365",
            "GoFlightNoInclude": [],
            "GoFlightNoExclude": [],
            "RefundRule": [],
            "ChangeRule": [],
            "GoFlightCycle": []
        },
        {
            "AirlineCode": "CZ",
            "FlightCourse": "WUH-PVG",
            "SeatClass": "T",
            "BasicCabinType": "Y",
            "Price": "240.0000",
            "RtPrice": "0",
            "GoDepartureAirport": "WUH",
            "GoArrivalAirport": "PVG",
            "GoStartDate": "2014-12-01",
            "GoExpirationDate": "2014-12-31",
            "SmallestAdvancingDay": "0",
            "BiggestAdvancingDay": "30",
            "GoFlightNoInclude": "3823-3823",
            "GoFlightNoExclude": [],
            "RefundRule": [],
            "ChangeRule": [],
            "GoFlightCycle": []
        },
        {
            "AirlineCode": "CZ",
            "FlightCourse": "WUH-PVG",
            "SeatClass": "T",
            "BasicCabinType": "Y",
            "Price": "270.0000",
            "RtPrice": "0",
            "GoDepartureAirport": "WUH",
            "GoArrivalAirport": "PVG",
            "GoStartDate": "2014-12-01",
            "GoExpirationDate": "2014-12-31",
            "SmallestAdvancingDay": "1",
            "BiggestAdvancingDay": "30",
            "GoFlightNoInclude": "6197-6197",
            "GoFlightNoExclude": [],
            "RefundRule": [],
            "ChangeRule": [],
            "GoFlightCycle": "1,2,3,6"
        },
        {
            "AirlineCode": "CZ",
            "FlightCourse": "WUH-PVG",
            "SeatClass": "T",
            "BasicCabinType": "Y",
            "Price": "290.0000",
            "RtPrice": "0",
            "GoDepartureAirport": "WUH",
            "GoArrivalAirport": "PVG",
            "GoStartDate": "2014-12-01",
            "GoExpirationDate": "2014-12-31",
            "SmallestAdvancingDay": "0",
            "BiggestAdvancingDay": "30",
            "GoFlightNoInclude": "3543-3543",
            "GoFlightNoExclude": [],
            "RefundRule": [],
            "ChangeRule": [],
            "GoFlightCycle": "1,2,3,6"
        },
        {
            "AirlineCode": "HO",
            "FlightCourse": "WUH-PVG",
            "SeatClass": "A",
            "BasicCabinType": "F",
            "Price": "1080.0000",
            "RtPrice": "0",
            "GoDepartureAirport": "WUH",
            "GoArrivalAirport": "PVG",
            "GoStartDate": "2014-10-27",
            "GoExpirationDate": "2015-02-21",
            "SmallestAdvancingDay": "0",
            "BiggestAdvancingDay": "3",
            "GoFlightNoInclude": "1068-1068",
            "GoFlightNoExclude": [],
            "RefundRule": [],
            "ChangeRule": [],
            "GoFlightCycle": []
        },
        {
            "AirlineCode": "HO",
            "FlightCourse": "WUH-PVG",
            "SeatClass": "A",
            "BasicCabinType": "F",
            "Price": "1300.0000",
            "RtPrice": "0",
            "GoDepartureAirport": "WUH",
            "GoArrivalAirport": "PVG",
            "GoStartDate": "2014-10-27",
            "GoExpirationDate": "2015-02-21",
            "SmallestAdvancingDay": "0",
            "BiggestAdvancingDay": "3",
            "GoFlightNoInclude": "1118-1118",
            "GoFlightNoExclude": [],
            "RefundRule": [],
            "ChangeRule": [],
            "GoFlightCycle": []
        },
        {
            "AirlineCode": "HO",
            "FlightCourse": "WUH-PVG",
            "SeatClass": "Z",
            "BasicCabinType": "Y",
            "Price": "380.0000",
            "RtPrice": "0",
            "GoDepartureAirport": "WUH",
            "GoArrivalAirport": "PVG",
            "GoStartDate": "2014-06-20",
            "GoExpirationDate": "2023-12-30",
            "SmallestAdvancingDay": "0",
            "BiggestAdvancingDay": "365",
            "GoFlightNoInclude": [],
            "GoFlightNoExclude": [],
            "RefundRule": [],
            "ChangeRule": [],
            "GoFlightCycle": []
        },
        {
            "AirlineCode": "MU",
            "FlightCourse": "WUH-PVG",
            "SeatClass": "P",
            "BasicCabinType": "Y",
            "Price": "2150.0000",
            "RtPrice": "0",
            "GoDepartureAirport": "WUH",
            "GoArrivalAirport": "PVG",
            "GoStartDate": "2014-12-15",
            "GoExpirationDate": "2020-12-30",
            "SmallestAdvancingDay": "0",
            "BiggestAdvancingDay": "2",
            "GoFlightNoInclude": [],
            "GoFlightNoExclude": [],
            "RefundRule": [],
            "ChangeRule": [],
            "GoFlightCycle": []
        },
        {
            "AirlineCode": "FM",
            "FlightCourse": "WUH-PVG",
            "SeatClass": "P",
            "BasicCabinType": "Y",
            "Price": "1620.0000",
            "RtPrice": "0",
            "GoDepartureAirport": "WUH",
            "GoArrivalAirport": "PVG",
            "GoStartDate": "2014-12-15",
            "GoExpirationDate": "2020-12-30",
            "SmallestAdvancingDay": "0",
            "BiggestAdvancingDay": "2",
            "GoFlightNoInclude": [],
            "GoFlightNoExclude": [],
            "RefundRule": [],
            "ChangeRule": [],
            "GoFlightCycle": []
        },
        {
            "AirlineCode": "HO",
            "FlightCourse": "WUH-PVG",
            "SeatClass": "I",
            "BasicCabinType": "Y",
            "Price": "260.0000",
            "RtPrice": "0",
            "GoDepartureAirport": "WUH",
            "GoArrivalAirport": "PVG",
            "GoStartDate": "2014-12-16",
            "GoExpirationDate": "2015-01-31",
            "SmallestAdvancingDay": "0",
            "BiggestAdvancingDay": "365",
            "GoFlightNoInclude": "1068-1068",
            "GoFlightNoExclude": [],
            "RefundRule": [],
            "ChangeRule": [],
            "GoFlightCycle": []
        }
    ],
    "error_code": 0
}

服务级错误码参照(error_code):

  错误码 说明

系统级错误码参照:

  错误码 说明 旧版本(resultcode)

错误码格式说明(示例:200201):

  2 002 01
  服务级错误(1为系统级错误) 服务模块代码(即数据ID) 具体错误代码

完整教学代码示例:

  语言 标题 提供者 时间

常见问题:

  内容 详细
  常见问题: http://www.juhe.cn/qa/index/1547809830

联系我们

  内容 详细
  接口测试: API测试工具
  技术支持: info@juhe.cn
  联系电话: 400-882-7715
  在线客服QQ: 800076065

现在注册,百款接口免费测试

免费注册