# Realitica Locations API Documentation

<p><strong>Realitica Locations API</strong> lists the municipalities and regions of a country with their current number of sale listings, optionally filtered by a text. Realitica has no autocomplete endpoint, so the list comes from the facets of a result page and is cached for one hour. Pass a name as the <code>region</code> filter of the search route.</p>

- **Documentation:** [https://scrappa.co/docs/realitica-api/realitica_locations](https://scrappa.co/docs/realitica-api/realitica_locations)
- **API group:** Realitica API
- **Endpoint:** `GET https://scrappa.co/api/realitica/v1/locations`

## 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 |
| --- | --- | --- | --- |
| `country` | string | No | montenegro (default), croatia, serbia or bosnia. Example: montenegro. |
| `q` | string | No | Optional text to match in the location name. Example: bud. |

## Example response

```json
{
    "data": {
        "query": "bud",
        "total": 2,
        "country": "montenegro",
        "locations": [
            {
                "name": "Budva",
                "count": 6749
            },
            {
                "name": "Budva Okolina",
                "count": 5865
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "locations"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter or a value is invalid. This response is not billable. |
| 503 | Upstream Unavailable | Realitica could not be reached. This response is not billable and is retryable. |
| 503 | Unexpected Upstream Data | Realitica returned data in an unexpected shape. This response is not billable and is retryable. |

## 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)
