Documentation Python quickstart Blog Free tools Enterprise solutions hello@quanticdata.ioLog in

SERP API · Google Flights

Google Flights API

The itineraries Google Flights shows for a route and a date, returned as JSON: airline, departure and arrival times, duration, stops, price and the CO2 estimate. Google retired its own flights API in 2018; this is the SERP API with search_type: "flights", billed per search.

A Google Flights request with no query, JFK to LAX on 2026-11-29: the first itinerary in the middle with airports, times, duration and stops, and the real flights_results[0] JSON: JetBlue, 6:30 PM, 6 hr 29 min, Nonstop, $707. Rendered page, as the answer's path says: $0.002 per search.
Google Flights as JSON: itineraries for a route and a date, with times, duration, stops and fare.

What you get

One itinerary, one object.

Fields of each itinerary
FieldWhat it holds
rankPosition
airlineCarrier
departure_timeDeparture time
arrival_timeArrival time
durationTotal duration
stops"Nonstop" or the number of stops
priceFare as shown
price_valueFare as a number
currencyCurrency symbol
departure_airportOrigin airport
arrival_airportDestination airport
emissionsCO2 estimate

34 itineraries for New York JFK to Los Angeles in our test on 30 October 2026. Fares follow the date and currency you send, as Google shows them in the country you choose.

Example

One request, one JSON answer.

curl -X POST https://api.quanticdata.io/v1/scraper/serp \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"search_type":"flights","departure_id":"JFK","arrival_id":"LAX","outbound_date":"2026-11-29","currency":"USD","country":"us"}'
cURL: New York JFK to Los Angeles on 29 November
import requests

r = requests.post("https://api.quanticdata.io/v1/scraper/serp",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={"search_type": "flights", "departure_id": "JFK", "arrival_id": "LAX", "outbound_date": "2026-11-29", "currency": "USD", "country": "us"})
for f in r.json()["payload"]["flights_results"]:
    print(f["airline"], f["departure_time"], f["stops"], f["price"])
Python: airline, time, stops and fare
{
  "rank": 1,
  "airline": "JetBlue",
  "departure_time": "6:30 PM",
  "arrival_time": "9:59 PM",
  "duration": "6 hr 29 min",
  "stops": "Nonstop",
  "price": "$707",
  "price_value": 707,
  "currency": "$",
  "departure_airport": "John F. Kennedy International Airport",
  "arrival_airport": "Los Angeles International Airport",
  "emissions": "414 kg CO2e"
}
The first itinerary of the real answer to this request, 30 October 2026 (long URLs shortened).

The answer is the usual envelope: payload.flights_results holds the list above, payload.search_metadata says which tier answered and how long it took.

Parameters

From, to, when.

Request parameters for search_type: flights
ParameterMeaning
departure_id, arrival_idAirport or city codes (JFK, LAX)
outbound_date, return_dateYYYY-MM-DD; return for round trips
currencyFare currency
countryProxy exit and Google locale (gl), ISO code: us, gb, de, it…
langInterface language (hl): en, de, it…
devicedesktop (default), mobile, ios or android

Every parameter, for every vertical, is in the API reference.

Price

Per search, nothing monthly.

A successful search costs $0.0009 when Google's plain page answers and $0.002 when the rendered page is needed; search_metadata.path in the answer says which one you got. In our test on 30 October 2026 the call answered from the rendered page in 5.72 seconds.

Failed searches are not charged. There is no subscription: a $2 free credit every month covers the first calls, then you top up your balance by card, PayPal or crypto.

If you would rather pay per itinerary than per search, the Google Flights collector returns the same data at $0.003 per delivered itinerary (up to 30 per run), with no pagination to handle.

Every price per search and per vertical: SERP API pricing.

Official API or this one

Google retired its flights API in 2018.

Google shut down QPX Express, its flight search API, in April 2018; there has been no public Google Flights API since.

This endpoint returns what Google Flights shows for the route and date, as JSON, billed per successful search.

Use cases

What teams build with it.

Fare tracking: a route's cheapest options every day, with alerts on drops.

Travel tools and agents: options for a trip as data, with times and emissions.

Market research: carriers and price levels by route.

Before you call it

Questions developers ask

Is there an official Google Flights API?

Not since 2018, when Google retired QPX Express. This endpoint returns the Google Flights results as JSON.

Can I search round trips?

Yes, add return_date.

Are the fares bookable?

They are the fares Google Flights shows at the time of the call; book through the airline or agency.

How fast is a call?

Flights needs the rendered page; our test on 30 October 2026 took about 6 seconds.

What does it cost?

$0.002 per search when the rendered page is needed, which is the case for flights; the flights collector bills per itinerary instead.

Start with the free credit.

Create an API key, run the example above and read the JSON. Pay per search after the $2 monthly credit, no subscription.