Google Flights Search API

API ID 15322

Google Flights API is a containerized microservice providing a high-performance REST API to extract live Google Flights itineraries, airline fares, layovers, durations, carbon emissions, and price

API Documentation

Endpoints

Request
GOOGLE FLIGHTS SEARCH API - SERVICE OVERVIEW WHAT IS GOOGLE FLIGHTS SEARCH API Google Flights Search API is a high-performance REST microservice that queries Google Flights in real time for itineraries, fares, durations, layovers, airlines, carbon emissions, and price history trends. It returns clean, production-ready JSON without browser rendering latency. KEY FEATURES - Real-Time Flights: Direct/connecting flights with departure/arrival schedules, airlines, flight numbers, aircraft, and legroom. - Carbon Emissions: Environmental footprint tracking with route benchmark comparison and difference percentages. - Price Insights: Aggregated market analysis with lowest price, typical price ranges, price level, and historical fare trends. - Flexible Filtering: One-way/round-trip, multi-airport IATA codes, cabin classes, max stops, and airline filters. - Global Currency: Live pricing in requested currencies (USD, EUR, GBP, JPY, TRY, etc.) with localized airports. - Clean Output: Standardized root payload with three clear objects: success, search_parameters, and results. API ENDPOINTS - POST /flights : Primary flight search endpoint accepting a JSON payload. INPUT PARAMETERS (POST /flights) Required: - departure_id (string): Origin airport IATA code (e.g., JFK) or comma-separated list (e.g., JFK,LGA,EWR). - arrival_id (string): Destination airport IATA code (e.g., LAX). - outbound_date (string): Departure date in YYYY-MM-DD format (today or future date). Trip Type: - type (integer, optional, default: 2): 1 = round trip (requires return_date), 2 = one way. Auto-inferred. - return_date (string, optional): Return flight date in YYYY-MM-DD format (required when type=1). Passengers: - adults (integer, default: 1): Adults count (1-9). - children (integer, default: 0): Children count (0-9). - infants_in_seat (integer, default: 0): Infants occupying a seat (0-4). - infants_on_lap (integer, default: 0): Infants on lap (0-4). Cabin & Filters: - travel_class (integer, default: 1): 1 = Economy, 2 = Premium Economy, 3 = Business, 4 = First. - stops (integer, default: 0): 0 = Any, 1 = Nonstop only, 2 = Max 1 stop, 3 = Max 2 stops. - sort_by (integer, default: 1): 1 = Top flights, 2 = Price, 3 = Departure, 4 = Arrival, 5 = Duration, 6 = Emissions. - include_airlines (string): Comma-separated airline IATA codes to include (e.g., DL,B6). - exclude_airlines (string): Comma-separated airline IATA codes to exclude. - show_hidden (boolean, default: false): Include hidden itineraries. Localization: - currency (string, default: USD): 3-letter currency code (e.g., EUR, GBP, USD). - hl (string, default: en): ISO 639-1 language code. - gl (string, default: us): ISO 3166-1 alpha-2 country code. OUTPUT STRUCTURE The response returns exactly three top-level keys: - success (boolean): true on successful execution. - search_parameters (object): Echo of all applied search parameters. - results (object): Flight search findings: - best_flights (array): Top-ranked itineraries with segments, layovers, price, emissions, and booking tokens. - other_flights (array): Additional available itineraries. - price_insights (object): Lowest fare, typical price range, price level, and price history timestamps. - airports (array): Metadata for departure and arrival airports (IATA, name, city, coordinates). SAMPLE JSON REQUEST (POST /flights) { "departure_id": "JFK", "arrival_id": "LAX", "outbound_date": "2026-12-15", "type": 2, "adults": 1, "currency": "USD" } SAMPLE JSON RESPONSE (200 OK) { "success": true, "search_parameters": { "departure_id": "JFK", "arrival_id": "LAX", "outbound_date": "2026-12-15", "type": 2, "adults": 1, "currency": "USD" }, "results": { "airports": [ { "departure": [{"airport": {"id": "JFK", "name": "John F. Kennedy Intl Airport"}, "city": "New York"}], "arrival": [{"airport": {"id": "LAX", "name": "Los Angeles Intl Airport"}, "city": "Los Angeles"}] } ], "best_flights": [ { "flights": [ { "departure_airport": {"id": "JFK", "time": "2026-12-15 08:29"}, "arrival_airport": {"id": "LAX", "time": "2026-12-15 11:25"}, "airline": "JetBlue", "flight_number": "B6 323", "duration": 356, "travel_class": "Economy" } ], "total_duration": 356, "price": 149, "carbon_emissions": {"this_flight": 405000, "typical_for_this_route": 316000, "difference_percent": 28}, "booking_token": "CjRIVVBMZHNBZEpBRDhBQmN1QndCRy0..." } ], "other_flights": [], "price_insights": { "lowest_price": 149, "price_level": "typical", "typical_price_range": [90, 205] } } }
Endpoint ID: 40927
POST https://zylalabs.com/api/15322/google+flights+search+api/40927/search+google+flights
INPUT PARAMETERS

Search Google Flights — Endpoint Features

Object Description
Request Body Required Json

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

API EXAMPLE RESPONSE
JSON
{
    "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"
}
Search Google Flights — CODE SNIPPETS

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"
}'

    

API Access Key & Authentication

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.

Headers
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 🎉)

Starts at
$10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Overview

**Google Flights API** is a containerized microservice providing a high-performance REST API to extract live Google Flights itineraries, airline fares, layovers, durations, carbon emissions, and price history insights. ### Capabilities - **Real-Time Itineraries**: Direct and connecting flights, departure/arrival schedules, airlines, and aircraft info. - **Price Insights & Historical Graphs**: Typical price ranges, current price level (low/typical/high), and historical trends. - **Flexible Filtering**: Round-trip, one-way, multi-origin IATA codes, cabin classes, max stops, and airline inclusion/exclusion. - **Global Currency & Languages**: Multi-currency fare pricing (USD, EUR, GBP, etc.) and localized airport names. ### Access Exposed through the Nginx reverse proxy under `/google-flights-api` or directly on port `5009`.

Google Flights Search API FAQs

`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.

General FAQs

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.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

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.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

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.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs