# Hepsiemlak Price Index API Documentation

<p><strong>Hepsiemlak Price Index API</strong> returns the market statistics of a place: median sale price and rent, median price per square meter, amortisation in years and the annual and monthly price history per square meter for sale and rent, with the series of the city and, when given, of the county or district. Ids come from the locations route.</p>

- **Documentation:** [https://scrappa.co/docs/hepsiemlak-api/hepsiemlak_price_index](https://scrappa.co/docs/hepsiemlak-api/hepsiemlak_price_index)
- **API group:** Hepsiemlak API
- **Endpoint:** `GET https://scrappa.co/api/hepsiemlak/price-index`

## 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 |
| --- | --- | --- | --- |
| `city_id` | integer | Yes | City id such as 34. |
| `county_id` | integer | No | County id such as 1421. |
| `district_id` | integer | No | District id such as 12892. |

## Example response

```json
{
    "data": {
        "currency": "TRY",
        "median_rent": 92856,
        "location_ids": {
            "city_id": 34,
            "county_id": 1421
        },
        "median_sale_price": 19796808,
        "amortisation_years": 17,
        "median_rent_per_sqm": 771,
        "rent_per_sqm_history": {
            "annual": {
                "series": [
                    {
                        "name": "\u0130stanbul",
                        "level": "CITY",
                        "values": [
                            21.61,
                            24.15
                        ]
                    },
                    {
                        "name": "Kad\u0131k\u00f6y",
                        "level": "COUNTY",
                        "values": [
                            21.05,
                            28.33
                        ]
                    }
                ],
                "periods": [
                    "2014-09",
                    "2015-09"
                ]
            },
            "monthly": {
                "series": [
                    {
                        "name": "\u0130stanbul",
                        "level": "CITY",
                        "values": [
                            343.47,
                            334.91
                        ]
                    },
                    {
                        "name": "Kad\u0131k\u00f6y",
                        "level": "COUNTY",
                        "values": [
                            630.54,
                            620.31
                        ]
                    }
                ],
                "periods": [
                    "2025-10",
                    "2025-11"
                ]
            }
        },
        "median_sale_price_per_sqm": 158071,
        "sale_price_per_sqm_history": {
            "annual": {
                "series": [
                    {
                        "name": "\u0130stanbul",
                        "level": "CITY",
                        "values": [
                            3602.84,
                            4087.82
                        ]
                    },
                    {
                        "name": "Kad\u0131k\u00f6y",
                        "level": "COUNTY",
                        "values": [
                            6834.39,
                            9258.51
                        ]
                    }
                ],
                "periods": [
                    "2014-09",
                    "2015-09"
                ]
            },
            "monthly": {
                "series": [
                    {
                        "name": "\u0130stanbul",
                        "level": "CITY",
                        "values": [
                            60193.68,
                            61743.36
                        ]
                    },
                    {
                        "name": "Kad\u0131k\u00f6y",
                        "level": "COUNTY",
                        "values": [
                            147284.53,
                            133751.9
                        ]
                    }
                ],
                "periods": [
                    "2025-10",
                    "2025-11"
                ]
            }
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "price_index"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or outside its allowed values. This response is not billable. |
| 404 | Not Found | The place id does not exist. This response is not billable. |
| 503 | Upstream Unavailable | Hepsiemlak could not be reached or capacity is busy. Retry after a short pause. 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)
