# Hepsiemlak Filters API Documentation

<p><strong>Hepsiemlak Filters API</strong> lists what the search route accepts. It returns the property types of the class, all cities with their slugs and, with <code>city</code>, the counties. With <code>county</code> it also returns the areas and their districts with the slugs for the <code>area</code> and <code>district</code> search parameters. Room, floor, heating, owner and listing date options come with their Turkish labels.</p>

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

## 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_class` | string | No | housing (default), commercial, land, timeshare or tourist. |
| `listing_type` | string | No | sale (default), rent, seasonal_rent, transfer_sale, transfer_rent or swap_sale. |
| `city` | string | No | City slug such as istanbul. Adds its counties. |
| `county` | array | No | Repeatable county slug. Adds areas and districts. |

## Example response

```json
{
    "data": {
        "areas": [
            {
                "label": "19 May\u0131s",
                "value": "kadikoy-19-mayis",
                "county": "kadikoy",
                "districts": [
                    {
                        "label": "19 May\u0131s Mh.",
                        "value": "kadikoy-19-mayis-mah"
                    },
                    {
                        "label": "Kozyata\u011f\u0131 Mh.",
                        "value": "kozyatagi-mah"
                    }
                ]
            },
            {
                "label": "Ac\u0131badem",
                "value": "kadikoy-acibadem",
                "county": "kadikoy",
                "districts": [
                    {
                        "label": "Ac\u0131badem Mh.",
                        "value": "kadikoy-acibadem-mah"
                    },
                    {
                        "label": "Ko\u015fuyolu Mh.",
                        "value": "kadikoy-kosuyolu-mah"
                    }
                ]
            }
        ],
        "rooms": [
            {
                "label": "St\u00fcdyo",
                "value": "studyo"
            },
            {
                "label": "1+1",
                "value": "1-1"
            }
        ],
        "cities": [
            {
                "label": "\u0130stanbul",
                "value": "istanbul"
            },
            {
                "label": "Ankara",
                "value": "ankara"
            }
        ],
        "floors": [
            {
                "label": "Y\u00fcksek Giri\u015f",
                "value": "Y\u00fcksek Giri\u015f"
            },
            {
                "label": "Ara Kat",
                "value": "Ara Kat"
            }
        ],
        "heading": "Kad\u0131k\u00f6y Sat\u0131l\u0131k Ev",
        "heating": [
            {
                "label": "Kombi",
                "value": "Kombi"
            },
            {
                "label": "Klima",
                "value": "Klima"
            }
        ],
        "counties": [
            {
                "label": "Kad\u0131k\u00f6y",
                "value": "kadikoy"
            },
            {
                "label": "Adalar",
                "value": "adalar"
            }
        ],
        "owner_types": [
            {
                "label": "Sahibinden",
                "value": "sahibinden"
            },
            {
                "label": "Emlak\u00e7\u0131dan",
                "value": "emlakcidan"
            }
        ],
        "listing_type": "sale",
        "listing_dates": [
            {
                "label": "Bug\u00fcn\u00fcn \u0130lanlar\u0131",
                "value": "today"
            },
            {
                "label": "Son 3 g\u00fcn",
                "value": "last-three-days"
            }
        ],
        "property_class": "housing",
        "property_types": [
            {
                "label": "Daire",
                "value": "daire"
            },
            {
                "label": "Villa",
                "value": "villa"
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "filters"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or outside its allowed values. This response is not billable. |
| 422 | Unknown Location | A city, county, district or area slug does not exist. Use a slug from autocomplete or filters. 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)
