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

[APIs](https://perceptlayer.com/apis) / [Square Yards](https://perceptlayer.com/apis/square-yards) / Autocomplete

# Square Yards: Autocomplete

Autocomplete from Square Yards as JSON. 1 credit per successful call.

GET `/v1/square-yards/autocomplete`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `q` | string | Required | Up to 80 characters |
| `city` | string | Required | Up to 60 characters |
| `category` | string | Optional | buy, rent |

## Example request

cURL shell 

```
curl "https://api.perceptlayer.com/v1/square-yards/autocomplete?q=andheri&city=Mumbai" \
  -H "X-API-Key: $API_KEY"
```

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