morigraph Start free

Data APIs ยท Google Flights

Google Flights data APIs for AI agents

morigraph has 2 Google Flights data APIs that Claude, ChatGPT, Cursor, Codex or your own code can call, including search and price calendar. You need no Google Flights developer account or API key, only one morigraph connection. A call costs 0.017 credits, about $1.70 for 1,000 calls, paid from one balance.

APIs
2
Price
0.017 credits a call
Call it from
MCP, command line and HTTP API
Needs
One morigraph connection. No Google Flights account or API key

Three ways to call it

Every data API is run by one tool, data_api, with the API's id and its arguments. The example is Google Flights Search.

In your assistant (MCP). Connect once, then ask in plain words

claude mcp add --transport http --scope user morigraph https://morigraph.com/mcp

Use morigraph's Google Flights Search data API with {"departureDate":"2026-12-27","destination":"LHR","origin":"JFK"} and summarise what comes back.

From a terminal or script (CLI)

npx @morigraph/cli@latest login
morigraph call data_api --json-args '{"api":"google_flights.search","input":{"departureDate":"2026-12-27","destination":"LHR","origin":"JFK"}}'

From your own code (HTTP API)

curl https://api.morigraph.com/v1/tools/data_api \
  -H "Authorization: Bearer $MORIGRAPH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api":"google_flights.search","input":{"departureDate":"2026-12-27","destination":"LHR","origin":"JFK"}}'

2 Google Flights data APIs

APIIdPrice
Google Flights Searchgoogle_flights.search0.017 credits a call
Google Flights Price Calendargoogle_flights.calendar0.017 credits a call

Google Flights Price Calendar

google_flights.calendar0.017 credits a call (about $1.70 for 1,000)

Get the Google Flights price calendar for a route: the lowest fare for every departure date across a window of up to 120 days, one way or as a round trip of a fixed length, with the return date of each round trip, a flag on every date within 5% of the cheapest, and the cheapest date of the window, as normalized JSON. Choose cabin class, adults and currency. Prices are the total for all passengers;

ArgumentTypeRequiredWhat it is
adultsintegernoNumber of adult passengers (1-9, default 1). Prices are for all passengers together. Child passengers cannot be priced on the calendar.
cabinClasseconomy | premium_economy | business | firstnoCabin class (default economy).
currencystringnoISO 4217 currency code for prices (e.g. USD, EUR, GBP; default USD).
departureDateFromstringyesFirst departure date of the calendar in YYYY-MM-DD format (e.g. 2027-01-12). Today or later.
departureDateTostringyesLast departure date of the calendar in YYYY-MM-DD format (e.g. 2027-02-10). At most 120 days after departureDateFrom.
destinationstringyesArrival airport as a three-letter IATA code in capitals (e.g. LHR), or a Google place ID for a city to cover all of its airports (e.g. /m/04jpl for London).
originstringyesDeparture airport as a three-letter IATA code in capitals (e.g. JFK), or a Google place ID for a city to cover all of its airports (e.g. /m/02_286 for New York).
tripLengthDaysintegernoFor a round trip, the number of days between departure and return (1-30, e.g. 7): each date is then priced as a round trip returning that many days later. Omit it for one way.

Returns adults cabinClass cheapestDepartureDate cheapestPrice currency dates departureDate departureDateFrom departureDateTo destination isLowPrice origin price returnDate tripLengthDays tripType

The call

data_api({"api":"google_flights.calendar","input":{"departureDateFrom":"2026-12-27","departureDateTo":"2027-01-25","destination":"LHR","origin":"JFK"}})

Good to know

When to choose something else

Choose a provider that specialises in Google Flights data when you need it at high volume, on a schedule, or as bulk exports: you will get volume pricing and more control. Choose the platform's official API when you need data from your own account. These APIs are for an agent that needs an answer now, alongside other tools on the same balance.

Questions

Do I need a Google Flights API key or developer account?

No. morigraph supplies the access. You connect morigraph once to your assistant, or use one morigraph API key from your own code, and call any of the 2 APIs on this page.

What does Google Flights data cost through morigraph?

0.017 credits a call, where a credit is about 10 cents. That is from about $1.70 for 1,000 calls. You pay per call from one balance, with no separate subscription.

Can Claude, ChatGPT or Cursor get Google Flights data?

Yes. Add morigraph as an MCP server, sign in once, then ask in plain words. Your assistant finds the right API with one search and runs it with one call.

Which Google Flights data APIs are available?

Google Flights Search and Google Flights Price Calendar.

Prices and availability read from the production service on . A credit is about 10 cents of tool use; see pricing. Your assistant can quote the exact cost before a paid call.