航班票价查询api代码可实现查询舱位类型、货币类型、单程票价、往返票价、生效日期、截至日期、机场税、燃油税、折扣率等等。
接口名称:航班票价查询api
接口平台:聚合数据
接口地址:http://op.juhe.cn/flight/fd
支持格式:json/xml
请求方式:HTTP GET/POST
请求示例:http://op.juhe.cn/flight/fd?key=APPKEY&&orgCity=WUH&dstCity=PVG&date=2014-12-14&airline=all&PlaneModel=&passType=&dtype=json
航班票价查询api调用代码JSON返回示例:
{
"resultcode": "200",
"reason": "Success",
"result": [
{
"CabinType": "F",
"basicCabinType": "F",
"MoneyType": "CNY",
"SinglePrice": "1220.00",
"RoundPrice": "2440.00",
"discountRate": "151",
"startDate": "2007-05-29",
"endDate": "2015-04-17",
"airline": "8C",
"AirportTax": "50",
"fuelTax": "30",
"rule": "0001 PFN:01",
"orgCity": "WUH",
"dstcity": "PVG"
},
{
"CabinType": "C",
"basicCabinType": "C",
"MoneyType": "CNY",
"SinglePrice": "1050.00",
"RoundPrice": "2100.00",
"discountRate": "130",
"startDate": "2007-05-29",
"endDate": "2015-04-17",
"airline": "8C",
"AirportTax": "50",
"fuelTax": "30",
"rule": "0001 PFN:02",
"orgCity": "WUH",
"dstcity": "PVG"
},
{
"CabinType": "Y",
"basicCabinType": "Y",
"MoneyType": "CNY",
"SinglePrice": "810.00",
"RoundPrice": "1620.00",
"discountRate": "100",
"startDate": "2007-05-29",
"endDate": "2015-04-17",
"airline": "8C",
"AirportTax": "50",
"fuelTax": "30",
"rule": "0001 PFN:03",
"orgCity": "WUH",
"dstcity": "PVG"
},
{
"CabinType": "T",
"basicCabinType": "Y",
"MoneyType": "CNY",
"SinglePrice": "730.00",
"RoundPrice": "1460.00",
"discountRate": "90",
"startDate": "2007-05-29",
"endDate": "2015-04-17",
"airline": "8C",
"AirportTax": "50",
"fuelTax": "30",
"rule": "0001 PFN:04",
"orgCity": "WUH",
"dstcity": "PVG"
},
{
"CabinType": "K",
"basicCabinType": "Y",
"MoneyType": "CNY",
"SinglePrice": "690.00",
"RoundPrice": "1380.00",
"discountRate": "85",
"startDate": "2007-05-29",
"endDate": "2015-04-17",
"airline": "8C",
"AirportTax": "50",
"fuelTax": "30",
"rule": "0001 PFN:05",
"orgCity": "WUH",
"dstcity": "PVG"
},
{
"CabinType": "H",
"basicCabinType": "Y",
"MoneyType": "CNY",
"SinglePrice": "650.00",
"RoundPrice": "1300.00",
"discountRate": "80",
"startDate": "2007-05-29",
"endDate": "2015-04-17",
"airline": "8C",
"AirportTax": "50",
"fuelTax": "30",
"rule": "0001 PFN:06",
"orgCity": "WUH",
"dstcity": "PVG"
},
{
"CabinType": "M",
"basicCabinType": "Y",
"MoneyType": "CNY",
"SinglePrice": "610.00",
"RoundPrice": "1220.00",
"discountRate": "75",
"startDate": "2007-05-29",
"endDate": "2015-04-17",
"airline": "8C",
"AirportTax": "50",
"fuelTax": "30",
"rule": "0001 PFN:07",
"orgCity": "WUH",
"dstcity": "PVG"
},
{
"CabinType": "G",
"basicCabinType": "Y",
"MoneyType": "CNY",
"SinglePrice": "570.00",
"RoundPrice": "1140.00",
"discountRate": "70",
"startDate": "2007-05-29",
"endDate": "2015-04-17",
"airline": "8C",
"AirportTax": "50",
"fuelTax": "30",
"rule": "0001 PFN:08",
"orgCity": "WUH",
"dstcity": "PVG"
},
{
"CabinType": "S",
"basicCabinType": "Y",
"MoneyType": "CNY",
"SinglePrice": "530.00",
"RoundPrice": "1060.00",
"discountRate": "65",
"startDate": "2007-05-29",
"endDate": "2015-04-17",
"airline": "8C",
"AirportTax": "50",
"fuelTax": "30",
"rule": "0001 PFN:09",
"orgCity": "WUH",
"dstcity": "PVG"
},
{
"CabinType": "L",
"basicCabinType": "Y",
"MoneyType": "CNY",
"SinglePrice": "490.00",
"RoundPrice": "980.00",
"discountRate": "60",
"startDate": "2007-05-29",
"endDate": "2015-04-17",
"airline": "8C",
"AirportTax": "50",
"fuelTax": "30",
"rule": "0001 PFN:10",
"orgCity": "WUH",
"dstcity": "PVG"
},
{
"CabinType": "Q",
"basicCabinType": "Y",
"MoneyType": "CNY",
"SinglePrice": "450.00",
"RoundPrice": "900.00",
"discountRate": "56",
"startDate": "2007-05-29",
"endDate": "2015-04-17",
"airline": "8C",
"AirportTax": "50",
"fuelTax": "30",
"rule": "0001 PFN:11",
"orgCity": "WUH",
"dstcity": "PVG"
},
{
"CabinType": "E",
"basicCabinType": "Y",
"MoneyType": "CNY",
"SinglePrice": "410.00",
"RoundPrice": "820.00",
"discountRate": "51",
"startDate": "2007-05-29",
"endDate": "2015-04-17",
"airline": "8C",
"AirportTax": "50",
"fuelTax": "30",
"rule": "0001 PFN:12",
"orgCity": "WUH",
"dstcity": "PVG"
},
{
"CabinType": "W",
"basicCabinType": "Y",
"MoneyType": "CNY",
"SinglePrice": "360.00",
"RoundPrice": "720.00",
"discountRate": "44",
"startDate": "2007-05-29",
"endDate": "2015-04-17",
"airline": "8C",
"AirportTax": "50",
"fuelTax": "30",
"rule": "0001 PFN:13",
"orgCity": "WUH",
"dstcity": "PVG"
},
{
"CabinType": "F",
"basicCabinType": "F",
"MoneyType": "CNY",
"SinglePrice": "1220.00",
"RoundPrice": "2440.00",
"discountRate": "151",
"startDate": "2013-03-01",
"endDate": "2015-04-17",
"airline": "CA",
"AirportTax": "50",
"fuelTax": "30",
"rule": "FY1G PFN:14",
"orgCity": "WUH",
"dstcity": "PVG"
},
{
"CabinType": "C",
"basicCabinType": "C",
"MoneyType": "CNY",
"SinglePrice": "1050.00",
"RoundPrice": "2100.00",
"discountRate": "130",
"startDate": "2013-03-01",
"endDate": "2015-04-17",
"airline": "CA",
"AirportTax": "50",
"fuelTax": "30",
"rule": "FY1G PFN:15",
"orgCity": "WUH",
"dstcity": "PVG"
},
{
"CabinType": "W",
"basicCabinType": "Y",
"MoneyType": "CNY",
"SinglePrice": "810.00",
"RoundPrice": "1620.00",
"discountRate": "100",
"startDate": "2013-03-01",
&