# 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 round-trip search returned 15 itineraries across five airports.

Provider in the worked example: Flight search.

Price shown for this route: 5¢ per search.

## 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.

| Option | Price and billing | Strength | Good to know | Access |
| --- | --- | --- | --- | --- |
| Flight search (Through TaskFuel) | $0.05 / search. Per request from your TaskFuel balance. Round 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 API (Own SerpApi account) | From $25 / month. Monthly plan, with a free tier of 250 searches. Starter: $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 API (Own Duffel account) | $3 / confirmed order. Per booking. Searches 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 |

- [Flight search: provider reference](https://taskfuel.ai/pricing/). Checked 2026-11-12.
- [SerpApi Google Flights API: provider reference](https://serpapi.com/pricing). Checked 2026-11-12.
- [Duffel Flights API: provider reference](https://duffel.com/pricing). Checked 2026-11-12.


## What it can do

### 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.

Price: $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.

Price: $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.

Price: $0.05 / search.


## A real example

Tested on 2026-11-12 through Flight search.

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.

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.

Returned in this test:

- 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

Charged in this test: $0.05.

One dated round-trip economy search in USD.




## Try the API request

Use your TaskFuel API key as TASKFUEL_API_KEY in your terminal or server. Keep it out of browser code.

### 1. Check the price

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.

```sh
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](https://taskfuel.ai/docs/) · [Job polling and timeout recovery](https://app.taskfuel.ai/using.md)


## Connect your agent

Read the [setup guide](https://taskfuel.ai/docs/setup/) and choose the connection your agent supports.

Use one TaskFuel account and prepaid balance. Inspect the provider and request quote before a paid call, then review the returned response and recorded charge.



## When to use it

### 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.

### 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.

### 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.




## 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.

## Related tool guides

- [Search Airbnb stays for the same travel dates](https://taskfuel.ai/tools/airbnb-api/)
- [Find fares under a budget](https://taskfuel.ai/tools/flight-price-api/)
- [Search a one-way fare by route and date](https://taskfuel.ai/tools/flight-search-api/)
- [Check an airport departure board](https://taskfuel.ai/tools/flight-data/)
- [Read an airline’s baggage or fare rules page](https://taskfuel.ai/tools/extract-webpage/)
- [Email the fare comparison to a traveler](https://taskfuel.ai/tools/send-email/)
- [Check the forecast at the destination](https://taskfuel.ai/tools/weather-mcp-server/)


## Reference

- [Read this guide on the website](https://taskfuel.ai/tools/google-flights-api/).
- [Browse providers and capabilities](https://taskfuel.ai/catalog/).
- [Pricing](https://taskfuel.ai/pricing/).
- [Agent instructions](https://taskfuel.ai/llms.txt).
