# OLX Poland Classifieds Scraper (`w3crawler/olx-poland-classifieds-scraper`) Actor

Public-page metadata extraction Actor for the inventory entry OLX Poland Classifieds Scraper.

- **URL**: https://apify.com/w3crawler/olx-poland-classifieds-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 classified listings

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

### What does OLX Poland Classifieds Scraper do?

OLX Poland Classifieds Scraper extracts **real public classified listings from [OLX.pl](https://www.olx.pl/)**. It supports current search/category result cards and Product or Offer JSON-LD on listing pages, returning titles, displayed prices, locations, publication/refresh labels, images, and official listing URLs. Runs on Apify can be called through the API, scheduled, monitored, and connected to downstream integrations.

### Why use OLX Poland Classifieds Scraper?

Use it to monitor public marketplace supply, compare displayed prices, collect research datasets, track categories, or feed public listing data into an analysis workflow. The Actor emits honest diagnostics when access or parsing fails and never turns a block page into listing data.

### How to scrape OLX.pl listings

1. Open the Actor input form.
2. Add one or more public OLX.pl search, category, or listing URLs.
3. Choose a bounded `maxItems` value.
4. Run the Actor and inspect the dataset.
5. Export the verified rows or consume them through the Apify API.

Direct requests are the default. Standard Apify Proxy settings can be supplied when justified, using one consistent session. The Actor does not solve CAPTCHAs, sign in, access private messages, or bypass access controls.

### Input

```json
{
  "startUrls": [{ "url": "https://www.olx.pl/oferty/q-iphone/" }],
  "maxPages": 1,
  "maxItems": 20,
  "timeoutMs": 30000,
  "maxBytes": 10000000
}
```

`query` (or the compatibility alias `searchQuery`) optionally filters extracted structured records. `proxyConfiguration` accepts standard Apify Proxy settings. `requestDelayMs` and `maxRequestRetries` provide bounded pacing and retry control. `fixturePath` is limited to explicit checked-in local QA fixtures and never replaces failed live access. Inputs are restricted to public HTTPS OLX.pl hosts and bounded to 25 supplied pages and 100 output rows.

### Output

```json
{
  "recordType": "olx-poland-listing",
  "title": "iPhone 14 128 GB",
  "price": "1 250 zł",
  "priceCurrency": "PLN",
  "city": "Mogilno",
  "officialUrl": "https://www.olx.pl/d/oferta/example-CID99-IDexample.html",
  "images": ["https://ireland.apollo.olxcdn.com/v1/files/example-PL/image"],
  "provenance": "public_olx_poland_result_card"
}
```

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel. Optional values are omitted when OLX does not publish them; barter labels such as “Zamienię” are preserved rather than converted into a fake numeric price.

### Data table

| Field | Description |
| --- | --- |
| `title` | Public listing title |
| `price` | Displayed price or barter label |
| `priceCurrency` | Currency when a monetary price is shown |
| `city` | Public location label |
| `availability` | Source-provided availability state, when published by OLX |
| `postedText` / `refreshedText` | Original public publication or refresh label |
| `publishedAt` / `lastRefreshedAt` | ISO timestamp when the source supplies an ISO-like date |
| `officialUrl` | OLX.pl listing URL |
| `images` | Public listing-card images |
| `provenance` | Whether the row came from a result card or JSON-LD |

### How much does it cost to scrape OLX.pl?

Cost depends on requested pages, response sizes, proxy use, and run frequency. Start with one page and a small item limit. Direct HTTP is efficient and usually keeps compute usage low; proxy traffic can add cost.

### Tips and advanced options

Use focused search/category URLs for relevant data, keep `maxItems` bounded, and prefer direct access while it remains reliable. If a page exposes Product or Offer JSON-LD, the Actor can collect richer structured attributes in addition to result-card fields.

### FAQ, disclaimers, and support

Scrape only public data you are permitted to collect and follow applicable laws and website terms. Listings may change or disappear, and some cards may omit optional fields. Report reproducible issues through the Actor’s Issues tab; custom extraction requirements can be evaluated separately.

# Actor input Schema

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

HTTPS OLX.pl listing, category, or search pages.

## `maxPages` (type: `integer`):

Maximum number of supplied OLX.pl pages to request.

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

Maximum unique records to emit.

## `timeoutMs` (type: `integer`):

Maximum time for each public request.

## `maxBytes` (type: `integer`):

Maximum bytes read per public response.

## `query` (type: `string`):

Optional case-insensitive filter applied to structured listing data.

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

Compatibility alias for query.

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

Optional standard Apify Proxy settings. Direct public HTTP is the default; enabled runs reuse one consistent session and do not bypass access controls.

## `requestDelayMs` (type: `integer`):

Optional bounded delay between public requests.

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

Retry budget for transient public-request failures.

## `fixturePath` (type: `string`):

Optional checked-in relative fixture for local validation; it never replaces a failed live request unless explicitly supplied.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.olx.pl/oferty/q-iphone/"
    }
  ],
  "maxPages": 1,
  "maxItems": 20,
  "timeoutMs": 30000,
  "maxBytes": 5000000,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "requestDelayMs": 250,
  "maxRequestRetries": 1
}
```

# Actor output Schema

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

Default dataset.

## `summary` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/olx-poland-classifieds-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/olx-poland-classifieds-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 '{}' |
apify call w3crawler/olx-poland-classifieds-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/olx-poland-classifieds-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/dh3Q6FF5EXQUr3BgU/builds/QiQsaQeBbDeowFctp/openapi.json
