Halo Oglasi Autocomplete API resolves a place name to the location ids the search route needs. Each result has the id, the readable label, the full path such as Beograd / Opština Zemun, an ASCII spelling and the place type: city, municipality or micro_location. Pass the ids to the search route as location_ids.
Failed requests are not billed.
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.
1 optional filter available.
string
Required
Search text, 2 to 100 characters.
coffee shops
integer
Optional
Number of results, 1 to 50 (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": "novi sad",
"results": [
{
"id": 35194,
"city": "Novi Sad",
"path": "Novi Sad",
"type": "city",
"ascii": "novi sad",
"label": "Novi Sad"
},
{
"id": 40758,
"city": "Novi Sad",
"path": "Novi Sad / Op\u0161tina Novi Sad",
"type": "municipality",
"ascii": "opstina novi sad",
"label": "Op\u0161tina Novi Sad"
},
{
"id": 538007,
"city": "Beograd",
"path": "Beograd / Op\u0161tina Zemun / Autoput za Novi Sad",
"type": "micro_location",
"ascii": "autoput za novi sad",
"label": "Autoput za Novi Sad"
}
]
},
"meta": {
"billable": true,
"endpoint_family": "autocomplete"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Validation Error
A required parameter, a range or a combination is invalid. This response is not billable.
{
"errors": {
"query": [
"The query field is required."
]
},
"message": "The request validation failed"
}Upstream Unavailable
Halo Oglasi could not be reached or returned data that does not match the request. This response is not billable and is retryable.
{
"meta": {
"billable": false,
"retryable": true,
"endpoint_family": "autocomplete"
},
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "Halo Oglasi 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.