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.
Option 1 — DataCrawler Google Flights API (recommended)#
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#
- Go to rapidapi.com and create a free account.
- Search for DataCrawler Google Flights API or go directly to the listing.
- Click Subscribe to Test and choose the BASIC plan (free, no credit card).
- Open the Endpoints tab and look at the code snippet panel on the right.
- 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¤cy=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:
- Sign up at serpapi.com — 100 free searches/month included.
- Your API key appears on the dashboard immediately after signup.
- Pass it as
api_keyin 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:
- Create a free account at developers.amadeus.com.
- Create a new app — you get a
Client IDandClient Secretimmediately. - 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?#
| Goal | Best option |
|---|---|
| Replicate exactly what google.com/flights shows | DataCrawler via RapidAPI |
| Browser-rendered Google Flights view | SerpApi |
| Full booking flow with GDS inventory | Amadeus |
| Price comparison + cheapest-month features | DataCrawler (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.