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
| API | Id | Price |
|---|---|---|
| Google Flights Search | google_flights.search | 0.017 credits a call |
| Google Flights Price Calendar | google_flights.calendar | 0.017 credits a call |
Google Flights Search
Search Google Flights between two airports on a date and get about 20 itineraries: price, airline, stops, total duration, CO2 emissions against the typical figure for the route, and every leg's airline code, flight number, airports, local departure and arrival times and duration, as normalized JSON. Filter by cabin class, stops, airlines and maximum price. One-way searches return the total fare fo
| Argument | Type | Required | What it is |
|---|---|---|---|
adults | integer | no | Number of adult passengers (1-9, default 1). Prices are for all passengers together. |
airlines | array of string | no | Only itineraries flown by these airlines, as two-character IATA codes (e.g. ["BA", "AA"]). |
cabinClass | economy | premium_economy | business | first | no | Cabin class (default economy). |
children | integer | no | Number of child passengers aged 2-11 (e.g. 1). |
currency | string | no | ISO 4217 currency code for prices (e.g. USD, EUR, GBP; default USD). |
departureDate | string | yes | Departure date in YYYY-MM-DD format (e.g. 2027-01-12). Today or later. |
destination | string | yes | Arrival airport as a three-letter IATA code in capitals (e.g. LHR). |
maxPrice | integer | no | Highest total price to return, in currency (e.g. 600). |
maxStops | any | nonstop | one_or_fewer | two_or_fewer | no | Most stops an itinerary may have (default any). |
origin | string | yes | Departure airport as a three-letter IATA code in capitals (e.g. JFK). |
returnDate | string | no | Return date in YYYY-MM-DD format for a round trip (e.g. 2027-01-19). Omit it for one way. With it, each result is an outbound option priced at the cheapest round trip that starts with it, and the return flights are not included. |
sortBy | top_flights | cheapest | departure_time | arrival_time | duration | emissions | no | Result order: top_flights (Google's best flights first, the default), cheapest, departure_time, arrival_time, duration or emissions. |
Returns airline bookingToken co2Kg currency departureToken itineraries legs price priceType stops totalDurationMinutes typicalCo2Kg
The call
data_api({"api":"google_flights.search","input":{"departureDate":"2026-12-27","destination":"LHR","origin":"JFK"}})Google Flights Price Calendar
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;
| Argument | Type | Required | What it is |
|---|---|---|---|
adults | integer | no | Number of adult passengers (1-9, default 1). Prices are for all passengers together. Child passengers cannot be priced on the calendar. |
cabinClass | economy | premium_economy | business | first | no | Cabin class (default economy). |
currency | string | no | ISO 4217 currency code for prices (e.g. USD, EUR, GBP; default USD). |
departureDateFrom | string | yes | First departure date of the calendar in YYYY-MM-DD format (e.g. 2027-01-12). Today or later. |
departureDateTo | string | yes | Last departure date of the calendar in YYYY-MM-DD format (e.g. 2027-02-10). At most 120 days after departureDateFrom. |
destination | string | yes | Arrival 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). |
origin | string | yes | Departure 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). |
tripLengthDays | integer | no | For 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
- The price shown is the usual one. A call can cost more when the first source fails and another serves it; the most it can cost is shown beside each API, and
max_creditssets your own limit. - These APIs return public data. What you may do with it depends on the platform's terms and the privacy law where you operate, and that responsibility is yours.
- A failed call is not charged.
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.