Skip to content
APIHiver

Google Flights API Key: How to Get One 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.

4 min readBy APIHiver

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.

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, no credit card).
  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 — 100 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.

Option 3 — Amadeus (airline GDS data, not Google Flights)#

If your goal is general flight search rather than specifically Google Flights results, Amadeus is the production-grade choice. It sources data from the GDS (Global Distribution System) rather than google.com/flights, so rankings and prices differ slightly — but it is the most complete flight data API for building full booking flows.

Getting your key:

  1. Create a free account at developers.amadeus.com.
  2. Create a new app — you get a Client ID and Client Secret immediately.
  3. Exchange them for a token:
curl -X POST \
  "https://test.api.amadeus.com/v1/security/oauth2/token" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET"

The test environment is free with 2,000 calls/month. Production access requires an application, but approval is usually straightforward.

Which key should you get?#

GoalBest option
Replicate exactly what google.com/flights showsDataCrawler via RapidAPI
Browser-rendered Google Flights viewSerpApi
Full booking flow with GDS inventoryAmadeus
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.

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.
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 100 free Google Flights searches per month on its free plan.