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
Google Flights
GET/v1/google-flights/autocomplete?q=Berl&hl=en&gl=us
{
"query": "Berl",
"suggestions": [
{
"type": "city",
"name": "Berlin, Germany",
"short_name": "Berlin",
"description": "Capital of Germany",
"id": "/m/0156q",
"score": 0.9897091388702393,
"airports": [
{
"name": "Berlin Brandenburg Airport",
"id": "BER",
"city": "Berlin",
"distance": "11 mi"
},
{
"name": "Berlin Hauptbahnhof",
"id": "QPP",
"city": "Berlin"
}
]
},
{
"type": "airport",
"name": "Berlevag Airport",
"short_name": "Berlevåg",
"description": "Airport in Berlevåg, Norway",
"id": "/m/026qcp3",
"code": "BVG",
"score": 0.4950000047683716
},
{
"type": "city",
"name": "Berlin, Maryland",
"short_name": "Berlin",
"description": "Town in Maryland",
"id": "/m/0txsw",
"score": 0.4567139148712158,
"airports": [
{
"name": "Philadelphia International Airport",
"id": "PHL",
"city": "Philadelphia",
"distance": "107 mi"
},
{
"name": "Ronald Reagan Washington National Airport",
"id": "DCA",
"city": "Washington",
"distance": "104 mi"
},
{
"name": "Baltimore/Washington International Thurgood Marshall Airport",
"id": "BWI",
"city": "Baltimore",
"distance": "98 mi"
}
]
}
]
}200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
Each item in suggestions has these 8 fields, read from a recorded call that returned 5 items. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
type | string |
name | string |
short_name | string |
description | string |
id | string |
score | number |
airports | object[] |
code | string |