{
"results": {
"airports": [
{
"arrival": [
{
"airport": {
"id": "JFK",
"name": "John F. Kennedy International Airport"
},
"city": "New York",
"country": "United States",
"country_code": "US",
"image": "https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQEaUa9NsdPWGpAUGkTApkZDT_4M6_6V8wTcC0v1b1wJAJX-BuMSiipXbsoznGgcI1xLOc5QiTcR_xovexgjdOz0gqQe0tRQ9h0bUkZ07Q",
"latitude": 40.6397222,
"longitude": -73.778889,
"thumbnail": "https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcRa1dwH1NZQk4dsbPiyA9Vrq2RX75jXSZ-OkHn7NkLHl-11HercqDXoZ4p2cDxJkH6vca2degawrCzHEQ"
}
],
"departure": [
{
"airport": {
"id": "FCO",
"name": "Leonardo da Vinci International Airport"
},
"city": "Rome",
"country": "Italy",
"country_code": "IT",
"image": "https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcRM_5snkSVZsnpG8dhW0NGx_Pdwk592nbBjmyqu-UxZDclvuBr6HXfXd0Fm7TYGVQpVCCr4RC6TGTmOgyP6KwpvZr0tGGnpZ7ukzP8RPLA",
"latitude": 41.8002778,
"longitude": 12.2388889,
"thumbnail": "https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcT2IU9ZUmvhvThfVJdnmh0sazh2RYI04-GSv0_GLCW7m3TnPpi1XYRNkIuXyL-bdJRgPn7Akcbg6zmDzw"
}
]
}
],
"best_flights": [
{
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/TP.png",
"booking_token": "CjRIM0tmOEpYczF1S0lBTlRCSWdCRy0tLS0tLS0tLWNlenYxOEFBQUFBR3NFRkcwSkYyNUVBEgtUUDgzM3xUUDIwORoLCIiiAxACGgNFVVI4HHDhygM=",
"carbon_emissions": {
"difference_percent": 30,
"this_flight": 578000,
"typical_for_this_route": 445000
},
"departure_token": "imRI9b",
"flights": [
{
"airline": "Tap Air Portugal",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/TP.png",
"airplane": "Airbus A321neo",
"arrival_airport": {
"id": "LIS",
"name": "Lisbon Airport",
"time": "2026-12-05 14:30"
},
"departure_airport": {
"id": "FCO",
"name": "Leonardo da Vinci International Airport",
"time": "2026-12-05 12:15"
},
"duration": 195,
"extensions": [
"Below average legroom (28 in)",
"Carbon emissions estimate: 133 kg"
],
"flight_number": "TP 833",
"legroom": "28 in",
"travel_class": "Economy"
},
{
"airline": "Tap Air Portugal",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/TP.png",
"airplane": "Airbus A321neo",
"arrival_airport": {
"id": "JFK",
"name": "John F. Kennedy International Airport",
"time": "2026-12-05 20:05"
},
"departure_airport": {
"id": "LIS",
"name": "Lisbon Airport",
"time": "2026-12-05 16:35"
},
"duration": 510,
"extensions": [
"Average legroom (31 in)",
"Wi-Fi for a fee",
"In-seat power & USB outlets",
"On-demand video",
"Carbon emissions estimate: 445 kg"
],
"flight_number": "TP 209",
"legroom": "31 in",
"travel_class": "Economy"
}
],
"layovers": [
{
"duration": 125,
"id": "LIS",
"name": "Lisbon Airport"
}
],
"price": 536,
"total_duration": 830,
"type": "One way"
},
{
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/AZ.png",
"booking_token": "CjRIM0tmOEpYczF1S0lBTlRCSWdCRy0tLS0tLS0tLWNlenYxOEFBQUFBR3NFRkcwSkYyNUVBEgVBWjYwOBoLCO6dBBACGgNFVVI4HHDO0gQ=",
"carbon_emissions": {
"difference_percent": -15,
"this_flight": 379000,
"typical_for_this_route": 445000
},
"departure_token": "NwYz6d",
"flights": [
{
"airline": "ITA",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/AZ.png",
"airplane": "Airbus A330-900neo",
"arrival_airport": {
"id": "JFK",
"name": "John F. Kennedy International Airport",
"time": "2026-12-05 14:15"
},
"departure_airport": {
"id": "FCO",
"name": "Leonardo da Vinci International Airport",
"time": "2026-12-05 10:15"
},
"duration": 600,
"extensions": [
"Average legroom (31 in)",
"Wi-Fi for a fee",
"In-seat USB outlet",
"On-demand video",
"Carbon emissions estimate: 378 kg"
],
"flight_number": "AZ 608",
"legroom": "31 in",
"travel_class": "Economy"
}
],
"price": 694,
"total_duration": 600,
"type": "One way"
},
{
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/AZ.png",
"booking_token": "CjRIM0tmOEpYczF1S0lBTlRCSWdCRy0tLS0tLS0tLWNlenYxOEFBQUFBR3NFRkcwSkYyNUVBEgVBWjYxMBoLCO6dBBACGgNFVVI4HHDO0gQ=",
"carbon_emissions": {
"difference_percent": -15,
"this_flight": 379000,
"typical_for_this_route": 445000
},
"departure_token": "NunNce",
"flights": [
{
"airline": "ITA",
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/AZ.png",
"airplane": "Airbus A330-900neo",
"arrival_airport": {
"id": "JFK",
"name": "John F. Kennedy International Airport",
"time": "2026-12-05 18:55"
},
"departure_airport": {
"id": "FCO",
"name": "Leonardo da Vinci International Airport",
"time": "2026-12-05 14:55"
},
"duration": 600,
"extensions": [
"Average legroom (31 in)",
"Wi-Fi for a fee",
"In-seat USB outlet",
"On-demand video",
"Carbon emissions estimate: 378 kg"
],
"flight_number": "AZ 610",
"legroom": "31 in",
"travel_class": "Economy"
}
],
"price": 694,
"total_duration": 600,
"type": "One way"
},
{
"airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/DL.png",
"booking_token": "CjRIM0tmOEpYczF1S0lBTlRCSWdCRy0tLS0tLS0tLWNlenYxOEFBQUFBR3NFRkcwSkYyNUVBEgVETDIzMRoLCLyBBRACGgNFVVI4HHD1vwU=",
"carbon_emissions": {
"difference_percent": -8
}
}
]
},
"_note": "Response truncated for documentation purposes"
}
curl --location --request POST 'https://zylalabs.com/api/15322/google+flights+search+api/40927/search+google+flights' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"departure_id": "FCO",
"arrival_id": "JFK",
"outbound_date": "2026-12-05",
"type": 2,
"adults": 1,
"currency": "EUR"
}'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Google Flights Search API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
(Save 2 months with annual billing 🎉)
`POST /flights` returns live flight itineraries in JSON, including departure and arrival times, airlines, flight numbers, aircraft details when available, segment durations, layovers, cabin class, emissions, booking tokens, airport metadata, and price insight fields.
A successful response contains `success`, `search_parameters`, and `results`. The `results` object includes `best_flights`, `other_flights`, `price_insights`, and `airports`. Use `best_flights` for top-ranked options and `other_flights` for additional itineraries.
Provide `departure_id`, `arrival_id`, and `outbound_date`. You can also set trip type and return date, passenger counts, cabin class, stop limits, sorting, airline inclusion or exclusion, hidden itineraries, currency, language (`hl`), and country (`gl`).
Pass comma-separated IATA codes in `departure_id`, such as `JFK,LGA,EWR`. The response identifies the airport used by each itinerary and includes matching airport metadata in `results.airports`.
Each segment can include departure and arrival airport IDs with timestamps, airline, flight number, duration, travel class, aircraft, and legroom when available. Multi-segment itineraries also expose layover information and an overall `total_duration`.
An itinerary may include `carbon_emissions` with `this_flight`, `typical_for_this_route`, and `difference_percent`. Emission values are numeric, while the percentage indicates how the itinerary compares with the typical emissions for that route.
`results.airports` can provide IATA IDs, airport names, cities, countries, country codes, latitude, longitude, images, and thumbnails. Separate departure and arrival arrays help applications display localized airport information.
Check `success` before processing results, then treat `best_flights` and `other_flights` as independently optional arrays. An empty array means no itineraries were returned for that category. Also handle missing optional fields such as emissions, aircraft, images, or price history.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund