Skip to content
Scrappa Get API key
Hepsiemlak API 1 credit/request

Hepsiemlak Price Index API Documentation

GET https://scrappa.co/api/hepsiemlak/price-index

Hepsiemlak Price Index API 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.

Hepsiemlak Price Index API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/hepsiemlak/price-index
Auth header
x-api-key
Cost
1 credit/request
city_id = 1234567890
Response preview
200 OK
{
    "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": [
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

2 optional filters available.

city_id integer Required

City id such as 34.

Example value 1234567890
county_id integer Optional

County id such as 1421.

Example value 1234567890
district_id integer Optional

District id such as 12892.

Example value 1234567890

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "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

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A parameter is missing or outside its allowed values. This response is not billable.

{
    "errors": {
        "city_id": [
            "The city_id field is invalid."
        ]
    },
    "message": "The request validation failed"
}
404

Not Found

The place id does not exist. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "price_index"
    },
    "error": {
        "code": "NOT_FOUND",
        "message": "The requested resource was not found."
    },
    "success": false
}
503

Upstream Unavailable

Hepsiemlak could not be reached or capacity is busy. Retry after a short pause. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "price_index"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "Hepsiemlak could not be reached. Please retry shortly."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.