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

[APIs](https://perceptlayer.com/apis) / [Spacious](https://perceptlayer.com/apis/spacious) / Autocomplete

# Spacious: Autocomplete

Autocomplete from Spacious as JSON. 1 credit per successful call.

GET `/v1/spacious/autocomplete`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Required | Up to 100 characters |
| `type` | string | Optional | building, neighbourhood |
| `limit` | integer | Optional | Any |

## Example request

cURL shell 

```
curl "https://api.perceptlayer.com/v1/spacious/autocomplete?query=imperial&type=building&limit=2" \
  -H "X-API-Key: $API_KEY"
```

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