5¢ per search

Google Flights API

Compare fares across airports in one search.

Your agent can search live fares from several airports at once and read itineraries, prices and a typical price range.

One TaskFuel account and prepaid balance. Connect your agent and it shows the price before it pays.

Works with

Choose how your agent reads flight fares.

Fares come from a search provider or a booking API.

Prices and access checked on 12 November 2026.
OptionPrice & billingChoose it forGood to knowAccess
Flight searchThrough TaskFuel$0.05 / searchPer request from your TaskFuel balanceRound trip across three departure and two arrival airports.Several airlines and airports in one response, with price context.Fare search only. Booking is not included.TaskFuel
SerpApi Google Flights APIOwn SerpApi accountProvider referenceFrom $25 / monthMonthly plan, with a free tier of 250 searchesStarter: $25 for 1,000 searches. Developer: $75 for 5,000.Google Flights results as JSON, with round trip, one way and multi-city searches.Monthly plans only, with an API key to manage.Direct
Duffel Flights APIOwn Duffel accountProvider reference$3 / confirmed orderPer bookingSearches are included up to 1,500 per order, then $0.005 each.Search and booking through airline connections in one API.Priced around bookings, with searches included in proportion to orders.Direct

Google Flights API: what your agent gets.

One round-trip search returned 15 itineraries across five airports.

  • Search several airports at once

    Each side of the route takes up to five airport codes. Our test used three departure airports and two arrival airports in one call.

    $0.05 / search
  • Read the price context

    The same response includes a typical price range, a price level for the dates and recent price history when the provider has them.

    $0.05 / search
  • Compare recommended and other options

    The response separates four recommended itineraries from eleven others, each with airline, stops, layovers and local times.

    $0.05 / search

Bay Area to Tokyo fares, tested.

One search covered three Bay Area and two Tokyo airports and returned 15 itineraries. The cheapest was $2,930 with two stops. The cheapest nonstop was $4,032.

TaskFuel test run ·

Charged $0.05

Your agent asked

Find round-trip economy flights from the Bay Area to Tokyo for 18 December to 3 January. Compare the cheapest option with the cheapest nonstop, and say whether the price is high for these dates.
Data from
Flight search

What came back

Cheapest returned
United via Honolulu and Guam · SFO to HND · $2,930 · 22 h 21 min outbound
Cheapest nonstop
United UA 837 · SFO to NRT · $4,032 · 11 h 20 min
Local times
UA 837: SFO 18 Dec 10:45 → NRT 19 Dec 15:05
From San Jose
Delta via Seattle · SJC to HND · $3,391 · 14 h 15 min outbound
Provider price context
Typical range $830–$2,500; returned price level: high

One dated round-trip economy search in USD.

Try the API request Quote first, then run

1. Check the price

Use your TaskFuel API key as TASKFUEL_API_KEY in your terminal or server. Keep it out of browser code. This request checks the price without paying.

This is the exact search from the test. Fares change, so a new search can return different prices.

curl --fail-with-body https://app.taskfuel.ai/v1/call \
  -H "Authorization: Bearer $TASKFUEL_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary @- <<'TASKFUEL_REQUEST'
{
  "url": "https://flights.use.x402atlas.com/search/SFO,OAK,SJC/HND,NRT?outbound_date=2026-12-18&return_date=2027-01-03&currency=USD",
  "method": "GET",
  "dryRun": true
}
TASKFUEL_REQUEST

2. Run the request

Review amount_usd in the quote. To pay and run, change dryRun to false and add maxAmountUsd with that approved amount inside the same JSON object. Keep the inputs unchanged; this limit applies to one call.

3. Read the result

Read best_flights and other_flights: each itinerary has flights[], price, total_duration and layovers. price_insights holds the typical price range and price level for the dates.

Setup and API reference · Job polling and timeout recovery

Try it in your next task.

Sign in to TaskFuel and copy the connection prompt into your agent. Approve the connection, then ask for the work you need.

01

Name the task

Tell your agent what the output needs to contain.

02

See the price

Your agent shows the provider and price before spending.

03

Review the response

Check the output against your task. The call reports its cost and remaining balance.

When to use it.

Planning a trip

Search every airport you would fly from.

Ask your agent to compare the three Bay Area airports and both Tokyo airports in one search. Each itinerary shows the airline, stops and local times.

Timing a purchase

See whether the price is high for your dates.

The response carries a typical price range and a price level next to the itineraries. Our holiday search came back marked high, with the lowest fare above the typical range.

Trading time for money

Put the cheapest and the fastest side by side.

In our test the cheapest fare took 22 hours 21 minutes with two stops. The cheapest nonstop took 11 hours 20 minutes and cost $1,102 more.

Good Questions.

Does Google have a Flights API?

No. Google ended its QPX Express fare-search API in 2018 and has no public Flights API today. TaskFuel offers tools that let you search live fares across airlines and airports instead.

Does this return Google Flights data?

Not stated. The provider describes the results as similar to Google Flights, and the response names no source.

Do I need a Google or flight data account?

No. Your agent pays from your TaskFuel balance, so there is nothing else to sign up for.

What does a search cost?

Our Bay Area to Tokyo search cost $0.05 on 12 November 2026. Your agent shows the price for your own request before it pays.

Can one search cover several airports?

Yes. Each side takes up to five comma-separated airport codes.

Are the prices one way or round trip?

Our test was a round trip, and each price covers the round trip with the outbound flights shown. Return flights come from a second search with the chosen itinerary’s departure token, which is a second paid call.

Can it book a flight?

No. This guide searches fares and schedules. Booking and ticketing are separate and not included here.

How is this different from the flight search API guide?

These guides use the same $0.05 flight search. The flight search API guide tests a one-way JFK to London search. This guide tests a round trip across several airports and reads the price context.

Your agent can do things it couldn’t this morning.

$1 in free credit, no card required.

Start for Free