# Booli Area Statistics API

<p>Fetch price statistics for one area from `GET /api/booli/area-statistics`: mean sold price, sold price per square metre and current supply, each for the last year and the last month. Prices are null for property types without enough sales. An unknown area returns 404.</p>

- **Documentation:** [https://scrappa.co/docs/booli-api/booli_area_statistics](https://scrappa.co/docs/booli-api/booli_area_statistics)
- **API group:** Booli API
- **Endpoint:** `GET https://scrappa.co/api/booli/area-statistics`

## 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 |
| --- | --- | --- | --- |
| `area_id` | string | Yes | Booli area id, for example 1 for Stockholm kommun |
| `object_type` | string | No | Lägenhet (default), Villa, Kedjehus-Parhus-Radhus or Fritidshus |

## Example response

```json
{
    "data": {
        "area_id": "1",
        "statistics": {
            "sold_price_mean": {
                "last_year": {
                    "amount": 5485100,
                    "display": "5 485 100 kr"
                }
            }
        },
        "object_type": "L\u00e4genhet"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | The id, area or home does not exist. This response is not billable. |  |
|  | A parameter or filter is missing or invalid. This response is not billable. |  |
|  | Booli is temporarily unavailable. Retry the request. This response is not billable. |  |

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