[
{
"price_range_in_relation_to_other_periods": "typical",
"price_insights_low": 55,
"price_insights_high": 130,
"from_airport": "London (LHR)",
"to_airport": "Barcelona (BCN)",
"departure_date": "2027-06-15",
"price": "$58",
"price_as_number": 58,
"duration": "2 hr 20 min",
"duration_seconds": 8400,
"buy_link": "https://www.google.com/travel/flights?tfs=GjwSCjIwMjctMDYtMTUiIAoDTEhSEgoyMDI3LTA2LTE1GgNCQ04qAlZZMgQ3NjQzagUSA0xIUnIFEgNCQ05CAQFIAZgBAg&curr=usd",
"airline": "Vueling | Iberia, British Airways",
"stops": 0,
"stops_info": [],
"segments": [
{
"from_airport": "LHR",
"to_airport": "BCN",
"airline_code": "VY",
"flight_number": "7643",
"departure_date": "2027-06-15"
}
],
"departure_description": "8:50 PM on Tue, Jun 15",
"arrival_description": "12:10 AM on Wed, Jun 16"
},
{
"price_range_in_relation_to_other_periods": "typical",
"price_insights_low": 55,
"price_insights_high": 130,
"from_airport": "London (LHR)",
"to_airport": "Barcelona (BCN)",
"departure_date": "2027-06-15",
"price": "$64",
"price_as_number": 64,
"duration": "2 hr 20 min",
"duration_seconds": 8400,
"buy_link": "https://www.google.com/travel/flights?tfs=GjwSCjIwMjctMDYtMTUiIAoDTEhSEgoyMDI3LTA2LTE1GgNCQ04qAlZZMgQ3NjQxagUSA0xIUnIFEgNCQ05CAQFIAZgBAg&curr=usd",
"airline": "Vueling | Iberia, British Airways",
"stops": 0,
"stops_info": [],
"segments": [
{
"from_airport": "LHR",
"to_airport": "BCN",
"airline_code": "VY",
"flight_number": "7641",
"departure_date": "2027-06-15"
}
],
"departure_description": "9:55 AM on Tue, Jun 15",
"arrival_description": "1:15 PM on Tue, Jun 15"
}
]
curl --location --request POST 'https://zylalabs.com/api/14437/live+flight+prices+api/36485/one-way+flight+search' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"from_airport":"LHR","to_airport":"BCN","departure_date":"2027-06-15","limit":2}'
[
{
"price_range_in_relation_to_other_periods": "typical",
"price_insights_low": 135,
"price_insights_high": 210,
"from_airport": "Berlin (BER)",
"to_airport": "Paris (CDG)",
"departure_date": "2027-06-15",
"return_date": "2027-06-18",
"total_price": "$154",
"total_price_as_number": 154,
"total_duration_seconds": 12900,
"total_stops": 0,
"buy_link": "https://www.google.com/travel/flights?tfs=GjwSCjIwMjctMDYtMTUiIAoDQkVSEgoyMDI3LTA2LTE1GgNDREcqAlUyMgQ1MTU5agUSA0JFUnIFEgNDREcaPBIKMjAyNy0wNi0xOCIgCgNDREcSCjIwMjctMDYtMTgaA0JFUioCVTIyBDUxNjBqBRIDQ0RHcgUSA0JFUkIBAUgBmAEB&curr=usd",
"departure_flight_departure_description": "6:15 AM on Tue, Jun 15",
"departure_flight_arrival_description": "8:05 AM on Tue, Jun 15",
"departure_flight_airline": "easyJet",
"departure_flight_stops": 0,
"departure_flight_duration": "1 hr 50 min",
"departure_stops_info": [],
"return_flight_departure_description": "8:35 AM on Fri, Jun 18",
"return_flight_arrival_description": "10:20 AM on Fri, Jun 18",
"return_flight_airline": "easyJet",
"return_flight_stops": 0,
"return_flight_duration": "1 hr 45 min",
"return_stops_info": []
},
{
"price_range_in_relation_to_other_periods": "typical",
"price_insights_low": 135,
"price_insights_high": 210,
"from_airport": "Berlin (BER)",
"to_airport": "Paris (CDG)",
"departure_date": "2027-06-15",
"return_date": "2027-06-18",
"total_price": "$160",
"total_price_as_number": 160,
"total_duration_seconds": 12900,
"total_stops": 0,
"buy_link": "https://www.google.com/travel/flights?tfs=GjwSCjIwMjctMDYtMTUiIAoDQkVSEgoyMDI3LTA2LTE1GgNDREcqAlUyMgQ1MTYxagUSA0JFUnIFEgNDREcaPBIKMjAyNy0wNi0xOCIgCgNDREcSCjIwMjctMDYtMTgaA0JFUioCVTIyBDUxNjBqBRIDQ0RHcgUSA0JFUkIBAUgBmAEB&curr=usd",
"departure_flight_departure_description": "5:05 PM on Tue, Jun 15",
"departure_flight_arrival_description": "6:55 PM on Tue, Jun 15",
"departure_flight_airline": "easyJet",
"departure_flight_stops": 0,
"departure_flight_duration": "1 hr 50 min",
"departure_stops_info": [],
"return_flight_departure_description": "8:35 AM on Fri, Jun 18",
"return_flight_arrival_description": "10:20 AM on Fri, Jun 18",
"return_flight_airline": "easyJet",
"return_flight_stops": 0,
"return_flight_duration": "1 hr 45 min",
"return_stops_info": []
}
]
curl --location --request POST 'https://zylalabs.com/api/14437/live+flight+prices+api/36486/round+trip+flight+search' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"from_airport":"BER","to_airport":"CDG","departure_date":"2027-06-15","return_date":"2027-06-18","limit":2}'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 实时航班价格 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
实时航班价格API的单程和往返搜索的票价:价格、航空公司、中途停留、时长、订票链接以及谷歌自己的低价、典型价或高价评估。