Make a request
Send the page’s URL to scrape with ajson format that names the parser. Get an API key in the Quickstart.
Read the response
The parser’s data is indata.json. Its fields include isBest, price, priceCurrency, airlines, stops and durationSeconds. This sample is cut to the first items.
Options
Send options in theoptions object of the json format.
It also takes
returnDate, adults and cabin.
Price
$1 per 1,000 calls. See Pricing.Limits and errors
- The URL must be a Google Flights search page, from the address bar or with a q of IATA airport codes and a date, like Flights to JFK from LHR on 2026-12-15. Any other URL fails with
invalidRequest. - The answer comes back in
data.json. If the page cannot be read, the call fails with an error code from Errors.
Related
- Pre-built parsers lists every parser.
- Scrape has the options every scrape takes.
- Google Patents
- Google Trends
- Google Maps