# Sreality Top Districts API

Return the public market overview for Czech districts.

## Filters and results

Optionally select a property type and deal type. `type=all` is the only working value for the market report selector. The response contains district-level quarterly averages and changes.

## Scope

This is aggregate district market data, not a listing search or a per-listing transaction history.

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

## 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 |
| --- | --- | --- | --- |
| `property_type` | integer | No | Optional property category identifier from 1 to 5. |
| `deal_type` | integer | No | Optional transaction category identifier from 1 to 4. |
| `type` | string | No | Optional market report selector. `all` is the only supported value. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/sreality/top-districts?property_type=1&deal_type=1&type=all"
```

## Example response

```json
{
    "success": true,
    "data": {
        "result": {
            "top_districts": [
                {
                    "district": "Praha 1",
                    "actual_quarter": "Q3-2026",
                    "avg_price_per_area": 164300,
                    "difference": 1.8
                },
                {
                    "district": "Brno-m\u011bsto",
                    "actual_quarter": "Q3-2026",
                    "avg_price_per_area": 108900,
                    "difference": 0.9
                }
            ]
        }
    },
    "meta": {
        "endpoint_family": "market_data",
        "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)
