Skip to content
Scrappa Get API key
OLX Poland API 1 credit/request

OLX Poland Cities API Documentation

GET https://scrappa.co/api/olx-pl/cities

OLX Poland Cities API lists cities of one region with their ids, the county and a has_districts flag. Use the ids as city_id in search and districts.

OLX Poland Cities API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/olx-pl/cities
Auth header
x-api-key
Cost
1 credit/request
region_id = 1234567890
Response preview
200 OK
{
    "data": {
        "results": [
            {
                "id": 13147,
                "name": "Ostro\u0142\u0119ka",
                "county": "Ostro\u0142\u0119ka"
            },
            {
                "id": 13663,
                "name": "P\u0142ock",
                "county": "P\u0142ock"
            },
            {
...

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.

region_id integer Required

Region id from the regions endpoint. Example: 2.

Example value 1234567890
limit integer Optional

Cities to return, 1-2000. Defaults to 100.

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": {
        "results": [
            {
                "id": 13147,
                "name": "Ostro\u0142\u0119ka",
                "county": "Ostro\u0142\u0119ka"
            },
            {
                "id": 13663,
                "name": "P\u0142ock",
                "county": "P\u0142ock"
            },
            {
                "id": 14389,
                "name": "Pruszk\u00f3w",
                "county": "pruszkowski"
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "cities"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

500

Parser Drift

OLX answered with a response shape this parser does not recognise. Never charged.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "cities"
    },
    "error": {
        "code": "PARSER_DRIFT",
        "message": "OLX response shape changed unexpectedly. The incident has been reported."
    },
    "success": false
}
503

Upstream Unavailable

The upstream service is temporarily unavailable. Please retry shortly.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "cities"
    },
    "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.