Skip to content
APIHiver

Google Flights API Key: How to Get One Free in 2026

There is no official Google Flights API key — here is what to get instead, with step-by-step signup instructions for the APIs developers actually use.

5 min readBy Mivaan Sanghani
In this post

Searching for a Google Flights API key is one of those situations where the answer you need is not the one you were expecting. There is no key to request — Google has never offered a public Google Flights API for developers. What you can get is a key for one of the well-maintained third-party APIs that return the same data. This guide shows you exactly where to sign up and what to do with the key once you have it.

Free Google Flights API options compared (October 2026)#

OptionFree allowanceCard needed?Best for
DataCrawler (RapidAPI)150 requests a monthNoQuickest start, 12 endpoints
SerpApi250 searches a monthCheck at signupBrowser-style results
Bright Data5,000 credits a monthNoLarger tests
Apify$5 free usage a monthNoScheduled scraping jobs

Free allowances change often. Check each provider's pricing page before you build on one.

Why there is no official Google Flights API key#

Google ran a public flights API called QPX Express from 2012 to 2018. It let developers query fare availability and pricing directly. Google shut it down in April 2018 and has not released a replacement. Google Flights today is a consumer product — it powers google.com/flights — not a developer platform.

That means there is nothing to find in Google Cloud Console, no waitlist to join, and no enterprise program that unlocks a key. The path forward is a third-party API that wraps the same Google Flights data.

This is the closest thing to a real Google Flights API key in 2026. The API returns the same ranked results, fares, and booking tokens you see on google.com/flights — not a different data source that approximates it.

How to get your key — step by step#

  1. Go to rapidapi.com and create a free account.
  2. Search for DataCrawler Google Flights API or go directly to the listing.
  3. Click Subscribe to Test and choose the BASIC plan (free; RapidAPI may still ask for a payment card on file, see its pricing FAQ).
  4. Open the Endpoints tab and look at the code snippet panel on the right.
  5. Copy the value next to X-RapidAPI-Key — that is your key.

The key is shared across all APIs on RapidAPI. If you have used RapidAPI before, you already have one.

Test it immediately#

curl --request GET \
  --url 'https://google-flights2.p.rapidapi.com/api/v1/searchFlights?departure_id=LHR&arrival_id=JFK&outbound_date=2026-06-01&adults=1&travel_class=ECONOMY&currency=USD' \
  --header 'X-RapidAPI-Host: google-flights2.p.rapidapi.com' \
  --header 'X-RapidAPI-Key: YOUR_RAPIDAPI_KEY'

A successful response looks like:

{
  "status": true,
  "data": {
    "itineraries": {
      "topFlights": [
        {
          "price": 312,
          "stops": 0,
          "airlines": ["British Airways"],
          "departure_time": "2026-06-01T08:30:00",
          "arrival_time": "2026-06-01T11:15:00"
        }
      ]
    }
  }
}

If you see "status": true and a topFlights array, your key is working.

Option 2 — SerpApi#

SerpApi takes a different approach: it runs a real browser session on Google Flights and returns the results as structured JSON. The output is very close to what a human visitor sees, including the visual sort order.

Getting your key:

  1. Sign up at serpapi.com — 250 free searches/month included.
  2. Your API key appears on the dashboard immediately after signup.
  3. Pass it as api_key in every request.
from serpapi import GoogleSearch
 
results = GoogleSearch({
    "engine": "google_flights",
    "departure_id": "LHR",
    "arrival_id": "JFK",
    "outbound_date": "2026-06-01",
    "currency": "USD",
    "api_key": "YOUR_SERPAPI_KEY"
}).get_dict()
 
for flight in results.get("best_flights", [])[:3]:
    print(flight["price"], flight["flights"][0]["airline"])

SerpApi is a good choice if you specifically need the browser-rendered view, including Featured Snippets placement and any personalisation Google applies to the session. The tradeoff is cost — paid plans start higher than RapidAPI.

Wondering about hotels? See our guide to the Google Hotel API.

If you need to actually sell tickets, not just show prices, read our flight booking API comparison.

Option 3 — Amadeus (no longer available to new developers)#

Older guides recommend Amadeus as the free, production-grade choice. That advice is out of date: Amadeus closed its Self-Service developer portal on 17 July 2026, and only Enterprise access through a sales contract remains. If you are starting a new project, use one of the options above. Our hotel API comparison covers what changed.

Free official Google data: the Travel Impact Model API#

Google does offer one free, official travel API: the Travel Impact Model API. It estimates flight emissions, so it will not give you fares or schedules, but it needs only a normal Google API key and pairs well with flight search results.

Which key should you get?#

GoalBest option
Replicate exactly what google.com/flights showsDataCrawler via RapidAPI
Browser-rendered Google Flights viewSerpApi
Bigger free allowance for testingBright Data
Price comparison + cheapest-month featuresDataCrawler (getCalendarPicker)

For most developers starting out in 2026, the DataCrawler Google Flights API on RapidAPI is the right first key to get. The free tier covers prototyping, the signup is instant, and the JSON format is straightforward.

Try APIs on the APIHiver marketplace

Discover free and paid APIs for travel, finance, AI, weather, maps and more. Test each endpoint in your browser and use one key for all of them.

Share this post

Frequently asked questions

Is there a Google Flights API key I can apply for?
No. Google does not issue API keys for Google Flights. Its previous developer product, QPX Express, was retired in April 2018 and was never replaced with a public self-serve API. To get Google Flights data programmatically in 2026, developers use third-party helper APIs such as the DataCrawler Google Flights API on RapidAPI.
Is the Google Flights API free?
There is no official Google Flights API, so there is nothing from Google to be free or paid. The free options are third-party APIs with a monthly allowance: SerpApi (250 searches a month), Bright Data (5,000 credits a month), Apify ($5 of free usage a month) and DataCrawler on RapidAPI (150 requests a month). All of them let you start without paying.
Is there a free API for flight data?
Yes, within limits. For Google Flights results, use one of the free tiers above. For schedules, airports and airline reference data, our Airport and Airline Lookup API on APIHiver is a good free starting point. For live fares you will always hit a monthly cap on a free plan.
How do I get a Google Flights API key through RapidAPI?
Sign up for a free account at rapidapi.com, search for "DataCrawler Google Flights API", and subscribe to the free BASIC plan. Your RapidAPI key — labelled X-RapidAPI-Key — is the credential you use on every request. The whole process takes under two minutes.
Does the Google Flights API have a free tier?
The DataCrawler Google Flights API on RapidAPI includes a free BASIC tier with 150 requests per month. That is enough to build and test a working integration. Paid plans start at $12.99 per month for 40,000 requests.
What is the difference between a RapidAPI key and a Google API key?
A RapidAPI key is issued by RapidAPI and works across every API on its marketplace, including the DataCrawler Google Flights API. A Google API key is issued by Google Cloud for their own products (Maps, Vision, etc.). Google does not issue API keys for Google Flights — you cannot get one through Google Cloud Console.
Can I access Google Flights data for free?
Yes, within limits. The DataCrawler Google Flights API BASIC tier gives you 150 free requests per month, which is enough to prototype an integration. SerpApi also offers 250 free Google Flights searches per month on its free plan.
Data & Analytics

PNR Status API: Check a Flight PNR in Code (2026)

Is there a PNR status API? What a PNR is, why no single API checks any PNR, and how Duffel, Sabre, Travelport and Amadeus retrieve a booking by its code.

11 min read
Data & Analytics

Flight Booking API: 10 Famous Options Compared (2026)

Which flight booking API still works in 2026? We compare Duffel, Amadeus, Sabre, Travelport, Kiwi, Skyscanner and 4 more on access, pricing and what they can really book.

12 min read