# Sreality Locality Resolve API

Resolve one locality using its entity type and identifier.

## Locality identity

The result returns the matched locality data for the requested entity pair. Use `suggest` to discover a locality identifier; the verified Brno municipality ID is 5740.

## Scope

This endpoint resolves a single locality. It does not return listing search results or decoded boundary geometry.

- **Documentation:** [https://scrappa.co/docs/sreality-api/sreality_resolve](https://scrappa.co/docs/sreality-api/sreality_resolve)
- **API group:** Sreality API
- **Endpoint:** `GET https://scrappa.co/api/sreality/resolve`

## 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 |
| --- | --- | --- | --- |
| `entity_type` | string | Yes | Locality level: region, district, ward, municipality, or quarter. |
| `entity_id` | integer | Yes | Positive identifier for the selected locality; Brno municipality is 5740. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/sreality/resolve?entity_type=municipality&entity_id=5740"
```

## Example response

```json
{
    "success": true,
    "data": {
        "result": {
            "city": "Brno",
            "city_seo_name": "brno",
            "country_id": 112,
            "country_seo_name": "ceska-republika"
        }
    },
    "meta": {
        "endpoint_family": "locations",
        "billable": true,
        "retryable": false
    }
}
```

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