# OLX.pl Scraper - Polish Classifieds (`santamaria-automations/olx-pl-scraper`) Actor

Scrape classified listings from OLX.pl. Extract titles, prices, descriptions, seller info, images, locations, and more. Pure HTTP via public REST API, low memory.

- **URL**: https://apify.com/santamaria-automations/olx-pl-scraper.md
- **Developed by:** [NanoScrape](https://apify.com/santamaria-automations) (community)
- **Categories:** E-commerce, Lead generation
- **Stats:** 1 total users, 1 monthly users, 88.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 a classified listings

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/actors/running/actors-in-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

Scrape classified listings from [OLX.pl](https://www.olx.pl), a Polish classifieds marketplace.

### How it works

1. Go to [olx.pl](https://www.olx.pl), search and set your filters (category, city, price)
2. Copy the search URL and paste it into `searchUrls`
3. Run the actor

The actor extracts all listings matching your search, with automatic pagination.

#### Supported URLs

- Category pages, with the filters from the URL: `https://www.olx.pl/motoryzacja/samochody/audi/?search%5Bfilter_float_price:from%5D=20000`
- Keyword pages, with or without a category: `https://www.olx.pl/oferty/q-iphone/`, `https://www.olx.pl/elektronika/telefony/q-iphone/`
- Category pages with a city: `https://www.olx.pl/nieruchomosci/mieszkania/sprzedaz/warszawa/`

A URL that cannot be matched to an OLX category or city is skipped. The log and the run status name it, and no listings are returned for it.

### Use with AI Agents (MCP)

Connect this actor to any MCP-compatible AI client: Claude Desktop, Claude.ai, Cursor, VS Code, LangChain, LlamaIndex, or custom agents.

**Apify MCP server URL:**

```
https://mcp.apify.com?tools=santamaria-automations/olx-pl-scraper
```

**Example prompt once connected:**

> "Use `olx-pl-scraper` to scrape company data from olx pl. Return results as a table."

Clients that support dynamic tool discovery (Claude.ai, VS Code) will receive the full input schema automatically via `add-actor`.

### Output

| Field | Description |
|-------|-------------|
| `title` | Listing title |
| `description` | Full description |
| `price` / `currency` | Price in PLN or EUR; also filled when the seller marks the price as negotiable |
| `price_negotiable` | `true` when the offer is marked "do uzgodnienia" (negotiable), `false` for a fixed price, empty when there is no price |
| `category` / `category_path` | Top-level category type; `category_path` is the list of category names from the top level down, e.g. `["Elektronika", "Telefony", "Smartfony i telefony komórkowe", "iPhone"]` |
| `condition` | Item condition (for cars taken from the `condition` attribute) |
| `params` | Listing attributes as an object, e.g. `{"phonemodel": "iPhone 11", "builtinmemory_phones": "64GB", "coloriphone": "Czarny"}`; the keys depend on the category |
| `city` / `region` | Location details |
| `latitude` / `longitude` | GPS coordinates |
| `seller_name` / `seller_type` | Seller info (private/business) |
| `image_url` / `image_urls` | Images |
| `posted_at` | Publication date |
| `source_url` | Link to listing on OLX.pl |

### Pricing

| Event | Cost |
|-------|------|
| Start | $0.001 per run |
| Listing | $0.002 per listing |

**100 listings = $0.201** | **1,000 listings = $2.001**

### Examples

#### iPhones

```json
{
  "searchUrls": [
    "https://www.olx.pl/elektronika/telefony/q-iphone/"
  ],
  "maxResults": 50
}
```

#### Several searches in one run

```json
{
  "searchUrls": [
    "https://www.olx.pl/elektronika/telefony/q-iphone/",
    "https://www.olx.pl/motoryzacja/samochody/audi/"
  ],
  "maxResults": 200,
  "maxResultsPerQuery": 80
}
```

#### Cars with filters

```json
{
  "searchUrls": [
    "https://www.olx.pl/motoryzacja/samochody/audi/?search%5Bfilter_enum_model%5D%5B0%5D=a5-sportback&search%5Bfilter_float_milage:to%5D=1000"
  ],
  "maxResults": 100
}
```

### Related Actors

**European Classifieds**

- [Bazos Scraper (SK/CZ/AT/PL)](https://apify.com/santamaria-automations/bazos-scraper)
- [Kleinanzeigen.de Scraper (Germany)](https://apify.com/santamaria-automations/kleinanzeigen-de-scraper)
- [Willhaben.at Scraper (Austria)](https://apify.com/santamaria-automations/willhaben-at-scraper)
- [Tutti.ch Scraper (Switzerland)](https://apify.com/santamaria-automations/tutti-ch-scraper)
- [Subito.it Scraper (Italy)](https://apify.com/santamaria-automations/subito-it-scraper)

**Real Estate**

- [Homegate.ch Scraper (Swiss real estate)](https://apify.com/santamaria-automations/homegate-scraper)
- [Immowelt.de Scraper (German real estate)](https://apify.com/santamaria-automations/immowelt-de-scraper)

**Enrich your data**

- [Website Email & Phone Scraper](https://apify.com/santamaria-automations/website-email-scraper)
- [Google Maps Scraper](https://apify.com/santamaria-automations/google-maps-scraper)
- [Website Contact Extractor](https://apify.com/santamaria-automations/website-contact-extractor)

### Data protection

This actor returns only data that is publicly visible on the source pages. Results can include personal data, such as names, phone numbers, email addresses and addresses of private persons, sole traders or contact persons. Where the source labels an entry type, it is included so you can filter the results yourself.

You are responsible for using the data lawfully, including the GDPR/DSGVO, national data-protection laws and unfair-competition rules (e.g. UWG) for marketing and outreach.

### Issues & Feedback

Missing something or not working as expected? [Open an issue](https://console.apify.com/actors/hw9mhkHXXwgqdakMB/issues) and we'll fix it.

# Actor input Schema

## `searchUrls` (type: `array`):

Paste one or more olx.pl search URLs. Go to olx.pl, set up your search with all desired filters (category, location, price, model, etc.), then copy the URL and paste it here.

## `maxResults` (type: `integer`):

Maximum total number of listings to scrape across all URLs. 0 = unlimited.

## `maxResultsPerQuery` (type: `integer`):

Maximum listings per individual search URL. 0 = unlimited (up to maxResults).

## Actor input object example

```json
{
  "searchUrls": [
    "https://www.olx.pl/motoryzacja/samochody/audi/?search%5Bfilter_enum_model%5D%5B0%5D=a5-sportback&search%5Bfilter_enum_model%5D%5B1%5D=a8&search%5Bfilter_float_milage:to%5D=1000"
  ],
  "maxResults": 100,
  "maxResultsPerQuery": 100
}
```

# Actor output Schema

## `classifiedListings` (type: `string`):

Dataset containing scraped OLX.pl listings

# 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 = {
    "searchUrls": [
        "https://www.olx.pl/motoryzacja/samochody/audi/?search%5Bfilter_enum_model%5D%5B0%5D=a5-sportback&search%5Bfilter_enum_model%5D%5B1%5D=a8&search%5Bfilter_float_milage:to%5D=1000"
    ],
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("santamaria-automations/olx-pl-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 = {
    "searchUrls": ["https://www.olx.pl/motoryzacja/samochody/audi/?search%5Bfilter_enum_model%5D%5B0%5D=a5-sportback&search%5Bfilter_enum_model%5D%5B1%5D=a8&search%5Bfilter_float_milage:to%5D=1000"],
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("santamaria-automations/olx-pl-scraper").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 '{
  "searchUrls": [
    "https://www.olx.pl/motoryzacja/samochody/audi/?search%5Bfilter_enum_model%5D%5B0%5D=a5-sportback&search%5Bfilter_enum_model%5D%5B1%5D=a8&search%5Bfilter_float_milage:to%5D=1000"
  ],
  "maxResults": 100
}' |
apify call santamaria-automations/olx-pl-scraper --silent --output-dataset

```

## MCP server setup

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

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/hw9mhkHXXwgqdakMB/builds/YoGTREQaNKyyOxKJb/openapi.json
