ScavioScavio
Pricing
Tools
Sign InsGet Startedg
Blog
Google6 min readNov 29, 2026

How to Get Google Flights Prices Through an API: Fares, Cheapest Dates and Price Insights

Use Scavio's Google Flights API: a POST with a route and date returns each itinerary with price, legs and Google's price level. Loop dates for the cheapest day.

Scavio Team

Nov 29, 2026

Try the Google Flights API free
scavio
Travel / Price monitoring
Google

To get Google Flights prices programmatically, use Scavio's Google Flights API. POST /api/v2/google/flights with a departure airport, an arrival airport and a date returns the itineraries Google Flights shows, each with price, airline, flight numbers, legs, layovers and duration, plus price_insights with the lowest fare, Google's price level and its typical price range. Add a return date for a round trip, a cabin, a stop limit or several origin airports. Every call is 1 credit, about $0.001 on the Growth plan.

Google retired its own flight-search API, QPX Express, in 2018, so there is no first-party endpoint to call. The steps below use responses we captured on November 29, 2026.

Step 1: Price a route on one date

Bash
curl -s https://api.scavio.dev/api/v2/google/flights \
  -H "Authorization: Bearer $SCAVIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"departure_id": "JFK", "arrival_id": "LAX", "outbound_date": "2027-01-12", "type": 2}'

type is 1 for a round trip (the default, which needs return_date), 2 for one way and 3 for multi-city. This call returned 27 itineraries, 3 in best_flights and 24 in other_flights. The response is flat, with no data wrapper. The first best flight, as captured (booking token trimmed):

JSON
{
  "flights": [
    {
      "departure_airport": {
        "name": "John F. Kennedy International Airport",
        "id": "JFK",
        "time": "2027-01-12 13:59"
      },
      "arrival_airport": {
        "name": "Los Angeles International Airport",
        "id": "LAX",
        "time": "2027-01-12 17:21"
      },
      "duration": 382,
      "airplane": "Airbus A320",
      "airline": "JetBlue",
      "airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/B6.png",
      "travel_class": "Economy",
      "flight_number": "B6 723",
      "legroom": "33 in",
      "extensions": [
        "Above average legroom (33 in)",
        "Free Wi-Fi",
        "In-seat power & USB outlets",
        "Live TV",
        "Carbon emissions estimate: 436 kg"
      ]
    }
  ],
  "total_duration": 382,
  "carbon_emissions": {
    "this_flight": 437000,
    "typical_for_this_route": 326000,
    "difference_percent": 34
  },
  "price": 179,
  "type": "One way",
  "airline_logo": "https://www.gstatic.com/flights/airline_logos/70px/B6.png",
  "departure_token": "gfDJff",
  "booking_token": "CjRIWUFvUzl1ZkYtT1lBSkFQ..."
}

flights[] has one entry per leg, durations are in minutes, and times are local to each airport. Connecting itineraries add a layovers[] array with each stop's airport and minutes on the ground. search_parameters echoes what was priced, including the defaults ("adults": 1, "currency": "USD", "gl": "us", "hl": "en"), so store it with every fare.

Step 2: Read Google's price insights

The same response carries Google's verdict on the fare:

JSON
"price_insights": {
  "lowest_price": 179,
  "price_level": "high",
  "typical_price_range": [70, 215]
}

lowest_price is the lowest itinerary price in the response. price_level is Google's label, and it is relative to typical_price_range, which changes with the date: for December departures on this route the range was $160 to $345, so $253 read "typical", while January's range of $70 to $215 made $179 read "high". On 14 of 62 dates around Christmas and New Year, price_level was missing altogether. Treat it as optional, and keep the range next to it.

Step 3: Narrow by cabin, stops and sort order

Bash
curl -s https://api.scavio.dev/api/v2/google/flights \
  -H "Authorization: Bearer $SCAVIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"departure_id": "JFK", "arrival_id": "LAX", "outbound_date": "2027-01-12", "type": 2, "travel_class": 3, "stops": 1, "sort_by": 2}'

travel_class 3 is business, stops 1 is nonstop only and sort_by 2 sorts by price. This returned 27 nonstop business itineraries on American, Delta and JetBlue, from $905 (JetBlue B6 2715 and B6 1723) to $4,449, with price_insights of {"lowest_price": 905, "price_level": "typical", "typical_price_range": [730, 1100]}. With price sorting, every result arrived in other_flights and best_flights was empty, so read both arrays. include_airlines and exclude_airlines take comma-separated airline codes.

Step 4: Search several airports at once

Bash
curl -s https://api.scavio.dev/api/v2/google/flights \
  -H "Authorization: Bearer $SCAVIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"departure_id": "JFK,EWR,LGA", "arrival_id": "LAX", "outbound_date": "2027-01-12", "type": 2}'

All three New York airports returned 37 itineraries: 27 from JFK, 9 from Newark and 1 from LaGuardia, with United and Frontier appearing alongside American, Delta, JetBlue and Alaska. The lowest fare fell from $179 (JFK only) to $145, a Frontier connection from Newark through Atlanta taking 957 minutes, and Alaska's AS 287 from Newark was a $174 nonstop. Check flights[0].departure_airport.id to see which airport each itinerary leaves from.

Step 5: Price a round trip

Bash
curl -s https://api.scavio.dev/api/v2/google/flights \
  -H "Authorization: Bearer $SCAVIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"departure_id": "JFK", "arrival_id": "LAX", "outbound_date": "2027-01-12", "return_date": "2027-01-19", "type": 1}'

A round trip returns the outbound flights, each priced as the whole round trip: 28 options with "type": "Round trip", most at $357 and the lowest at $352, against a typical range of $140 to $360. The return flights themselves are not listed; departure_token comes back in the response, but the endpoint does not take it as input. If you need the exact return flight, price the return leg as its own one-way search.

Step 6: Find the cheapest dates

There is no calendar endpoint, so loop over dates and keep price_insights.lowest_price from each response:

Python
import datetime, requests

API_KEY = "sk_live_your_key"  # load from your secret store in real code
day, last = datetime.date(2026, 12, 1), datetime.date(2027, 1, 31)
fares = {}
while day <= last:
    r = requests.post(
        "https://api.scavio.dev/api/v2/google/flights",
        headers={"Authorization": f"Bearer {API_KEY}"},
        json={"departure_id": "JFK", "arrival_id": "LAX",
              "outbound_date": day.isoformat(), "type": 2},
        timeout=150,
    )
    if r.ok:
        fares[day.isoformat()] = r.json()["price_insights"]["lowest_price"]
    day += datetime.timedelta(days=1)

print(min(fares.items(), key=lambda kv: kv[1]))

We ran this on November 29, 2026: 62 dates, 62 credits, a median of 1.8 seconds per call. The lowest fare was $174 on January 16, 23 and 30 and $459 on December 28; the full chart is in the best Google Flights APIs. A few calls returned a 503 after 90 seconds and succeeded on retry, so retry 502, 503 and 429 responses after a short wait rather than dropping the date.

The endpoint and its parameters

EndpointWhat it returnsCredits
/api/v2/google/flightsItineraries in best_flights and other_flights with legs, layovers, duration, emissions and price; price_insights; airport details1
ParameterValues
departure_id, arrival_idIATA codes; comma-separate several airports
outbound_date, return_dateYYYY-MM-DD; return_date required when type is 1
type1 round trip (default), 2 one way, 3 multi-city
travel_class1 economy, 2 premium economy, 3 business, 4 first
stops0 any, 1 nonstop, 2 one stop or fewer, 3 two stops or fewer
sort_by1 top, 2 price, 3 departure, 4 arrival, 5 duration, 6 emissions
adults, children, infants_in_seat, infants_on_lapPassenger counts
include_airlines, exclude_airlinesComma-separated airline codes
currency, gl, hlCurrency, country and language; London to New York with "currency": "GBP", "gl": "uk" came back in pounds

For a side-by-side of every option, including APIs with a fare calendar, see the best Google Flights APIs for flight prices.

Getting started

  1. Sign up at dashboard.scavio.dev/sign-up: 50 free credits, no card required.
  2. Copy your API key from the dashboard.
  3. Send a POST to /api/v2/google/flights with a route and a date.

Try the Google Flights API free in the playground first, or call it from Claude and other agents through the MCP server.

Reference: Google Flights API overview · flight search docs · Google Hotels API · is there a free, unlimited flight price API?

Frequently asked questions

Is there an official Google Flights API?

No. Google shut down QPX Express, its flight-search API, on April 10, 2018, and Google Flights has no public developer endpoint. Scavio's Google Flights API returns the itineraries Google Flights shows for a route and date as JSON, with one API key and no airline or GDS agreement.

How do I get Google Flights prices in Python?

Send a POST to https://api.scavio.dev/api/v2/google/flights with departure_id, arrival_id and outbound_date in the JSON body and your key in the Authorization header, using requests or the scavio package (pip install scavio). Read best_flights and other_flights for itineraries and price_insights for the lowest price and Google's price level.

How do I find the cheapest day to fly?

Call the endpoint once per departure date and keep each response's price_insights.lowest_price. On November 29, 2026, 62 calls priced JFK to LAX for every date from December 1 to January 31: $459 on December 28 and $174 on three January Saturdays.

How much does a Google Flights API call cost on Scavio?

1 credit per call, whatever the route, cabin or trip type: about $0.001 on the Growth plan. New accounts get 50 free credits with no card, enough to price one route on 50 dates.

Google Flights fares as JSON

  • Any route, date, cabin and passenger count
  • Lowest price, price level and typical range
  • 1 credit a call, no airline or GDS contract
Try the Google Flights API free

50 free credits, no credit card

On this page

  1. Step 1: Price a route on one date
  2. Step 2: Read Google's price insights
  3. Step 3: Narrow by cabin, stops and sort order
  4. Step 4: Search several airports at once

Related articles

View all
  • scavio
    Travel / Price monitoring
    Google flights
    Is There a Free, Unlimited API for Flight Prices? Not in 2026, but Google Flights Fares Are One Call Away
  • scavio
    Comparison / Travel
    Google
    5 Best Google Flights APIs for Flight Prices in 2026: Scavio Priced JFK to LAX on 62 Dates, and the Lowest Fare Ran $174 to $459
ScavioScavio

One scraper API for every social, search, e-commerce and real estate platform. Built for AI agents.

Product

  • Features
  • Pricing
  • Dashboard
  • Affiliates

Developers

  • Documentation
  • API Reference
  • Quickstart
  • MCP Integration
  • Python SDK

Alternatives

  • Tavily Alternative
  • SerpAPI Alternative
  • Firecrawl Alternative
  • Exa Alternative
  • Serper Alternative
  • Tavily vs Scavio
  • SerpAPI vs Scavio
  • All alternatives
  • Compare Scavio vs alternatives

Search APIs

  • Google Search API
  • Amazon Product API
  • YouTube API
  • Reddit API
  • Walmart Product API
  • TikTok API
  • Instagram API

Tools

  • All Tools

Ask AI about Scavio

© 2026 Scavio. All rights reserved.

Featured on TAAFT
Terms of ServicePrivacy Policy