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

[APIs](https://perceptlayer.com/apis) / [Flatmates](https://perceptlayer.com/apis/flatmates) / Location Autocomplete

# Flatmates: Location Autocomplete

Location Autocomplete from Flatmates as JSON. 1 credit per successful call.

GET `/v1/flatmates/location-autocomplete`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Required | Up to 80 characters |
| `type` | string | Optional | suburb, city, train\_station, university |
| `limit` | integer | Optional | Any |

## Example request

cURL shell 

```
curl "https://api.perceptlayer.com/v1/flatmates/location-autocomplete?query=newt&limit=5" \
  -H "X-API-Key: $API_KEY"
```

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