Google Flights Location Search
The suggestions of the "Where from?" and "Where to?" boxes of Google Flights for some typed letters, answered as the document with `locations`: cities with their airports and, for the arrival box, regions and countries.
The suggestions of the "Where from?" and "Where to?" boxes of Google Flights for some typed
letters, answered as the document with locations: cities with their airports and, for the
arrival box, regions and countries. Five suggestions at most. A typed airport code answers the
airport alone (type: airport). The kgmid and airport_code are the departure_id /
arrival_id forms the flights engines take.
X-API-Key<token>Your API key.
cancel_token?stringA name you make up for this request (a UUID is fine), so you can later GET /v1/cancel
with it. Only you know it, so only you can cancel. Use a new one for every request, retries included: a cancelled token stays cancelled for a few minutes.
1 <= length <= 128q*stringThe letters typed.
1 <= length <= 200search_type?stringarrival adds regions.
"departure""departure""arrival"hl?stringLanguage code.
"en"The suggestions, as the document. When the page could not be parsed, the usual envelope.
application/json- response
The first three keys of every parsed 200 (the answer is the document itself, no success/data
envelope): what the search was (search_metadata), what it asked (search_parameters), the
parser's own search_information ({} when it has none). The engine's blocks follow, at the same
level. An engine whose answer is a list puts it under results.
search_metadata*search_parameters*The request's own fields as sent, engine first, without cancel_token.
search_information*The parser's own, e.g. yelp_search's; otherwise {}.
locations?array<>items <= 5[key: string]?anycurl -X GET 'https://api.justserp.com/v1/google/flights/location-search?q=New&search_type=departure'{ "search_metadata": { "id": "string", "status": "Success", "created_at": "string", "request_url": "string", "html_url": "string" }, "search_parameters": {}, "search_information": {}, "locations": [ { "type": "string", "kgmid": "string", "full_name": "string", "short_name": "string", "description": "string", "airports": [ { "type": "string", "kgmid": "string", "airport_code": "string", "title": "string", "city": "string", "distance": "string" } ] } ]}Google Flights Calendar GET
The cheapest price of every departure date (and, for a round trip, every return date) in a range, from Google Flights' date picker, answered as the document with `calendar`.
Google Flights Deals GET
The cheap flights Google lists for an origin ("Find cheap flights"), answered as the document with `deals`: thirty destinations in Google's order, each with its own dates, the price against the usual one, the airline and the stops.