APIs / Google Flights / Autocomplete
Google Flights: Autocomplete
Autocomplete from Google Flights as JSON. 1 credit per successful call.
GET /v1/google-flights/autocomplete
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
q | string | Required | Up to 255 characters |
hl | string | Optional | Any |
gl | string | Optional | Any |
Example request
curl "https://api.perceptlayer.com/v1/google-flights/autocomplete?q=Berl&hl=en&gl=us" \
-H "X-API-Key: $API_KEY"Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.