# OLX Poland Cities API Documentation

<p><strong>OLX Poland Cities API</strong> 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.</p>

- **Documentation:** [https://scrappa.co/docs/olx-pl-api/olx_pl_cities](https://scrappa.co/docs/olx-pl-api/olx_pl_cities)
- **API group:** OLX Poland API
- **Endpoint:** `GET https://scrappa.co/api/olx-pl/cities`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `region_id` | integer | Yes | Region id from the regions endpoint. Example: 2. |
| `limit` | integer | No | Cities to return, 1-2000. Defaults to 100. |

## Example response

```json
{
    "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

| Status | Error | Description |
| --- | --- | --- |
| 500 | Parser Drift | OLX answered with a response shape this parser does not recognise. Never charged. |
| 503 | Upstream Unavailable | The upstream service is temporarily unavailable. Please retry shortly. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
