OLX Poland Districts API lists the districts of one city with their ids. Cities without districts return an empty list, which is a valid billed answer. Use the ids as district_id in search.
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.
integer
Required
City id from the cities or locations endpoint. Example: 17871.
1234567890
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"results": [
{
"id": 367,
"name": "Bemowo"
},
{
"id": 365,
"name": "Bia\u0142o\u0142\u0119ka"
},
{
"id": 369,
"name": "Bielany"
}
]
},
"meta": {
"billable": true,
"endpoint_family": "districts"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Parser Drift
OLX answered with a response shape this parser does not recognise. Never charged.
{
"meta": {
"billable": false,
"retryable": false,
"endpoint_family": "districts"
},
"error": {
"code": "PARSER_DRIFT",
"message": "OLX response shape changed unexpectedly. The incident has been reported."
},
"success": false
}Upstream Unavailable
The upstream service is temporarily unavailable. Please retry shortly.
{
"meta": {
"billable": false,
"retryable": true,
"endpoint_family": "districts"
},
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "OLX upstream is temporarily unavailable."
},
"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.