• 96
  • 2904
  • 48

航班时刻票价查询

敬众科技 支持HTTPS

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

  • 4000
  • 10000

¥99.00 (约元/次)

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

请求参数说明:

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

返回参数说明:

名称 类型 说明
  Airline 字符串 本航段的航班号
  ArrTime 字符串 本航段的起飞时刻(时分)
  arrTimeModify 字符串 本航段的起飞日期修正
  Asr 布尔型 本航段的ASR支持标志
  ClassList 字符串 本航段的舱位列表
  DepTime 字符串 本航段的到达时刻
  depTimeModify 字符串 本航段的到达日期修正
  Dstcity 字符串 本航段的到达城市的三字码
  effectiveDate 日期类型 有效期限的起始时间(年月日)
  expirationDate 日期类型 有效期限的截至时间(年月日)
  flightClasses 字符串 本航段支持的舱位种类
  IsEtkt 布尔型 本航段的电子票标志
  Link 字符串 本航段的连接级别
  Meal 布尔型 本航段的餐食标志
  OpenTo 字符串 本航段的开放对象
  OrgCity 字符串 本航段的始发城市的三字码
  PlaneStyle 字符串 本航段使用的机型
  StopNumber 长整型 本航段的经停次数
 

JSON返回示例:

{
    "resultcode": "200",
    "reason": "Success",
    "result": [
        {
            "flightNo": "FM9361    ",
            "ArrTime": "0755  ",
            "arrTimeModify": "0755  ",
            "Asr": "false",
            "ClassList": "FPAYKBEHLMNRSVTWG*",
            "DepTime": "0940  ",
            "DepTimeModify": [],
            "Dstcity": "WUH",
            "effectiveDate": "2012-12-01T00:00:00",
            "expirationDate": "2012-12-01T00:00:00",
            "flightClasses": [],
            "IsEtkt": "true",
            "Link": "false",
            "Meal": "false",
            "OpenTo": [],
            "OrgCity": "SHA",
            "PlaneStyle": "73E",
            "StopNumber": "0"
        },
        {
            "flightNo": "MU9361    ",
            "ArrTime": "0755  ",
            "arrTimeModify": "0755  ",
            "Asr": "false",
            "ClassList": "FPYKBEHLMNRSVTWGX*",
            "DepTime": "0940  ",
            "DepTimeModify": [],
            "Dstcity": "WUH",
            "effectiveDate": "2012-12-01T00:00:00",
            "expirationDate": "2012-12-01T00:00:00",
            "flightClasses": [],
            "IsEtkt": "true",
            "Link": "false",
            "Meal": "false",
            "OpenTo": [],
            "OrgCity": "SHA",
            "PlaneStyle": "73E",
            "StopNumber": "0"
        },
        {
            "flightNo": "FM9359    ",
            "ArrTime": "0915  ",
            "arrTimeModify": "0915  ",
            "Asr": "false",
            "ClassList": "FPAYKBEHLMNRSVTWG*",
            "DepTime": "1105  ",
            "DepTimeModify": [],
            "Dstcity": "WUH",
            "effectiveDate": "2012-03-29T00:00:00",
            "expirationDate": "2012-03-29T00:00:00",
            "flightClasses": [],
            "IsEtkt": "true",
            "Link": "false",
            "Meal": "false",
            "OpenTo": [],
            "OrgCity": "SHA",
            "PlaneStyle": "738",
            "StopNumber": "0"
        },
        {
            "flightNo": "MU9359    ",
            "ArrTime": "0915  ",
            "arrTimeModify": "0915  ",
            "Asr": "false",
            "ClassList": "FPYKBEHLMNRSVTWGX*",
            "DepTime": "1105  ",
            "DepTimeModify": [],
            "Dstcity": "WUH",
            "effectiveDate": "2012-03-29T00:00:00",
            "expirationDate": "2012-03-29T00:00:00",
            "flightClasses": [],
            "IsEtkt": "true",
            "Link": "false",
            "Meal": "false",
            "OpenTo": [],
            "OrgCity": "SHA",
            "PlaneStyle": "738",
            "StopNumber": "0"
        },
        {
            "flightNo": "MU2516    ",
            "ArrTime": "1045  ",
            "arrTimeModify": "1045  ",
            "Asr": "false",
            "ClassList": "FPAYKBEHLMNRSVTWG*",
            "DepTime": "1235  ",
            "DepTimeModify": [],
            "Dstcity": "WUH",
            "effectiveDate": "2012-11-27T00:00:00",
            "expirationDate": "2012-11-27T00:00:00",
            "flightClasses": [],
            "IsEtkt": "true",
            "Link": "false",
            "Meal": "false",
            "OpenTo": [],
            "OrgCity": "SHA",
            "PlaneStyle": "JET",
            "StopNumber": "0"
        },
        {
            "flightNo": "FM9363    ",
            "ArrTime": "1925  ",
            "arrTimeModify": "1925  ",
            "Asr": "false",
            "ClassList": "FPAYKBEHLMNRSVTWG*",
            "DepTime": "2120  ",
            "DepTimeModify": [],
            "Dstcity": "WUH",
            "effectiveDate": "2012-03-30T00:00:00",
            "expirationDate": "2012-03-30T00:00:00",
            "flightClasses": [],
            "IsEtkt": "true",
            "Link": "false",
            "Meal": "false",
            "OpenTo": [],
            "OrgCity": "SHA",
            "PlaneStyle": "738",
            "StopNumber": "0"
        },
        {
            "flightNo": "MU9363    ",
            "ArrTime": "1925  ",
            "arrTimeModify": "1925  ",
            "Asr": "false",
            "ClassList": "FPYKBEHLMNRSVTWGX*",
            "DepTime": "2120  ",
            "DepTimeModify": [],
            "Dstcity": "WUH",
            "effectiveDate": "2012-03-30T00:00:00",
            "expirationDate": "2012-03-30T00:00:00",
            "flightClasses": [],
            "IsEtkt": "true",
            "Link": "false",
            "Meal": "false",
            "OpenTo": [],
            "OrgCity": "SHA",
            "PlaneStyle": "738",
            "StopNumber": "0"
        },
        {
            "flightNo": "MU2512    ",
            "ArrTime": "2345  ",
            "arrTimeModify": "2345  ",
            "Asr": "false",
            "ClassList": "FPAYKBEHLMNRSVTWG*",
            "DepTime": "0140  ",
            "DepTimeModify": [],
            "Dstcity": "WUH",
            "effectiveDate": "2012-12-30T00:00:00",
            "expirationDate": "2012-12-30T00:00:00",
            "flightClasses": [],
            "IsEtkt": "true",
            "Link": "false",
            "Meal": "false",
            "OpenTo": [],
            "OrgCity": "SHA",
            "PlaneStyle": "JET",
            "StopNumber": "0"
        },
        {
            "flightNo": "MU2512    ",
            "ArrTime": "2345  ",
            "arrTimeModify": "2345  ",
            "Asr": "false",
            "ClassList": "FPAYKBEHLMNRSVTWG*",
            "DepTime": "0140  ",
            "DepTimeModify": [],
            "Dstcity": "WUH",
            "effectiveDate": "2012-12-31T00:00:00",
            "expirationDate": "2012-12-31T00:00:00",
            "flightClasses": [],
            "IsEtkt": "true",
            "Link": "false",
            "Meal": "false",
            "OpenTo": [],
            "OrgCity": "SHA",
            "PlaneStyle": "JET",
            "StopNumber": "0"
        }
    ],
    "error_code": 0
}

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

  错误码 说明
  209601 参数错误(按照接口参数要求传参)
  209602 没有相关信息
  209603 接口升级中

系统级错误码参照:

  错误码 说明 旧版本(resultcode)
  10001 错误的请求KEY 101
  10002 该KEY无请求权限 102
  10003 KEY过期 103
  10004 错误的OPENID 104
  10005 应用未审核超时,请提交认证 105
  10007 未知的请求源 107
  10008 被禁止的IP 108
  10009 被禁止的KEY 109
  10011 当前IP请求超过限制 111
  10012 请求超过次数限制 112
  10013 测试KEY超过请求限制 113
  10014 系统内部异常(调用充值类业务时,请务必联系客服或通过订单查询接口检测订单,避免造成损失) 114
  10020 接口维护 120
  10021 接口停用 121

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

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

完整教学代码示例:

  语言 标题 提供者 时间

常见问题:

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

联系我们

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

猜你喜欢

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

免费注册