# OLX Poland Scraper (`w3crawler/olx-pl-scraper`) Actor

Bounded public-page metadata baseline for the OLX.pl Scraper | Listings, Prices & Seller Data inventory entry. Target-specific fields are not claimed without a verified target URL.

- **URL**: https://apify.com/w3crawler/olx-pl-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 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

## OLX Poland Scraper

CSV rank: **882**. Store listing: [solidcode/olx-pl-scraper](https://apify.com/solidcode/olx-pl-scraper).

\[💰 $3.0 / 1K] Scrape OLX.pl classified ads at scale. Extract titles, prices, locations, seller info, photos, descriptions, and category attributes from any keyword, category, or search URL on Poland's largest marketplace.

### Scope

This Actor fetches bounded public OLX.pl search or category pages supplied in `startUrls`. Without input it uses a current OLX.pl marketplace search. It emits real listing IDs, titles, prices when exposed, PLN currency, locations, public date labels, images, and listing URLs.

It does not fabricate prices for barter or contact-price ads and does not bypass CAPTCHAs, IP blocks, authentication, paywalls, or other access controls.

`proxyConfiguration` optionally enables the standard Apify Proxy. Direct requests are the default; enabled runs reuse one valid session ID. Proxy credentials are passed only to the request transport and are never written to datasets or summaries.

`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.

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Local run

```bash
apify run --purge --input-file qa-inputs/olx-pl-scraper/local-direct.json
```

`maxPages` bounds both supplied pages and source-bound pagination links discovered on OLX.pl. Pagination never leaves the approved HTTPS OLX.pl host, and duplicate listing IDs are suppressed across pages.

# Actor input Schema

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

Public HTTPS OLX.pl search or category pages.

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

Maximum supplied and discovered OLX.pl pagination pages to request.

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

Maximum number of unique listing rows to write.

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

Maximum time for each public OLX.pl request.

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

Maximum UTF-8 bytes read from each public response.

## `acceptLanguage` (type: `string`):

Language preference sent with public requests.

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

Optional standard Apify Proxy settings. Direct public HTTP is the default.

## `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": 100,
  "timeoutMs": 30000,
  "maxBytes": 5000000,
  "acceptLanguage": "pl-PL,pl;q=0.9,en;q=0.7",
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "requestDelayMs": 250,
  "maxRequestRetries": 1
}
```

# Actor output Schema

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

No description

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

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

```

## MCP server setup

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