Flight Price
Description: Shows airline ticket prices and fare comparisons for specific routes.
API Response Structure:
{
"route": {
"from": {
"city": "New York",
"airport": "JFK",
"code": "JFK"
},
"to": {
"city": "London",
"airport": "Heathrow",
"code": "LHR"
},
"dates": {
"departure": "2023-09-01",
"return": "2023-09-08",
"flexibility": "±3 days"
}
},
"prices": {
"lowest": {
"amount": "$450",
"airline": "Airline Name",
"class": "Economy",
"stops": 1
},
"options": [
{
"price": "$450",
"airline": "Airline Name",
"flightDetails": {
"outbound": {
"departure": "10:00 AM",
"arrival": "10:00 PM",
"duration": "12h",
"stops": ["Airport Code"]
},
"return": {
"departure": "11:00 AM",
"arrival": "9:00 PM",
"duration": "10h",
"stops": []
}
},
"fareClass": "Economy",
"amenities": ["Wifi", "Meal"],
"baggageInfo": {
"carry": "1 piece",
"checked": "1 piece"
}
}
]
},
"priceHistory": {
"trend": "Decreasing",
"average": "$500",
"recommended": "Buy now",
"forecast": [
{
"date": "2023-08-20",
"price": "$480"
}
]
},
"type": "flightPrice"
}
Fields:
-
route
(object): Flight route details -
prices
(object): Fare information-
lowest
(object): Best price -
options
(array): Available flights
-
-
priceHistory
(object): Price trends -
type
(string): Always "flightPrice"