# Autocomplete a location (v1)

Returns up to 10 US cities, neighborhoods, counties, ZIP codes and addresses matching a partial name. Places carry a `location` for the search endpoints; addresses carry a `property_id` for Property details.

- Platform: Realtor
- Request: `GET https://api.toolzerhub.com/v1/realtor/autocomplete`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/realtor/locations/get-realtor-autocomplete

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `query` | query | yes | string | Part of a city, neighborhood, county, ZIP code or street address, such as austin, 78704 or 9001 palmito dr. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/realtor/autocomplete?query=<query>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
