# Otomoto Scraper (`lowlanddata/otomoto-scraper`) Actor

Vehicle ads from otomoto.pl, Poland's biggest vehicle site, as clean JSON: make, model, price, year, mileage, fuel, power, city, region. Cars, vans, trucks, motorcycles and machinery. Dealer or private as a flag; seller identity never collected. Pay per result.

- **URL**: https://apify.com/lowlanddata/otomoto-scraper.md
- **Developed by:** [Lowland Data](https://apify.com/lowlanddata) (community)
- **Categories:** E-commerce, Automation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.79 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Scraper: Polish car, van, truck and motorcycle ads, GDPR-safe

Extract vehicle ads from **otomoto.pl**, Poland's largest vehicle marketplace, as clean, structured JSON. Title, price in grosze, make, model, version, year, mileage, fuel, transmission, power, engine size, city, region, seller type, posting time and cover photo on every row; the description, body, drive, colour, doors, seats, emissions, consumption, the owner and accident flags, the equipment list, every photo and the dates when you ask for the ad pages. Cars by default, and every other part of the site from one actor: motorcycles and quads, vans, trucks, farm machinery, construction machinery and trailers. Ready for price monitoring, stock sourcing, market research and data pipelines.

**No seller personal data, ever.** This scraper is built GDPR-first: seller names, seller ids, profile links, phone numbers, addresses, registration numbers and VINs never appear in the output, not as an option you have to remember to switch off, but by design. The only seller information included is whether the ad comes from a dealer or company, or a private seller.

### Quick start (30 seconds)

1. Leave **category** on Cars, or pick another part of the site. Type a **make** such as `bmw` if you want one.
2. Click **Start**. That's the whole minimum setup: the newest ads of the category, all of Poland.
3. When the run finishes, open the dataset's **Overview** tab for a clean table, or **Export** it as CSV/Excel/JSON.

Add a **model** (`seria-3`), price, year, mileage and power bands, a fuel type, transmission, seller type or condition, keep **sortBy** on newest and put the run on a schedule for a daily watch. otomoto.pl has no free-text search, so makes and models are how you narrow a search here, as they are on the site's own address bar.

Already have the search set up on otomoto.pl? Set the filters there, copy the address from the browser and paste it into **Otomoto search links**: the run returns what that page lists, with every filter the site offers.

### What you can build with it

- **Source stock for a dealership.** Search `category: osobowe`, `sellerType: private`, `yearMin: 2018`, `mileageMaxKm: 100000`, `priceMaxPln: 60000` and get every matching private sale with `priceCents`, `year`, `mileageKm`, `city` and `region`, and `priceRating` telling you which ones the site itself calls below market.
- **Watch a model for new ads.** `make: bmw`, `model: seria-3`, `sortBy: newest`, cap `maxItems` at a page or two, and schedule the run daily; the newest cars land in your sheet or Slack with the price already parsed and `postedAt` on every row.
- **Scrape the searches you already use.** Set the filters on otomoto.pl (make, model, region, body type, price, year, mileage, fuel, equipment), copy the address and paste it into `startUrls`. Paste as many as you like in one run.
- **Follow the trucks, vans and machinery market.** `category: ciezarowe`, `dostawcze`, `maszyny-rolnicze` or `maszyny-budowlane` returns every ad with its price, and for company sales the net price before VAT in `netPriceCents`, with `vatDeductible` and `invoiceIssued` telling you what the buyer can claim.
- **Feed an AI agent clean data.** Every field is structured, predictable and free of personal data, so an assistant or pipeline can consume it directly, with no scrubbing and no compliance review before you store it.

### What you get

Each ad is one dataset item:

```json
{
  "listingId": "6151720728",
  "url": "https://www.otomoto.pl/osobowe/oferta/bmw-seria-3-ID6IjZA4.html",
  "title": "BMW Seria 3 330i M Sport Sport",
  "category": "osobowe",
  "make": "BMW",
  "model": "Seria 3",
  "version": "330i M Sport Sport",
  "year": 2018,
  "mileageKm": 97458,
  "fuel": "petrol",
  "transmission": "automatic",
  "powerHp": 252,
  "engineDisplacementCcm": 1998,
  "priceCents": 5100000,
  "currency": "PLN",
  "invoiceIssued": true,
  "city": "Warszawa",
  "region": "Mazowieckie",
  "sellerType": "professional",
  "postedAt": "2026-11-16T16:26:19.000Z",
  "imageUrls": [
    "https://ireland.apollo.olxcdn.com/v1/files/spp0fde5rbyn2-OTOMOTOPL/image;s=640x480"
  ]
}
```

With **Fetch ad pages** on (or for ads named in `listingIds`), each item also carries the `description`, `generation`, `bodyType`, `drive`, `color`, `condition`, `doors`, `seats`, `co2Emission`, the consumption figures, the flags `damaged`, `accidentFree`, `registeredInPoland`, `firstOwner`, `serviceHistory`, `rightHandDrive`, `imported` and `negotiable`, the `equipment` list, every photo in `imageUrls`, `firstPostedAt`, `updatedAt` and `status`: the ad page's whole fact sheet.

Field notes, so you know exactly what you are buying:

- `priceCents` is the headline price in minor units: grosze for PLN, cents for EUR, so 5100000 is 51,000.00 PLN. Fields the ad does not have are left out rather than set to null.
- When a company ad also states a net price, `priceCents` stays the gross asking price and `netPriceCents` carries the price before VAT. `vatDeductible` and `invoiceIssued` are `true` only when the ad says so.
- `priceRating` is the site's own rating of the price against the market: `below_market`, `in_market` or `above_market`. It is left out when the site gives none.
- `historyVerified` is `true` when the site flags the vehicle's history as checked against the Polish vehicle register (CEPiK). It is left out otherwise.
- `city` and `region` are locality-level: the street and the coordinates are never collected, for dealers as for private sellers.
- `sellerType` is `professional` for dealers and companies and `private` for private sellers. An ad that a private seller cross-posted from OLX counts as private.
- `fuel` and `transmission` use fixed lowercase values (`petrol`, `diesel`, `electric`, `hybrid`, `plugin-hybrid`, `petrol-lpg`, `petrol-cng`; `manual`, `automatic`). `bodyType`, `drive` and `color` keep the site's own wording.
- `postedAt` is when the ad was last published or renewed on the site, not when it was first posted: `firstPostedAt` on the ad page has that.
- Titles and descriptions are the seller's words with every email address, link, handle, vehicle identification number and phone-like number replaced by a marker.
- `listingId` is the site's number for the ad. `listingIds` takes that number, the code at the end of the ad address (`ID6IjZA4`) or the whole address.

### How much does it cost to scrape Otomoto?

$3.00 per 1,000 ads delivered, pay-as-you-go: no subscription, and you pay per result rather than per hour. No charge for empty or failed runs. In plain dollars:

- **100 ads ≈ $0.30**: a daily model watch.
- **500 ads ≈ $1.50**: a region's stock of one make.
- **A 3,000-ad crawl ≈ $9.00**: a whole make across Poland, deduplicated.

The price is all-inclusive: your runs' platform usage is covered by it. otomoto.pl answers Apify datacenter proxies, so the actor runs through those by default. That is the form's default, nothing to configure, and nothing extra on the bill.

Free-plan runs are limited to a sample of 5 items, enough to evaluate the output format against your real query.

### Not technical? Let your AI assistant set it up

Copy this into ChatGPT, Claude or any AI assistant, fill in the one line, and follow the conversation:

```text
Help me set up the "Otomoto Scraper" actor on Apify
(https://apify.com/lowlanddata/otomoto-scraper). Guide me one step at a time.

What I want to watch: [E.G. "Private-seller BMW 3 Series from 2017 on, under 90,000 zloty"]

Guide me to:
1. Propose my input values: category (cars, motorcycles, vans, trucks, ...), make
   and model as the site spells them in its addresses (bmw, seria-3), the price,
   year, mileage and power bands I need, fuelType, transmission, sellerType,
   sortBy "newest" for monitoring, and maxItems. Remind me the site has no
   free-text search, so a make and model is how I narrow it, or I can set the
   filters on otomoto.pl and paste the address.
2. Decide whether I need scrapeDetails (the description, equipment list, every
   photo and the accident and owner flags from each ad page) or whether the
   search rows are enough.
3. Create a free Apify account (apify.com), open the actor page, paste the values
   into the Input form, and start a run.
4. Set up a daily Schedule in the Apify Console with the same input, plus an email
   or Slack integration so new results reach me automatically.
5. Show me how to export results as CSV/Excel, or read them from the API if I code.
6. If the results are what I wanted, remind me at the end to leave a quick rating on the actor page, and to report anything broken or missing on its Issues tab.
```

### Input

| Field                          | Description                                                                                                                                                                              |
| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `category`                     | `osobowe` (cars, default), `motocykle-i-quady`, `dostawcze` (vans), `ciezarowe` (trucks), `maszyny-rolnicze`, `maszyny-budowlane` or `przyczepy`. Parts are not searched.                |
| `make`, `model`                | Vehicle make and model as the site spells them in its addresses (`bmw`, `mercedes-benz`, `seria-3`); `model` needs `make`.                                                               |
| `searchQueries`                | More searches for the same run, one per line: a make (`audi`) or a make and model (`bmw/seria-3`), each with the same category and filters. Up to 50; an ad found twice comes back once. |
| `startUrls`                    | Otomoto search pages to read, as you copy them from the browser. The form fields stand down for them and the run status says which. Single ads are refused: use `listingIds`. Up to 50.  |
| `listingIds`                   | Re-check known ads by id, code or address instead of searching; each read from its own page with the full fact sheet; gone ads are skipped and not billed. Up to 100.                    |
| `priceMinPln`, `priceMaxPln`   | Price band in zloty.                                                                                                                                                                     |
| `yearMin`, `yearMax`           | Production year band.                                                                                                                                                                    |
| `mileageMinKm`, `mileageMaxKm` | Mileage band in kilometres.                                                                                                                                                              |
| `powerMinHp`, `powerMaxHp`     | Engine power band in horsepower.                                                                                                                                                         |
| `fuelType`                     | `petrol`, `diesel`, `electric`, `hybrid`, `plugin-hybrid`, `petrol-lpg` or `petrol-cng`.                                                                                                 |
| `transmission`                 | `manual` or `automatic`.                                                                                                                                                                 |
| `sellerType`                   | `private` or `professional`.                                                                                                                                                             |
| `condition`                    | `new` or `used`.                                                                                                                                                                         |
| `sortBy`                       | `newest` (default), `price_asc`, `price_desc`, `mileage_asc`, `mileage_desc`, `power_asc`, `power_desc`, `relevance`.                                                                    |
| `maxItems`                     | Stop after this many ads (default 1000; the form starts at 25 for a cheap first run).                                                                                                    |
| `scrapeDetails`                | Read each ad's page for the description, equipment and the full fact sheet. One extra request per ad, about six seconds each.                                                            |
| `proxyConfiguration`           | Proxy settings. Apify datacenter proxies by default; leave as it is.                                                                                                                     |

Every field is optional: an empty form returns the newest cars in Poland. An unknown make or model, an unknown category or an inverted band fails before the run starts, with the reason in the status message.

#### Using search links

Open otomoto.pl, pick a category, a make and model if you like, set the filters (region, price, year, mileage, fuel, body type, equipment, seller type, condition) and copy the address from the browser into `startUrls`. A whole category with no filter works too. The run reads the page exactly as the site shows it, in the order the link has: pick Newest on the site for monitoring. Several links run one after the other, an ad that two of them list comes back once, and `maxItems` counts the whole run, each link getting an equal share of what is left.

Because a link already says everything, the form's `category`, `make`, `model`, the bands, the selects and `sortBy` are ignored when links are given, and the run status lists the ones you had filled in. A link to a single ad is refused with a pointer to `listingIds`.

#### Several searches at once

`searchQueries` runs more makes and models in the same run, one per line, each with the category, price band and the other filters of the form. `make` and `model` are the first search and `searchQueries` adds the rest; an ad that two searches find comes back once. `maxItems` is the total for the run, split in equal shares across the searches, so a quiet search leaves its room to the next one. If one search fails, the others still deliver and the failure is named in the status.

#### Finding a make or model

Type them as the site's addresses spell them: `https://www.otomoto.pl/osobowe/bmw/seria-3` means `category: osobowe`, `make: bmw`, `model: seria-3`, and `https://www.otomoto.pl/ciezarowe/volvo` means `category: ciezarowe`, `make: volvo`. Open a search on the site, pick the make and model from its filters and copy the spelling from the address.

### Use it from your code

Run the actor and get items straight back with one HTTP call (fine for scoped runs up to ~5 minutes):

```bash
curl "https://api.apify.com/v2/acts/lowlanddata~otomoto-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -X POST -H "Content-Type: application/json" \
  -d '{"category": "osobowe", "make": "bmw", "model": "seria-3", "maxItems": 100}'
```

Node.js:

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('lowlanddata/otomoto-scraper').call({
  category: 'osobowe',
  make: 'bmw',
  model: 'seria-3',
  maxItems: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("lowlanddata/otomoto-scraper").call(
    run_input={"category": "osobowe", "make": "bmw", "model": "seria-3", "maxItems": 100})
items = client.dataset(run["defaultDatasetId"]).list_items().items
```

For large crawls, start the run asynchronously and fetch the dataset when the finished-run webhook fires. Schedules (e.g. a daily price snapshot), webhooks and the Make/Zapier/n8n integrations all work out of the box, because this is a standard Apify actor.

### Use it with AI agents (MCP)

Claude, Cursor and other MCP-capable agents can run this scraper as a tool through Apify's hosted MCP server: the agent fills in the search itself, starts the run and reads the results, with no glue code.

Claude Code:

```bash
claude mcp add apify --transport http "https://mcp.apify.com?actors=lowlanddata/otomoto-scraper"
```

Cursor or Claude Desktop (add a custom connector / MCP server with this URL):

```text
https://mcp.apify.com?actors=lowlanddata/otomoto-scraper
```

Sign in with your Apify account when prompted: runs are billed to it. Setup details per client: [Apify MCP docs](https://docs.apify.com/platform/integrations/mcp), or start from this actor's own MCP page: [apify.com/lowlanddata/otomoto-scraper/api/mcp](https://apify.com/lowlanddata/otomoto-scraper/api/mcp).

Prompts that work once connected:

- "Find the 50 cheapest automatic BMW 3 Series from 2018 on at otomoto.pl and give me the price per year of age."
- "Snapshot every private-seller Volkswagen Golf under 40,000 zloty and tell me the median mileage by year."
- "List today's newest used trucks on Otomoto and flag the ones the site rates below market."

### There is no result window

Many classifieds sites stop a query after a few hundred results. otomoto.pl does not: a search with over 20,000 ads reads to its last page, and a whole category runs to hundreds of thousands. The site serves 32 ads a page and each page is a heavy read of about 1.5 MB that takes around five seconds, so the run paces its requests: 1,000 ads take about three minutes and 3,000 about ten. A first page, which is all the form's default of 25 ads needs, comes back in five to fifteen seconds. Set `maxItems` to the number you want and the run stops there.

### Is it legal to scrape Otomoto?

Public ad data (prices, years, mileages, cities, photos) is public commercial information, and this scraper is built so that the hard part of the question never arises: **no personal data enters your dataset in the first place.** The Polish data protection authority (UODO) is strict on personal data; an output that carries none is the point of this actor, not an afterthought.

The output is produced by a whitelist: only named, non-personal fields are read from each ad. The seller block (name, id, link, phone, address), the dealer's promotional data and the registration number and VIN are never touched, and a test on every build fails if any of them appears. Requests are paced, run through standard Apify datacenter proxies as a visitor's would be, and nothing is done to defeat the site's access controls.

One honest limit: titles and descriptions are the seller's own words. The actor replaces every email address, link, handle, vehicle identification number and phone-like number in them with a marker, but a name or an address typed in plain words stays as the seller wrote it. The guarantee covers the data fields, not everything a seller chooses to say about themselves.

### Is there an Otomoto API alternative?

otomoto.pl publishes no public API for its ads. This actor is the practical alternative: the same ads as structured JSON through one HTTP call (`run-sync-get-dataset-items`), on a schedule, or as an MCP tool for AI agents, with the GDPR question already answered in the data itself.

### Does Otomoto block scrapers?

otomoto.pl serves its search results and ad pages to ordinary visitors, with the data embedded in the page, and answers Apify's datacenter addresses. This actor stays inside that welcome: it reads the pages the way a visitor does, paced, with the load kept negligible. No CAPTCHA fights, no bot-wall cat-and-mouse, which is also why runs are fast and reliable enough for daily schedules. Should the site refuse a request anyway, the run retries on a fresh proxy exit a few times, then stops and says in its status how many ads it collected.

### How do I monitor Otomoto prices?

Keep `sortBy: newest` with your category, make and filters, cap `maxItems` to a page or two, and add a daily (or hourly) Schedule in the Apify Console with an email/Slack integration on the runs: every new ad lands in your inbox with the price already parsed. To follow particular ads over time, put their ids into `listingIds`: each run returns their current price and fact sheet, and a sold or removed ad is reported in the log and not billed. The AI-assistant prompt above walks a non-technical user through exactly this setup.

### FAQ

**Can I get seller or dealer contact details?** No, by design. That is the product: data you can store, share and process without a GDPR review. The output tells you only whether the ad comes from a dealer or company, or a private seller.

**Can I paste my Otomoto search links?** Yes, put them in `startUrls`, as many as you like. Each is read as the site shows it, with the filters it carries. See Using search links above.

**Can I search by keyword?** The site does not filter by free text on its server, so this actor does not pretend to. Use `make` and `model`, `searchQueries` for several of them, or set the filters you need on otomoto.pl and paste the link.

**Which categories does it cover?** Cars, motorcycles and quads, vans, trucks, farm machinery, construction machinery and trailers, chosen with `category`. Same columns everywhere; the vehicle attributes fill in where the site has them. Parts are not searched.

**What does the price rating mean?** `priceRating` is the site's own comparison of the asking price against similar ads: `below_market`, `in_market` or `above_market`. It is the site's judgement, copied as is, and left out when the site gives none.

**Can I get only the newest ads?** Sort by `newest` and cap `maxItems`; every row carries `postedAt`, so a daily schedule with a small cap is a daily watch.

**How fresh is the data?** Live at run time: every run queries the site directly. For continuous freshness, schedule the actor.

**Can I export to Excel or CSV?** Yes, every dataset exports as CSV, Excel, JSON or XML from the Apify Console or API.

**What happens on a big search?** The run reads 32 ads a page until `maxItems` or the last page of the search. There is no cap in the site to work around, so the only limit is the number you set and the time the pages take, about three minutes for 1,000 ads.

**Do I get the full fact sheet?** Search rows carry title, price, make, model, version, year, mileage, fuel, transmission, power, engine size, city, region, seller type, posting time and the cover photo. Turn on `scrapeDetails` for the description, equipment list, every photo, the body, drive, colour, emissions, the owner and accident flags and the dates. The ad pages are read one at a time at about six seconds each, so use it for hundreds of ads rather than thousands.

**Do I need residential proxies for Otomoto?** No. otomoto.pl answers Apify datacenter proxies, which is the actor's default, and the price covers them.

**Does it work with Make, Zapier or n8n?** Yes, it is a standard Apify actor; all platform integrations, webhooks and schedules apply.

### Related scrapers

Working the Polish market or the used-vehicle trade? The same GDPR-clean guarantee, same output shape:

- [OLX.pl Scraper](https://apify.com/lowlanddata/olx-pl-scraper): Poland's general classifieds site.
- [Otodom Scraper](https://apify.com/lowlanddata/otodom-scraper): Poland's property portal.
- [AutoScout24 Scraper](https://apify.com/lowlanddata/autoscout24-scraper): used cars across eight European country sites.
- [willhaben Car Scraper](https://apify.com/lowlanddata/willhaben-car-scraper): the Austrian car market.
- [DoneDeal Scraper](https://apify.com/lowlanddata/donedeal-scraper): Ireland's classifieds site, cars first.

### Troubleshooting

The actor fails fast with the reason in the run's status message:

- **"Invalid input: Otomoto does not know the make ..."** (or the model) - open a search on otomoto.pl, pick the make or model from the filters and copy the spelling from the address (`bmw`, `mercedes-benz`, `seria-3`).
- **"Invalid input: Otomoto has no page at ..."** - make and model are spelled as the site spells them in its addresses. Check the spelling against the site.
- **"Invalid input: Otomoto did not serve a search page for ..."** - the link points to a page that is not a search or does not exist. Open it in a browser, set the filters there and paste the link again.
- **A single-ad link in the search links** - the run refuses it and points to `listingIds`; put ad addresses and ids there.
- **"... delivered without their ad-page fields because the ad page could not be read."** - the site refused the ad pages for some ads; their search-row fields are delivered and the rest can be re-read with `listingIds` later.
- **"Ad ... is no longer on otomoto.pl"** in the log - a sold or removed ad named in `listingIds`; it is skipped and not billed.
- **Fewer items than requested on a free plan** - the 5-item free sample cap; run on a paid Apify plan for full results.

### Support

Found an issue or missing a field you need? Open an issue on the actor's **Issues tab**: reports get fixed, this actor is actively maintained.

Working well for you? A **rating on this page** takes ten seconds and helps other buyers find a GDPR-clean option among the lookalikes. It is also the clearest signal of what we should build next.

# Actor input Schema

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

The part of the site to search: cars (default), motorcycles and quads, vans, trucks, farm machinery, construction machinery or trailers. Parts are not searched.

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

Vehicle make as the site spells it in its addresses: <code>bmw</code>, <code>audi</code>, <code>mercedes-benz</code>. Leave empty for every make. An unknown make stops the run before anything is billed.

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

Vehicle model under the make, as the site spells it in its addresses: <code>seria-3</code>, <code>a4</code>. Needs <b>make</b>.

## `searchQueries` (type: `array`):

More searches in the same run, one per line: a make (<code>audi</code>) or a make and model (<code>bmw/seria-3</code>), each with the same category, price, year, mileage and the other filters of this form. The site has no free-text search, so these are makes and models, not keywords. An ad found by two searches comes back once. <b>Max ads counts the whole run</b>: each search gets an equal share of it, and the searches run in the order given. Up to 50.

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

Paste search pages copied from otomoto.pl after you set the filters on the site: category, make and model, price, year, mileage, fuel, body type, region and any other filter. Each link is read exactly as the site shows it, so the form fields on this page stand down for it, and a link keeps its own order. <b>Search pages only</b>: for single ads use Specific ad IDs. Up to 50.

## `listingIds` (type: `array`):

Re-check ads you already know instead of searching: one per line, as the number shown as <code>listingId</code> on every dataset item, the code at the end of the ad address (<code>ID6IjZA4</code>) or the ad's full address. Each one is read from its own page, so it carries the description, the full fact sheet, the equipment list and every photo. An ad that is gone from the site is skipped, named in the log and not billed. <b>When given, the search fields of this form are ignored</b> and the run status says which. Up to 100.

## `priceMinPln` (type: `integer`):

Only ads priced at least this many zloty.

## `priceMaxPln` (type: `integer`):

Only ads priced at most this many zloty.

## `yearMin` (type: `integer`):

Vehicles produced in this year or later.

## `yearMax` (type: `integer`):

Vehicles produced in this year or earlier.

## `mileageMinKm` (type: `integer`):

Vehicles with at least this mileage.

## `mileageMaxKm` (type: `integer`):

Vehicles with at most this mileage.

## `powerMinHp` (type: `integer`):

Vehicles with at least this engine power in horsepower.

## `powerMaxHp` (type: `integer`):

Vehicles with at most this engine power in horsepower.

## `fuelType` (type: `string`):

Only vehicles with this fuel.

## `transmission` (type: `string`):

Manual or automatic.

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

Only private sellers, or only dealers and companies.

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

Only new vehicles, or only used ones.

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

Order of results: newest (best for monitoring), price_asc, price_desc, mileage_asc, mileage_desc, power_asc, power_desc, or relevance (the site's own order).

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

Stop after this many ads. Free-plan runs are capped at 5 items. The form starts at 25 for a cheap first run - that is the form's prefill, not a cap on your plan; clear it to use the default of 1000. The site serves 32 ads a page and has no result window, so a run can go as deep as you ask. Each page is a heavy read of about 1.5 MB that takes around five seconds, so 1,000 ads take about three minutes.

## `scrapeDetails` (type: `boolean`):

The search row carries the title, price, make, model, version, year, mileage, fuel, transmission, power, engine size, city, region, seller type, posting time and cover photo. Turn this on to read each ad's own page for the description, the body, drive, colour, doors, seats, emissions, consumption, the owner and accident flags, the equipment list, every photo and the dates. One extra request per ad, about six seconds each, so use it for hundreds of ads rather than thousands. Seller names, phone numbers, addresses, the registration number and the VIN are never read.

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

Proxy settings. otomoto.pl answers Apify datacenter proxies, so that is the default and nothing extra is billed. Leave it as it is.

## `reportFailures` (type: `boolean`):

Only two things are sent to the developer. When a run fails: the actor name and build, an error category, the truncated error message and a one-way hash of your input. At the start of every run: the actor name, the build, a one-way hash of your Apify account id and whether the account is on a paid Apify plan. <b>Your input, your results, your name and your account id itself are never sent.</b> Turn this off and nothing is sent; the actor behaves the same.

## Actor input object example

```json
{
  "category": "osobowe",
  "listingIds": [],
  "sortBy": "newest",
  "maxItems": 25,
  "scrapeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "reportFailures": true
}
```

# Actor output Schema

## `ads` (type: `string`):

Scraped otomoto.pl ads, one JSON object per ad.

# 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 = {
    "category": "osobowe",
    "listingIds": [],
    "sortBy": "newest",
    "maxItems": 25,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("lowlanddata/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 = {
    "category": "osobowe",
    "listingIds": [],
    "sortBy": "newest",
    "maxItems": 25,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("lowlanddata/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 '{
  "category": "osobowe",
  "listingIds": [],
  "sortBy": "newest",
  "maxItems": 25,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call lowlanddata/otomoto-scraper --silent --output-dataset

```

## MCP server setup

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