# OLX Scraper | Cheap 2$ / 1k (`trev0n/olx-scraper`) Actor

Scrape OLX.pl get full listing data: title, price, location (city/district/region), seller info, condition, photos, dates, delivery status, and coordinates. Supports keyword search, category/location/price filters.

- **URL**: https://apify.com/trev0n/olx-scraper.md
- **Developed by:** [Paweł](https://apify.com/trev0n) (community)
- **Categories:** Automation, E-commerce, Lead generation
- **Stats:** 64 total users, 23 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 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.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## OLX.pl Scraper

Scrape OLX.pl classifieds via internal API. Get full listing data: title, price, location (city/district/region), seller info, condition, photos, dates, delivery status, and coordinates. Supports keyword search, category/location/price filters.

### Features

- **Keyword search** — search for any product or service by keyword
- **Category filtering** — scrape specific OLX categories (electronics, vehicles, real estate, etc.)
- **Location filtering** — narrow results to a specific city or region
- **Price range filtering** — set minimum and maximum price bounds
- **Condition filter** — filter by new or used items
- **Seller type filter** — filter by private sellers or businesses
- **Sort order** — sort by newest, price (ascending/descending), or relevance
- **Pagination** — automatically follows pagination to collect all results
- **Deduplication** — automatically skips duplicate listings
- **Proxy support** — works with Apify Proxy and custom proxy configurations

### Input Parameters

| Parameter              | Type    | Default           | Description                                                                         |
| ---------------------- | ------- | ----------------- | ----------------------------------------------------------------------------------- |
| `startUrls`            | Array   | `[]`              | Direct OLX.pl URLs to scrape (search pages, category pages, or listing detail URLs) |
| `keyword`              | String  | -                 | Search keyword (e.g., "iPhone 15", "mieszkanie")                                    |
| `category`             | String  | -                 | OLX category path (e.g., "elektronika", "motoryzacja/samochody")                    |
| `location`             | String  | -                 | City or region (e.g., "Warszawa", "Krakow")                                         |
| `priceMin`             | Integer | -                 | Minimum price in PLN                                                                |
| `priceMax`             | Integer | -                 | Maximum price in PLN                                                                |
| `condition`            | String  | -                 | Item condition: "new" or "used"                                                     |
| `sellerType`           | String  | -                 | Seller type: "private" or "business"                                                |
| `sortBy`               | String  | `created_at:desc` | Sort order: newest, oldest, cheapest, most expensive, relevance                     |
| `maxItems`             | Integer | `100`             | Maximum listings to scrape (0 = unlimited)                                          |
| `maxConcurrency`       | Integer | `10`              | Maximum parallel requests                                                           |
| `minConcurrency`       | Integer | `1`               | Minimum parallel requests                                                           |
| `maxRequestRetries`    | Integer | `3`               | Max retries for failed requests                                                     |
| `maxRequestsPerMinute` | Integer | `120`             | Rate limiting                                                                       |
| `proxyConfiguration`   | Object  | -                 | Proxy settings                                                                      |

#### Input Examples

**Search by keyword:**

```json
{
    "keyword": "iPhone 15",
    "maxItems": 50
}
```

**Search with filters:**

```json
{
    "keyword": "laptop",
    "location": "Warszawa",
    "priceMin": 1000,
    "priceMax": 5000,
    "condition": "used",
    "sortBy": "price:asc",
    "maxItems": 100
}
```

**Scrape a specific category:**

```json
{
    "category": "elektronika/telefony",
    "location": "Krakow",
    "sellerType": "private",
    "maxItems": 200
}
```

**Use direct URLs:**

```json
{
    "startUrls": [
        "https://www.olx.pl/elektronika/laptopy/",
        "https://www.olx.pl/d/oferta/macbook-pro-16-m3-ID12345.html"
    ]
}
```

### Output Data

Every listing includes full structured data from OLX's API:

| Field               | Type    | Description                                                 |
| ------------------- | ------- | ----------------------------------------------------------- |
| `id`                | Number  | OLX numeric listing ID                                      |
| `title`             | String  | Listing title                                               |
| `price`             | Number  | Numeric price value                                         |
| `currency`          | String  | Currency code (PLN, EUR, USD)                               |
| `negotiable`        | Boolean | Whether price is negotiable                                 |
| `free`              | Boolean | Whether the item is free                                    |
| `priceText`         | String  | Original price text (e.g., "1 500 zl")                      |
| `city`              | String  | City name                                                   |
| `district`          | String  | District name                                               |
| `region`            | String  | Region/voivodeship                                          |
| `categoryId`        | Number  | OLX category ID                                             |
| `description`       | String  | Full listing description                                    |
| `condition`         | String  | Item condition (new/used/damaged)                           |
| `sellerName`        | String  | Seller display name                                         |
| `sellerType`        | String  | Seller type (private/business)                              |
| `sellerSince`       | String  | When the seller joined OLX                                  |
| `images`            | Array   | All image URLs (full resolution)                            |
| `datePosted`        | String  | ISO timestamp when listed                                   |
| `dateRefreshed`     | String  | ISO timestamp when refreshed                                |
| `validTo`           | String  | ISO timestamp when listing expires                          |
| `isPromoted`        | Boolean | Whether the listing is promoted                             |
| `deliveryAvailable` | Boolean | Whether OLX delivery is available                           |
| `params`            | Object  | Category-specific parameters (e.g., brand, model, platform) |
| `coordinates`       | Object  | GPS coordinates `{lat, lon}`                                |
| `url`               | String  | Direct URL to the listing                                   |
| `scrapedAt`         | String  | ISO timestamp of when the data was scraped                  |

#### Example Output

```json
{
    "id": 1061281315,
    "title": "iPhone 15 Pro Max 256GB - jak nowy",
    "price": 4500,
    "currency": "PLN",
    "negotiable": true,
    "free": false,
    "priceText": "4 500 zl",
    "city": "Warszawa",
    "district": "Mokotow",
    "region": "Mazowieckie",
    "categoryId": 2272,
    "description": "Sprzedaje iPhone 15 Pro Max 256GB w idealnym stanie...",
    "condition": "used",
    "sellerName": "Jan Kowalski",
    "sellerType": "private",
    "sellerSince": "2019-05-10T12:00:00+02:00",
    "images": [
        "https://ireland.apollo.olxcdn.com/v1/files/abc123/image;s=1080x720",
        "https://ireland.apollo.olxcdn.com/v1/files/def456/image;s=1080x720"
    ],
    "datePosted": "2026-03-17T14:30:00+01:00",
    "dateRefreshed": null,
    "validTo": "2026-04-16T14:30:00+02:00",
    "isPromoted": false,
    "deliveryAvailable": true,
    "url": "https://www.olx.pl/d/oferta/iphone-15-pro-max-256gb-CID2272-IDABC123.html",
    "params": {
        "Stan": "Uzywane",
        "Platforma": "Apple"
    },
    "coordinates": {
        "lat": 52.2297,
        "lon": 21.0122
    },
    "scrapedAt": "2026-03-17T12:00:00.000Z"
}
```

# Actor input Schema

## `startUrls` (type: `array`):

List of OLX.pl URLs to scrape. Paste any OLX search or category URL with all filters already applied in the browser (including search\[...] params like search\[filter\_enum\_rooms]\[0]=four, search\[filter\_float\_price:from]=200000, search\[order]=created\_at:desc). The scraper extracts the exact API query OLX uses, so category\_id / city\_id / region\_id and every filter are resolved automatically. Also accepts individual offer URLs (/oferta/... or /d/oferta/...).

## `keyword` (type: `string`):

Search keyword (e.g., 'iPhone 15', 'mieszkanie Warszawa', 'rower'). Used only if startUrls is not provided.

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

OLX category URL path (e.g., 'elektronika', 'motoryzacja/samochody', 'nieruchomosci/mieszkania'). See OLX.pl for available categories.

## `location` (type: `string`):

City or region name (e.g., 'Warszawa', 'Krakow', 'Wroclaw'). Polish characters are auto-normalized.

## `priceMin` (type: `integer`):

Minimum price filter in PLN.

## `priceMax` (type: `integer`):

Maximum price filter in PLN.

## `condition` (type: `string`):

Filter by item condition. Accepts: 'new'/'nowe' or 'used'/'uzywane'.

## `sellerType` (type: `string`):

Filter by seller type. Accepts: 'private'/'prywatny' or 'business'/'firma'.

## `sortBy` (type: `string`):

Sort results by the selected criteria.

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

Maximum number of listings to scrape (0 = unlimited).

## `maxConcurrency` (type: `integer`):

Maximum number of parallel requests (1-50).

## `minConcurrency` (type: `integer`):

Minimum number of parallel requests.

## `maxRequestRetries` (type: `integer`):

Maximum number of retries for failed requests.

## `maxRequestsPerMinute` (type: `integer`):

Maximum number of requests per minute (rate limiting).

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

Proxy settings. Recommended for extractDetails mode and high-volume scraping.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.olx.pl/nieruchomosci/mieszkania/sprzedaz/warszawa/"
    }
  ],
  "sortBy": "created_at:desc",
  "maxItems": 100,
  "maxConcurrency": 10,
  "minConcurrency": 1,
  "maxRequestRetries": 3,
  "maxRequestsPerMinute": 60
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# 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 = {
    "startUrls": [
        {
            "url": "https://www.olx.pl/nieruchomosci/mieszkania/sprzedaz/warszawa/"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("trev0n/olx-scraper").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 = { "startUrls": [{ "url": "https://www.olx.pl/nieruchomosci/mieszkania/sprzedaz/warszawa/" }] }

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

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

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

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.olx.pl/nieruchomosci/mieszkania/sprzedaz/warszawa/"
    }
  ]
}' |
apify call trev0n/olx-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=trev0n/olx-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/1LxmQzt7i5PDaBaDF/builds/SNWNnJtVE1c5wmr6Y/openapi.json
