The Google Flights API for flight prices and schedules

Search one-way or round-trip Google Flights routes and get every option back as JSON, with an airline and price. Send two airport codes and a date to start.

Google Flights API at a glance

This API searches Google Flights for one route and date. Send a POST request with origin, destination and departure_date. Then read each option from the flights array.

Endpoint
POST /v1/data/google/flights
Authentication
API key as Authorization: Bearer wh_…
Stage
Stable
Output
A flights array with airline, flight number, times, duration, stops and price, plus a price trend for the route
Trip types
One way, or round trip when you add return_date
Passengers
1 to 9 adults, 0 to 8 children, and up to 4 infants in a seat and 4 on a lap
Cabin classes
economy, premium_economy, business and first
Credit weight
1. See the pricing page for current rates.

One request, structured JSON.

This request searches economy flights from Chennai to Bengaluru. The response below is a trimmed docs example. Copy the request and change the route and date to search for your own trip.

POST /v1/data/google/flights
curl -X POST "https://api.datablue.dev/v1/data/google/flights" \
  -H "Authorization: Bearer wh_..." \
  -H "Content-Type: application/json" \
  -d '{
    "origin": "MAA",
    "destination": "BLR",
    "departure_date": "2027-02-18",
    "adults": 1,
    "seat": "economy",
    "currency": "INR",
    "country": "IN"
  }'
Response (trimmed, from the API docs example)
{
  "success": true,
  "origin": "MAA",
  "destination": "BLR",
  "departure_date": "2027-02-18",
  "trip_type": "one_way",
  "adults": 1,
  "seat": "economy",
  "total_results": 8,
  "price_trend": "typical",
  "flights": [
    {
      "position": 1,
      "is_best": true,
      "airline": "IndiGo",
      "flight_number": "6E 123",
      "origin": "MAA",
      "destination": "BLR",
      "departure_time": "6:30 AM",
      "arrival_time": "7:35 AM",
      "duration": "1 hr 5 min",
      "duration_minutes": 65,
      "stops": 0,
      "price": "₹4,213",
      "price_value": 4213
    }
  ]
}

What a flight returns.

Each flight arrives as one object under the flights array.

Route summary

The top level repeats your route and trip type, then adds the number of results. Use it to confirm the search you sent.

Price trend

The price_trend field gives a trend label such as typical when one is available for the route. Store it next to each fare you save.

Airline and flight number

Each row names the airline and flight number. Match results to a schedule you already hold.

Times and duration

Each row gives departure and arrival times as Google shows them, plus duration as text and as minutes. Sort on duration_minutes for a numeric order.

Stops

The stops value is a count, where 0 means nonstop. Filter on it or set max_stops in the request.

Price

Each row has a display string and a numeric price_value. Compare fares on the number rather than the string.

Best flag

Each row carries an is_best flag, which marks the options Google highlights as best for the search. Keep the flag if you want Google’s ordering.

Extra detail

Rows carry aircraft and emissions data when Google shows it. Treat every optional field as possibly missing.

Options that shape your search.

Origin, destination and departure_date are the only required fields. Add the others to narrow the search.

Route and date

Set origin and destination to IATA airport codes. Use codes such as JFK or LAX. Write departure_date in YYYY-MM-DD format, as in 2027-02-18.

Round trips

Add return_date in YYYY-MM-DD format to search a round trip. Leave it out for a one way search.

Passengers

Set adults from 1 to 9 and children from 0 to 8, then add infants with infants_in_seat or infants_on_lap. Each infant field accepts 0 to 4.

Cabin class

Set seat to economy or business to choose a cabin. Premium_economy and first also work, with economy as the default.

Stops

Set max_stops to 0 to return nonstop flights only. A higher number allows up to that count of connections.

Currency and locale

Set currency to a code such as USD or EUR. Add country and language to adjust Google’s localisation.

What teams build with it.

Fares shift often, so flight data work repeats.

Fare tracking

Search one route every day and store price_value with the date, then plot the history to see when fares dip.

Price alerts

Compare today’s lowest fare with the last one you stored. Notify your users when it drops below their target.

Travel planning tools

Show nonstop options with times and prices inside your own product, then link users on to book.

Route and market analysis

Run the same dates across a list of routes. Rank routes by typical fare and duration.

Why use an API instead of scraping Flights yourself.

Google Flights is built for people to browse. A hand-built scraper has to load the page like a browser and pull fares out of its structure.

DataBlue runs that work for you, so one request returns every option already parsed into fields. Price and duration also arrive as numbers.

Your route, date and seat come back in the response. That keeps each stored row easy to audit. Keep the whole response when you track fares over time.

Your first flight search in a minute.

Sign up, grab a key and run one request.

  1. Create an account

    Sign up to get your API key.

  2. Send a search

    POST a route and a date to /v1/data/google/flights. Send your API key as a Bearer token. Add return_date when you want a round trip.

  3. Read the flights

    Loop over flights in the response and read each field. Sort by price_value to find the lowest fare.

Google Flights API questions.

Short answers about data and billing before you start.

It turns a Google Flights search into structured JSON. Each option returns as one object in a flights array.

Send a POST request to /v1/data/google/flights with your route and date, using a Bearer token for your API key.

Add return_date and the search becomes a round trip. The response then reports trip_type as round_trip.

Rows carry an airline, a flight number and times. They also carry duration, stops and a price. Aircraft and emissions data appear when Google shows them.

Set max_stops to 0 to get nonstop flights only. Every row then has a stops value of 0.

Set currency to a code such as USD or EUR. Set seat to economy or business for a cabin.

Origin and destination take IATA airport codes. Examples are MAA for Chennai and JFK for New York.

This API is marked stable in our catalogue today. Build against the documented fields, then check the changelog before each upgrade you ship to production.

This API has a credit weight of 1. Check the pricing page for current rates.

Run a Google Flights search in a minute.

Create an account to get your key. Then paste the example request into your terminal.

Start free