How to get a Google Flights API Key in 2026
Google shut down QPX Express, its public flight-search API, in April 2018 and offers no public flights API today. Every "Google Flights API key" you can get in 2026 comes from a third-party service that extracts data from the public Google Flights website. This guide walks you through getting a key for the Google Flights Live API on RapidAPI, the extraction API that returns Google's own price context with every fare.
The process takes under 2 minutes. You'll have a working API key, a free tier to test with, and paste-ready code examples.
What you're actually getting
When you "get a Google Flights API key" today, you're subscribing to a hosted service that:
- Runs live searches against Google Flights on your behalf
- Returns structured JSON instead of HTML
- Includes fields the official API never had: Google's historical price band and a low | typical | high verdict on every fare
- Reports search status explicitly (
X-Search-Statusheader) so you know the difference between "no flights found" and "the search failed"
This is not a workaround — it's the only way to get Google Flights data programmatically. Google's remaining Travel Partner API is for airlines and OTAs under contract, not for developers.
Step 1: Sign up for RapidAPI (30 seconds)
If you don't have a RapidAPI account:
- Go to rapidapi.com
- Click Sign Up (top right)
- Sign up with email, Google, or GitHub
- Confirm your email if required
RapidAPI is a marketplace for APIs. Your account works across every API they host, and the free tier of this API requires no credit card.
Step 2: Subscribe to Google Flights Live API (60 seconds)
- Navigate to the Google Flights Live API listing
- Click the Pricing tab to see the four plans:
- BASIC: $0/month, 10 requests/month (hard cap, no card required)
- PRO: $10/month, 2,500 requests/month
- ULTRA: $25/month, 10,000 requests/month
- MEGA: $50/month, 50,000 requests/month
- Click Subscribe on the plan you want (start with BASIC to verify integration)
- Complete the subscription flow
You're subscribed immediately. No approval wait, no sales call.
Step 3: Get your API key (10 seconds)
After subscribing:
- Stay on the API listing page or click Endpoints tab
- Your X-RapidAPI-Key appears in the code examples on the right
- Copy it — this is your API key
The same RapidAPI key works for every API you subscribe to on the platform. If you later subscribe to the Booking.com API (hotels), you use the same key.
Step 4: Make your first request
Test your key with a one-way search from JFK to LAX:
curl -X POST https://google-flights-live-api.p.rapidapi.com/api/google_flights/oneway/v1 \
-H "Content-Type: application/json" \
-H "x-rapidapi-host: google-flights-live-api.p.rapidapi.com" \
-H "x-rapidapi-key: YOUR_RAPIDAPI_KEY" \
-d '{
"from_airport": "JFK",
"to_airport": "LAX",
"departure_date": "2026-10-15"
}'
Replace YOUR_RAPIDAPI_KEY with your actual key. Success looks like a JSON array of flight itineraries, each with:
{
"price": "$128",
"price_as_number": 128,
"airline": "Delta",
"stops": 0,
"duration_minutes": 360,
"price_range_in_relation_to_other_periods": "low",
"price_insights_low": 115,
"price_insights_high": 220,
"buy_link": "https://www.google.com/travel/flights?tfs=..."
}
That price_range_in_relation_to_other_periods field is Google's own verdict. Every result includes it when Google publishes a price band for that route.
What the API returns that others don't
Three fields set this API apart from competitors:
price_range_in_relation_to_other_periods:"low","typical", or"high"— Google's judgment of the current fare against historical dataprice_insights_low/price_insights_high: The dollar band Google uses to compute the verdictX-Search-Statusresponse header:ok,empty,partial, ordegraded— so an empty result array is not ambiguous
These fields turn a raw price feed into actionable "is this a good deal?" logic on day one, without building your own price history database.
Next steps
Build something:
- Create a 24/7 AI travel agent with Claude or ChatGPT
- Set up a fare alert in n8n
- Connect to MCP for Claude Desktop, Cursor, or ChatGPT
Read the docs:
Compare alternatives:
FAQs
Is there an official Google Flights API key?
No. Google shut down QPX Express in 2018 and has offered no public flights API since. Every Google Flights API key today comes from a third-party extraction service.
How much does it cost?
The free BASIC tier is 10 requests/month with no credit card required — enough to verify your integration works. The PRO tier ($10/month, 2,500 requests) is the realistic floor for a production fare alert or agent.
Can I book flights through the API?
No. This is a data API, not a booking API. Every result includes a buy_link that opens that exact itinerary on Google Flights ready to book.
What's the difference between this and Duffel or Amadeus?
Duffel and Amadeus sell GDS/airline inventory and can issue tickets. This API extracts data from the public Google Flights site, so you get the prices travelers actually see when they search, but you cannot book through the API. Full comparison: FlightPowers vs Duffel, vs Amadeus.
How fast are responses?
This is a live scan of Google Flights, not a cache read. Simple routes return in 1-2 seconds; complex routes (many stops, long date ranges) can take up to 90 seconds. The API retries failed searches and escalates to a second data source automatically.
Does the free tier expire?
No. The BASIC plan resets monthly and stays free indefinitely. 10 requests/month is verification-sized, not production-sized, and that's stated plainly on /pricing.
Get your key and test it in 2 minutes
BASIC plan is free and requires no credit card. Verify the integration, read the price band and verdict, then scale to PRO when ready.
Free tier: 10 requests/month. No card to try.