当前所在位置:首页>数据接口>生活服务>航班时刻票价查询

航班时刻票价查询 

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

数据ID:109

接口状态:正常

连接应用数:1000

接入服务商:haoservice

购买套餐

  • API
  • 错误码参照
  • 资费套餐
  • 版本变更
  • 代码示例
  • 其他相关
接口地址: http://apis.haoservice.com/efficient/flight/sk
支持格式: JSON/XML
请求方式: GET/POST
明文方式请求参数:
名称 类型 必填 说明
key string API KEY
orgCity String 始发城市的三字码
dstCity String 到达城市的三字码
flightDate DateTime 日期(年月日)默认是当前日期
airline String 航空公司的两字码或者"ALL"或者""
direct Boolean 直航/转飞
eticket Boolean 是否必须是电子票
密文方式请求参数:
名称 类型 必填 说明
IsEncrypt bool 是否密文传输方式
key string API KEY
params string 3des ECB模式 PKCS7填充模式 加密 3des("orgCity=SHA&dstCity=WUH&flightDate=&airline=&direct=true&eticket=true","openId前24位")
调用样例及调试工具:
返回字段:
名称 类型 说明
AirlineString本航段的航班号
ArrTimeString本航段的本航段的起飞时刻(时分)航班号
arrTimeModifyString本航段的起飞日期修正
AsrBoolean本航段的ASR支持标志
ClassListString本航段的舱位列表
DepTimeString本航段的到达时刻
depTimeModifyString本航段的到达日期修正
DstcityString本航段的到达城市的三字码
effectiveDateDateTime有效期限的起始时间(年月日)
flightClassesString本航段支持的舱位种类
expirationDateDateTime有效期限的截至时间(年月日)
IsEtktBoolean本航段的电子票标志
LinkString本航段的连接级别
MealBoolean本航段的餐食标志
OpenToString本航段的开放对象
OrgCityString本航段的始发城市的三字码
PlaneStyleString本航段使用的机型
StopNumberInt本航段的经停次数
明文JSON返回示例:
{"error_code":0,"reason":"成功","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,"source":null},{"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,"source":null},{"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,"source":null},{"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,"source":null},{"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,"source":null},{"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,"source":null},{"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,"source":null},{"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,"source":null},{"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,"source":null}]}
密文JSON返回示例:
hCe2pmNRFnwP3gbrGm9vnobmGI+VZPwJAFJ6xcEkeJGyOQKBipdMSDN1yb3lDI48WoqV7IJHb3tjJABrAc00igyE1dYBYQophG/6anzWjA857/YaMzKj5kfiVxyBavy4a4OudBnMncw=

推荐接口/API

  • 全国行政区域

    提供最新最全的全国行政区域查询、精确到县级乡镇、社区街道办事处

联系客服

010-58436659