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

Hepsiemlak Autocomplete API Documentation

GET https://scrappa.co/api/hepsiemlak/autocomplete

Hepsiemlak Autocomplete API turns a place or agency name into ready values. Locations return the slug to use in search, its level (county or district) and coordinates. Agencies return the id to use in the agency routes. Turkish letters work, for example şişli.

Hepsiemlak Autocomplete API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/hepsiemlak/autocomplete
Auth header
x-api-key
Cost
1 credit/request
query = coffee shops
Response preview
200 OK
{
    "data": {
        "query": "\u015fi\u015fli",
        "results": [
            {
                "id": 1663,
                "name": "\u0130stanbul, \u015ei\u015fli",
                "slug": "sisli",
                "type": "location",
                "level": "\u0130l\u00e7e",
                "latitude": 41.0586929321289,
                "longitude": 28.9879035949707
            },
            {
...

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.

query string Required

Place or agency name, 2 to 100 characters. Example: şişli.

Example value coffee shops
types array Optional

location, agency or both (default).

Example value ["example"]
limit integer Optional

Number of results, 1 to 25, default 10.

Example value 10

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": {
        "query": "\u015fi\u015fli",
        "results": [
            {
                "id": 1663,
                "name": "\u0130stanbul, \u015ei\u015fli",
                "slug": "sisli",
                "type": "location",
                "level": "\u0130l\u00e7e",
                "latitude": 41.0586929321289,
                "longitude": 28.9879035949707
            },
            {
                "id": 121697,
                "name": "\u015eanl\u0131urfa, Siverek, Belde, Sislice",
                "slug": "sislice",
                "type": "location",
                "level": "Mahalle",
                "latitude": 37.860426,
                "longitude": 39.217725
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "autocomplete"
    },
    "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": {
        "query": [
            "The query field is invalid."
        ]
    },
    "message": "The request validation failed"
}
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": "autocomplete"
    },
    "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.