TRAVEL
Google Flights: Flight Prices & Fare Deals
Google Flights scraper: live one-way and round-trip prices for any route or pasted Google Flights link.
About this data
Google Flights scraper: live one-way and round-trip prices for any route or pasted Google Flights link. Airline, stops, times, airports, duration, layovers, CO2 and Google's price outlook. Compare up to 14 departure dates; filter by cabin, passengers, stops and airlines.
From the actor’s Apify Store listing. The per-call endpoint may return a bounded subset; its own description is below.
Buy per call over x402
One endpoint at api.ssh.autos. Each call is one JSON POST, paid in USDC with no account or API key, and answered in the same HTTP response.
POST /v1/travel/google-flights/deals
Live Google Flights one-way quotes for one airport pair and departure date: price and currency, airline, stops, departure and arrival airports/dates/times, duration, cabin, passenger count, Google-provided CO2 estimates and price-level indicator, with a source search URL and route/date/currency verification metadata.
Up to 20 itineraries from one dated search page.
Input
Send a JSON body to POST https://api.ssh.autos/v1/travel/google-flights/deals.
| Field | Type | Required | Notes |
|---|---|---|---|
origin | string | optional | pattern ^[A-Z]{3}$; default "JFK" |
destination | string | optional | pattern ^[A-Z]{3}$; default "LAX" |
departDate | string | optional | pattern ^\d{4}-\d{2}-\d{2}$ |
currency | string | optional | one of USD, EUR, PEN, MXN, GBP, BRL, COP, ARS, CLP; default "USD" |
maxResults | integer | optional | 1–20; default 5 |
Returned fields
The answer is JSON: records, a list of up to 20, and summary, the run status and counts. Each record has these 35 fields; a field the source does not publish comes back null.
35 fields per record
| Field | Type | Notes |
|---|---|---|
route | string | Route label: {ORIG}→{DEST} as requested. |
url | string | Google Flights search URL associated with the itinerary. |
price | integer | Total itinerary price in the requested currency, for all passengers searched (round-trip total on round trips). |
currency | string | ISO currency code (matches the currency input). |
trip | string | one-way or round-trip, as priced by Google Flights; always the trip type you searched. |
stops | string | Nonstop, 1 stop, 2 stops ... null when the label omits it. |
airline | string | Marketing airline displayed for the itinerary. |
depart_airport | string | Departure airport full name. |
depart_airport_code | string | Departure airport IATA code, e.g. LHR. |
depart_time | string | Departure clock time, e.g. 3:05 AM. |
depart_date | string | Departure date as displayed, e.g. Friday, November 20. |
depart_date_iso | string | Departure date as YYYY-MM-DD. |
arrive_airport | string | Arrival airport full name. |
arrive_airport_code | string | Arrival airport IATA code, e.g. BCN. |
arrive_time | string | Arrival clock time. |
arrive_date | string | Arrival date as displayed (differs from the departure date on overnight flights). |
arrive_date_iso | string | Arrival date as YYYY-MM-DD. |
duration | string | Total duration as displayed, e.g. 8 hr 55 min. |
duration_minutes | integer | Total duration in minutes. |
layovers | array of objects | One entry per stop, in order: airport, airport_code, city, duration, duration_minutes, overnight. Empty for nonstop flights. |
co2_kg | integer | Estimated carbon emissions for the itinerary, in kilograms. |
co2_vs_typical_pct | integer | Emissions versus a typical flight on this route, in percent (0 = average, -14 = 14% less). |
is_basic_economy | boolean | True when the fare excludes overhead bin access (basic economy). |
is_top_flight | boolean | True when Google Flights lists the itinerary among its top flights; null when the page shows no top/other split. |
price_level | string | Google Flights price outlook for this search: low, typical or high. Same value on every row of a search. one of low, typical, high |
cheapest_time_to_book | string | When booking is usually cheapest for this search, as Google Flights words it, e.g. now, until Nov 3. |
search_depart_date | string | The departure date searched (YYYY-MM-DD), useful with a date window; null for undated searches and pasted links. |
cabin_class | string | Confirmed cabin for the search: economy, premium-economy, business or first; null when it cannot be confirmed. |
passengers | integer | Confirmed passenger count for the search; null when it cannot be confirmed. |
return_date_verified | boolean | Optional on round-trip rows only. True when the requested return date is confirmed; false when it is not or no requested return date is available for checking. Rows can be returned either way; the ru… |
verification | object | Optional evidence status for route, dates (including inferred years), cabin and passengers. Unverified labels must not be treated as confirmed search facts. |
source | string | Source: google.com/travel/flights. |
scraped_at | string | UTC ISO-8601 collection timestamp. |
legs_status | string | Full search mode only: 'verified' when segment details are confirmed for the itinerary; 'unverified' when they cannot be confirmed (no legs then). Absent in the default deals mode. one of verified, unverified |
legs | array of objects | Full search mode only: one entry per flight segment, in order. Absent when legs_status is unverified or in the default deals mode. |
Example call
npx agentcash@latest fetch https://api.ssh.autos/v1/travel/google-flights/deals -m POST -b '{"origin": "JFK", "destination": "LAX", "maxResults": 3}'
The example values come from the API spec or the actor’s own sample input. Running it is a paid call.
What is and isn’t charged
You pay the call price for
- An answer, including a definitive “not found” or an empty result.
- Confirmed no matches returns records: [] (charged: it is an answer).
Free
- Invalid input (422), busy (503), source failure (502), timeout (504) and calls whose client hung up are never charged.
- Invalid input and source failures are not charged.
Prefer a subscription? Run it on Apify
This data source is a public actor on the Apify Store: Google Flights Scraper: Flight Prices & Fare Deals. Run it with your Apify account and plan for larger, scheduled or exported runs; it may offer more input options than the per-call endpoint.
How x402 payment works
- Your client sends the request. The API answers
402 Payment Requiredwith the price and where to pay. - The client pays from its own wallet: USDC on Base or Solana over x402, or over MPP on Tempo. No account, sign-up or API key.
- The client retries with the payment attached and gets the JSON answer in the same call. You are only charged for answers.
The AgentCash CLI in the example does all three steps for you and pays from your AgentCash wallet. Any x402 or MPP client works the same way.
Machine-readable: openapi.json · llms.txt