# Property24 Location Autocomplete

Find locations by name. Each suggestion has an id, a type and a type label. Pass id as location_id and type as location_type to search and agencies. Best matches come first.

- **Documentation:** [https://scrappa.co/docs/property24-api/property24_locations_autocomplete](https://scrappa.co/docs/property24-api/property24_locations_autocomplete)
- **API group:** Property24 API
- **Endpoint:** `GET https://scrappa.co/api/property24/locations/autocomplete`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `q` | string | Yes | Part of a location name, at least 2 characters, for example sea point. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/property24/locations/autocomplete?q=sea+point"
```

## Example response

```json
{
    "success": true,
    "query": "sea point",
    "suggestions": [
        {
            "id": 11021,
            "name": "Sea Point",
            "parent_name": "Cape Town",
            "type": 1,
            "type_label": "suburb"
        }
    ]
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 503 | Upstream Unavailable | Property24 returned an unsuccessful, empty or unexpected answer. The request is not charged. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
