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.
Run this endpoint
Endpoint
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.
string
Required
Place or agency name, 2 to 100 characters. Example: şişli.
coffee shops
array
Optional
location, agency or both (default).
["example"]
integer
Optional
Number of results, 1 to 25, default 10.
10
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"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.
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"
}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.