# OLX.pl Scraper - Polish Classifieds & Marketplace Data (`evpp/olx-pl`) Actor

Extract OLX.pl classifieds as clean JSON: prices in PLN, locations, photos, vehicle and property attributes, seller details, timestamps, and listing URLs.

- **URL**: https://apify.com/evpp/olx-pl.md
- **Developed by:** [Evp Labs](https://apify.com/evpp) (community)
- **Categories:** E-commerce, Real estate, Other
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.75 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## OLX.pl Scraper - Polish Classifieds & Marketplace Data

Extract classified ads from **OLX.pl**, Poland's largest online marketplace (millions of live ads): titles, prices in PLN, locations, photos, seller type and full category-specific attributes such as car mileage/year or property square meters/rooms.

The Actor reads the structured `__PRERENDERED_STATE__` JSON embedded in every OLX.pl results page - the same payload the site's own frontend consumes. No browser rendering, no login, no proxy required: it is fast, cheap and stable.

### What you can scrape

- **Marketplace monitoring** - track new used items (phones, consoles, furniture) across Poland as they are posted.
- **Car dealer intelligence** - collect `motoryzacja/samochody` ads with mileage, production year, fuel and gearbox attributes.
- **Property feeds** - collect `nieruchomosci/mieszkania` sale/rent listings with square meters, rooms, floor and rent attributes.
- **Price research** - follow asking-price trends per category, region or keyword over time.
- **Aggregation** - feed Polish classifieds data into your own index, CRM or alerting pipeline.

### Quick start input

Target source: `olx.pl`. Paste this JSON into the Actor input tab for a fast first run, or use it as the body of the Apify API run call:

```json
{
    "searchQuery": "iphone",
    "category": "",
    "region": "",
    "sort": "",
    "maxItems": 10
}
```

The default input is intentionally small. Raise `maxItems` only after validating the first listing records.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `searchQuery` | string | `iphone` | Optional keyword search (the `q-<slug>` path segment). Leave empty to browse the latest ads in a category. |
| `category` | string | *(empty = `oferty`)* | Category path: `elektronika`, `motoryzacja/samochody`, `nieruchomosci/mieszkania`, `praca`, ... Empty scrapes all categories. |
| `region` | string | *(empty = all Poland)* | Voivodeship or city slug: `mazowieckie`, `malopolskie`, `slaskie`, `warszawa`, `krakow`, ... |
| `minPrice` | integer | - | Minimum price in PLN (`search[filter_float_price:from]`). |
| `maxPrice` | integer | - | Maximum price in PLN (`search[filter_float_price:to]`). |
| `sort` | string | *(site default)* | `relevance`, `created_at:desc` (newest), `filter_float_price:asc`, `filter_float_price:desc`. |
| `maxItems` | integer | `15` | Maximum ads to collect (about 40-52 per results page). |
| `proxyConfiguration` | object | disabled | Optional Apify proxy. Not needed normally - enable only for very large runs. |

#### Example input

```json
{
    "searchQuery": "iphone",
    "category": "elektronika/telefony",
    "region": "mazowieckie",
    "maxPrice": 3000,
    "sort": "created_at:desc",
    "maxItems": 100
}
```

More examples:

| Goal | Input |
| --- | --- |
| Newest BMWs in Silesia | `category: "motoryzacja/samochody"`, `region: "slaskie"`, `searchQuery: "bmw"`, `sort: "created_at:desc"` |
| Flats in Warsaw up to 800k PLN | `category: "nieruchomosci/mieszkania"`, `region: "warszawa"`, `maxPrice: 800000` |
| Latest ads anywhere | *(leave `searchQuery` and `category` empty)* |

### Output

One flat JSON item is produced per listing. Download the dataset as JSON, CSV, Excel, or HTML, or consume it through the Apify API.

#### Field reference

| Field | Type | Description |
|-------|------|-------------|
| `id` | string | Numeric OLX.pl ad ID |
| `title` | string | Ad title |
| `url` | string | Canonical URL of the ad on olx.pl |
| `externalUrl` | string | External partner URL for ads syndicated from partner sites |
| `price` | number | Numeric asking price in PLN (0 for 'Za darmo' free ads; absent for exchange-only or price-on-request ads) |
| `priceCurrency` | string | Currency of the price, always PLN on OLX.pl (present only when price is set) |
| `priceLabel` | string | Price as displayed on the site |
| `negotiable` | boolean | Whether the price is marked as negotiable |
| `exchangeOnly` | boolean | True for 'Zamienię' (exchange-only) ads with no cash price |
| `category` | string | OLX.pl category name of the ad (localized label) |
| `categorySlug` | string | URL-friendly category identifier |
| `categoryPath` | string | Full OLX.pl category path of the ad |
| `region` | string | Polish voivodeship where the item is located |
| `city` | string | City of the ad location |
| `district` | string | District within the city, when provided |
| `locationLabel` | string | Full location label as shown on the site ('Region, City') |
| `publishedAt` | string | Publication timestamp of the ad (ISO 8601 with timezone) |
| `refreshedAt` | string | Last refresh/bump timestamp of the ad |
| `expiresAt` | string | Expiry timestamp of the ad |
| `imageUrl` | string | URL of the first ad photo on the OLX CDN |
| `imagesCount` | integer | Number of photos attached to the ad |
| `description` | string | Ad description trimmed to about 400 characters |
| `condition` | string | Item condition label when provided (Nowe, Używane, ...) |
| `sellerType` | string | private or business advertiser |
| `sellerName` | string | Display name of the advertiser |
| `sellerId` | string | Internal OLX.pl advertiser user ID |
| `shippingAvailable` | boolean | Whether the ad offers OLX shipping ('Przesyłka OLX' / delivery) |
| `promoted` | boolean | Whether the ad is promoted on the results page |

#### Real sample output (latest live dataset)

```json
{
    "id": "1106852818",
    "title": "Bateria 95% iPhone 14 Pro Max 256gb Deep Purple",
    "url": "https://www.olx.pl/d/oferta/bateria-95-iphone-14-pro-max-256gb-deep-purple-CID99-ID1cUeYO.html",
    "price": 2150,
    "priceCurrency": "PLN",
    "priceLabel": "2 150 zł",
    "negotiable": false,
    "category": "iPhone",
    "categorySlug": "iphone",
    "categoryPath": "elektronika/telefony/smartfony-telefony-komorkowe/iphone",
    "region": "Mazowieckie",
    "city": "Warszawa",
    "district": "Praga-Południe",
    "locationLabel": "Mazowieckie, Warszawa, Praga-Południe",
    "publishedAt": "2026-10-22T13:00:54+02:00",
    "refreshedAt": "2026-11-19T10:50:25+01:00",
    "expiresAt": "2026-12-21T12:00:55+01:00",
    "imageUrl": "https://ireland.apollo.olxcdn.com:443/v1/files/o70mgvruocjs-PL/image;s=750x1000",
    "imagesCount": 8,
    "description": "Uwaga Możliwość wysyłki kurierem za pobraniem Z możliwością sprawdzenia zawartości Pewny i Super Super Sprzedawca Produkt zawsze zgodny z opisem Nie odpowiadam na wiadomości zawierające negocjacje ceny Cena skrojona idealnie pod stan techniczny, wizualny or...",
    "condition": "Używane",
    "sellerType": "private",
    "sellerName": "iSuperMen",
    "sellerId": "330413574",
    "shippingAvailable": true,
    "promoted": true,
    "param_state": "Używane",
    "param_phonemodel": "iPhone 14 Pro Max",
    "param_builtinmemory_phones": "256GB",
    "param_rammemory_phones": "8 GB",
    "param_coloriphone": "Fioletowy",
    "param_guarantee": true,
    "param_phonecharger": "Tak",
    "param_sim_options": "Dual SIM (SIM + eSIM)",
    "param_phones_features": "Always on display, Rozpoznawanie twarzy, Szybkie ładowanie, Hot-Spot, Płatność NFC, Ładowanie indukcyjne"
}
```

### How it works

1. Builds an OLX.pl search URL from `category`, `region`, `searchQuery`, price bounds and `sort` - e.g. `https://www.olx.pl/elektronika/telefony/mazowieckie/q-iphone/?search[filter_float_price:to]=3000`.
2. Fetches result pages with a plain HTTP client (CheerioCrawler) at up to 10 concurrent requests.
3. Parses the embedded `__PRERENDERED_STATE__` JSON (a double-encoded JSON payload) and pushes one clean flat item per ad.
4. Paginates automatically (`?page=N`, ~40-52 ads per page) until `maxItems` is reached. OLX caps listing pagination at 25 pages.

### Use with AI agents (MCP), n8n, Make, and Python

- **AI agents / MCP:** add `https://mcp.apify.com/?tools=evpp/olx-pl` to your MCP client, then ask the agent to scrape OLX.pl data or export the latest dataset.
- **n8n / Make / Zapier:** run Actor `evpp/olx-pl` with the quick-start input, then map dataset items into Google Sheets, a CRM, a webhook, or a monitoring workflow.
- **Python:** install the client with `pip install apify-client` and run:

```python
import json
from apify_client import ApifyClient

client = ApifyClient()
run_input = json.loads('''{"searchQuery":"iphone","category":"","region":"","sort":"","maxItems":10}''')
run = client.actor("evpp/olx-pl").call(run_input=run_input)
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(items[0])
```

The same dataset is available as JSON, CSV, Excel, XML, RSS, and HTML through the Apify API.

### Cost

The Actor runs on HTTP requests only - no browser, so a single run costs almost nothing in compute. Scraping **1,000 ads** (about 20-25 pages) typically finishes in **2-3 minutes** on 256-512 MB of memory. With pay-per-event pricing of **$2.50 per 1,000 ads**, cost is linear and predictable.

### Limits & notes

- Prices are asking prices in PLN. `Za darmo` ads get `price: 0`; exchange-only (`Zamienię`) ads have no `price` and set `exchangeOnly: true`; some ads in job/partner categories use salary fields instead.
- `description` is trimmed to ~400 characters per item for compact PPE items.
- OLX caps listing pagination at 25 pages (~1,000-1,300 ads per search). For larger harvests split by region, category or price range.
- The internal `api/v1/offers` JSON endpoint exists but is aggressively rate-limited; this Actor deliberately reads the embedded page state instead, which is stable without a proxy.
- Please respect OLX.pl's terms of service - this Actor reads publicly available listing pages only.

### FAQ

**Do I need a proxy?** No - listing pages are fetched directly and the default works. Enable a proxy only if you run very large jobs or hit rate limits.

**How fresh is the data?** Real-time: every run fetches live pages, and `sort: "created_at:desc"` surfaces the newest ads first.

**Why `param_*` fields?** OLX stores different attributes per category (mileage for cars, square meters for flats, phone model for mobiles). Instead of hardcoding a few, the Actor exports all of them flat so nothing is lost.

**Can I get ads for a specific city?** Put the city slug in `region` (e.g. `warszawa`, `krakow`, `gdansk`) - OLX treats city paths the same as voivodeship paths. `city` in the output carries the exact location.

**How do I scrape a subcategory?** Use a deeper `category` path, e.g. `nieruchomosci/mieszkania/mieszkania-sprzedaz` or `elektronika/telefony/smartfony-telefony-komorkowe`. You can copy it straight from an OLX.pl URL.

# Actor input Schema

## `searchQuery` (type: `string`):

Optional keyword searched on OLX.pl (the q-<slug> path segment, e.g. iphone, bmw x5, mieszkanie dwupokojowe). Leave empty to browse the latest ads in the chosen category.

## `category` (type: `string`):

OLX.pl category path to scrape, e.g. elektronika, motoryzacja/samochody, nieruchomosci/mieszkania or a deeper path like elektronika/telefony/smartfony-telefony-komorkowe. Leave empty to scrape all categories ('oferty').

## `region` (type: `string`):

Voivodeship or city slug restricting results geographically, e.g. mazowieckie, malopolskie, slaskie or a city like warszawa, krakow, gdansk. Leave empty for all of Poland.

## `minPrice` (type: `integer`):

Only show ads priced at or above this amount in PLN (OLX 'search\[filter_float_price:from]' filter). Leave empty for no lower bound.

## `maxPrice` (type: `integer`):

Only show ads priced at or below this amount in PLN (OLX 'search\[filter_float_price:to]' filter). Leave empty for no upper bound.

## `sort` (type: `string`):

How results are ordered. Leave empty for the site default (relevance for searches, newest first for browsing).

## `maxItems` (type: `integer`):

Maximum number of ads to push to the dataset. OLX.pl returns about 40-52 ads per page; the Actor stops as soon as this many items are collected.

## `proxyConfiguration` (type: `object`):

Proxy settings for outbound requests. Not needed for this Actor: OLX.pl listing pages are fetched directly. Keep disabled unless you hit rate limits on very large runs.

## Actor input object example

```json
{
  "searchQuery": "iphone",
  "category": "",
  "region": "",
  "sort": "",
  "maxItems": 15,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing all scraped OLX.pl ads

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQuery": "iphone",
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("evpp/olx-pl").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchQuery": "iphone",
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("evpp/olx-pl").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQuery": "iphone",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call evpp/olx-pl --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,evpp/olx-pl"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/JrqodaDigEfQnSi4e/builds/GzTrjw58fRWKHoeft/openapi.json
