# Otomoto.pl Used Car Scraper (EUR prices) (`woolly_neon_noz/otomoto-scraper`) Actor

Scrape used-car listings from otomoto.pl search pages: make, model, year, mileage, fuel, gearbox, power, price in PLN and EUR (ECB rate), seller type, city. Incremental mode returns only new or re-priced listings.

- **URL**: https://apify.com/woolly_neon_noz/otomoto-scraper.md
- **Developed by:** [Terabit Ai](https://apify.com/woolly_neon_noz) (community)
- **Categories:** E-commerce, Lead generation, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 listing 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/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

## Otomoto.pl Used Car Scraper

Scrape used-car listings from [otomoto.pl](https://www.otomoto.pl) search pages into a clean table: make, model, year, mileage, fuel, gearbox, power, price in PLN **and EUR**, seller type and city. Turn on **incremental mode** to get only new or re-priced listings on each run, which works well with a daily schedule.

### What you get

One row per car:

| Field | Example |
| --- | --- |
| `make`, `model`, `version` | Toyota, Corolla, 1.8 Hybrid Comfort |
| `year`, `mileageKm` | 2020, 94950 |
| `fuel`, `gearbox` | hybrid, automatic |
| `powerKw`, `powerHp`, `engineCapacityCm3` | 90, 122, 1798 |
| `priceOriginal`, `currency`, `priceEur` | 48900, PLN, 10968 |
| `priceDropEur`, `priceDropSource` | 134, otomoto |
| `sellerType` | dealer / private |
| `city`, `region`, `country` | Warszawa, Mazowieckie, PL |
| `url`, `imageUrl`, `listedAt` | listing link, thumbnail URL, creation time |
| `changeType`, `firstSeenAt`, `isBaseline` | incremental mode only |
| `fxRate`, `fxRateDate`, `scrapedAt` | 4.4583, 2026-11-20, run time |

Rows use a stable schema (`id, source, url, make, model, year, mileageKm, fuel, gearbox, powerKw, priceEur, priceOriginal, currency, sellerType, city, country, firstSeenAt, priceDropEur, scrapedAt`) so you can stack results in one table.

**Privacy:** the Actor never outputs seller names, phone numbers, e-mail addresses or seller IDs. Images are returned as URLs only.

### Input

- **Search URLs**: set filters on otomoto.pl in your browser and paste the URL (passenger cars, path `/osobowe/...`). Paging is handled by the Actor.
- **Or filters**: make, model, year from/to, price from/to (PLN), max mileage, fuel, gearbox. The search is sorted newest first.
- **Max listings** (default 100) and **Max pages per search** (default 20, 32 listings per page).
- **Only new or re-priced listings** (`incremental`) with a **State key**: the first run for a key is a baseline and returns everything it finds; later runs return only `NEW` and `PRICE_CHANGED` listings.

```json
{
  "make": "toyota",
  "model": "corolla",
  "yearFrom": 2018,
  "priceToPln": 60000,
  "maxItems": 20
}
```

### Prices in EUR

`priceEur = round(priceOriginal / fxRate)` where `fxRate` is the latest **ECB euro reference rate** (PLN per 1 EUR) from the ECB Data Portal (`EXR.D.PLN.EUR.SP00.A`). The rate date is in `fxRateDate`. If the ECB service is unavailable, `priceEur` is `null` and the original price is still returned.

`priceDropEur`: in incremental mode, the drop since the previous run (`priceDropSource: "previous-run"`); otherwise the drop shown by otomoto's price-drop badge (`"otomoto"`).

### Run summary

The `OUTPUT` record in the default key-value store lists every search with total results, pages fetched, parsed and emitted listings, errors, the FX rate used, and HTTP statistics.

### Reliability

- robots.txt is checked before the first request; disallowed paths are never fetched.
- Requests are sequential with a pause between pages.
- HTTP 403 and anti-bot / challenge pages are retried once or twice with a fresh session (new headers and an empty cookie jar), then the run fails. No proxy is used by default.
- The run **fails** (instead of returning an empty dataset) when no listing can be parsed, e.g. when the site blocks the request or changes its page layout.

### For AI agents

Purpose: Scrape used-car listings from otomoto.pl search pages into a normalized table with prices in PLN and EUR (ECB rate). Incremental mode returns only new or re-priced listings.

Example input:

```json
{
  "make": "toyota",
  "model": "corolla",
  "yearFrom": 2018,
  "priceToPln": 60000,
  "maxItems": 20
}
```

You can also pass `searchUrls` copied from otomoto.pl (path `/osobowe/...`). Output fields (one dataset item per listing): `id`, `source`, `url`, `title`, `make`, `model`, `version`, `year`, `mileageKm`, `fuel`, `gearbox`, `powerKw`, `powerHp`, `engineCapacityCm3`, `priceOriginal`, `currency`, `priceEur`, `priceDropEur`, `priceDropSource`, `sellerType`, `city`, `region`, `country`, `imageUrl`, `listedAt`, `fxRate`, `fxRateDate`, `scrapedAt`, and in incremental mode `changeType`, `firstSeenAt`, `isBaseline`. A run summary is in the default key-value store record `OUTPUT`. The run fails when 0 listings can be parsed.

### Changelog

#### 0.2.0 — 22 November 2026

- Retry HTTP 403 and challenge pages (no `__NEXT_DATA__`) with a fresh session up to twice, then fail loudly. No proxy by default.
- Added this changelog and the "For AI agents" block.

#### 0.1.0 — 22 November 2026

- Public Store release: search-page scraping, EUR conversion via the ECB rate, incremental mode, pay-per-event pricing.

### Limitations

- Data comes from search result pages; fields only visible on the listing detail page (VIN, description, equipment) are not included.
- `sellerType` is `null` for listings that otomoto does not classify (for example listings cross-listed from OLX).

### Responsible use

Use this Actor in line with otomoto.pl's terms of service and applicable law. The output is limited to publicly listed vehicle fields and does not include seller contact details. You are responsible for how you use the data.

# Actor input Schema

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

otomoto.pl passenger-car search URLs (path starting with /osobowe), copied from the browser after setting filters. The 'page' parameter is ignored; the Actor paginates itself. Leave empty to use the filters below.

## `make` (type: `string`):

Make as used in otomoto URLs, e.g. 'toyota', 'volkswagen', 'bmw'. Used only when set; builds one extra search sorted by newest.

## `model` (type: `string`):

Model as used in otomoto URLs, e.g. 'corolla', 'golf'. Requires a make.

## `yearFrom` (type: `integer`):

Minimum production year.

## `yearTo` (type: `integer`):

Maximum production year.

## `priceFromPln` (type: `integer`):

Minimum price in PLN (otomoto filters in PLN).

## `priceToPln` (type: `integer`):

Maximum price in PLN.

## `mileageToKm` (type: `integer`):

Maximum mileage in km.

## `fuel` (type: `string`):

Fuel type filter.

## `gearbox` (type: `string`):

Gearbox filter.

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

Maximum number of listings written to the dataset per run, across all searches.

## `maxPagesPerSearch` (type: `integer`):

Maximum result pages (32 listings each) fetched per search.

## `incremental` (type: `boolean`):

Remember listings between runs (named key-value store 'otomoto-scraper-state') and output only NEW listings or listings whose price changed (PRICE_CHANGED). The first run for a stateKey is a baseline and outputs all listings found.

## `stateKey` (type: `string`):

Name of the incremental state. Use a different key per watchlist (letters, digits, - \_ . ! ' ( ) ).

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

Optional. By default no proxy is used. Residential proxy is billed per GB.

## Actor input object example

```json
{
  "searchUrls": [
    "https://www.otomoto.pl/osobowe/toyota/corolla?search%5Border%5D=created_at_first%3Adesc"
  ],
  "maxItems": 100,
  "maxPagesPerSearch": 20,
  "incremental": false,
  "stateKey": "default",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `listings` (type: `string`):

Default dataset items, one row per car listing.

## `runSummary` (type: `string`):

Per-search pages, counts, errors, FX rate used, billing and HTTP stats.

# 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.otomoto.pl/osobowe/toyota/corolla?search%5Border%5D=created_at_first%3Adesc"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("woolly_neon_noz/otomoto-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.otomoto.pl/osobowe/toyota/corolla?search%5Border%5D=created_at_first%3Adesc"] }

# Run the Actor and wait for it to finish
run = client.actor("woolly_neon_noz/otomoto-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.otomoto.pl/osobowe/toyota/corolla?search%5Border%5D=created_at_first%3Adesc"
  ]
}' |
apify call woolly_neon_noz/otomoto-scraper --silent --output-dataset

```

## MCP server setup

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