# Bezrealitky Autocomplete API Documentation

<p><strong>Bezrealitky Autocomplete API</strong> resolves a place name to Czech areas. Each result has a <code>region_id</code> such as <code>R438171</code> that you pass to the search route as <code>region_ids</code>, plus name, district, region, coordinates and bounding box. Only areas are returned, not street addresses.</p>

- **Documentation:** [https://scrappa.co/docs/bezrealitky-api/bezrealitky_autocomplete](https://scrappa.co/docs/bezrealitky-api/bezrealitky_autocomplete)
- **API group:** Bezrealitky API
- **Endpoint:** `GET https://scrappa.co/api/bezrealitky/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 | Search text, 2 to 100 characters. |
| `size` | integer | No | Number of results, 1 to 50 (default 10). |
| `from` | integer | No | Result offset for paging (default 0). |

## Example response

```json
{
    "data": {
        "query": "Brno",
        "results": [
            {
                "geo": {
                    "latitude": 49.1922443,
                    "longitude": 16.6113382
                },
                "bbox": {
                    "east": 16.6113392,
                    "west": 16.611337199999998,
                    "north": 49.1922453,
                    "south": 49.1922433
                },
                "city": "Brno",
                "name": "Brno",
                "type": "administrative",
                "region": "Jihomoravsk\u00fd kraj",
                "borough": null,
                "district": "okres Brno-m\u011bsto",
                "region_id": "R438171",
                "display_name": "Brno, okres Brno-m\u011bsto, Jihomoravsk\u00fd kraj, \u010cesko"
            }
        ]
    },
    "meta": {
        "from": 0,
        "size": 10,
        "billable": true,
        "endpoint_family": "autocomplete"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter or a value is invalid, or the parameter does not exist. This response is not billable. |
| 503 | Upstream Unavailable | Bezrealitky could not be reached or returned data that does not match the request. 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)
