---
title: "Google Flights API: Autocomplete | Perceptlayer"
description: "Autocomplete from Google Flights as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/google-flights/autocomplete
---

[APIs](https://perceptlayer.com/apis) / [Google Flights](https://perceptlayer.com/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 shell 

```
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](https://perceptlayer.com/apis/google-flights?try=autocomplete#playground) with your own parameters. 1 credit per successful call; failed calls are free.
