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

[APIs](https://perceptlayer.com/apis) / [Google Hotels](https://perceptlayer.com/apis/google-hotels) / Autocomplete

# Google Hotels: Autocomplete

Autocomplete from Google Hotels as JSON. 1 credit per successful call.

GET `/v1/google-hotels/autocomplete`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `q` | string | Required | Up to 100 characters |
| `hl` | string | Optional | Up to 2 characters |
| `gl` | string | Optional | Up to 2 characters |
| `currency` | string | Optional | Up to 3 characters |
| `type` | string | Optional | location, hotel, all |

## Example request

cURL shell 

```
curl "https://api.perceptlayer.com/v1/google-hotels/autocomplete?q=Berlin" \
  -H "X-API-Key: $API_KEY"
```

[Run this endpoint in the playground](https://perceptlayer.com/apis/google-hotels?try=autocomplete#playground) with your own parameters. 1 credit per successful call; failed calls are free.
