# OLX Car Scraper — Poland Car Listings (`blackfalcondata/olx-car-scraper`) Actor

Scrape car listings from OLX — make, model, year, mileage, price, and photos. Includes seller contact details and city/region location, plus incremental price-drop tracking across runs.

- **URL**: https://apify.com/blackfalcondata/olx-car-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

### What does OLX Car Scraper do?

OLX Car Scraper extracts structured car listings from [olx.pl](https://olx.pl) — Poland's largest classifieds marketplace. Every result carries the full spec sheet: make, model, year, mileage, fuel type, transmission, body type, color, engine power/capacity, drivetrain, VIN and country of origin, taken straight from OLX's own listing data — no separate detail-page fetch required. Prices arrive structured in PLN with negotiable/arranged flags.

Filter by make, model, year, price, mileage, engine power, fuel type, transmission, body type, color, condition, country of origin, seller type and right-hand drive — or paste a search-results URL straight from your browser, or individual listing URLs to track specific cars. Incremental mode tracks new, price-changed and expired listings across runs, with the previous price and drop amount on every updated listing. Alerts go to Telegram, Discord, Slack, WhatsApp or any webhook.

### How to use this actor

- 👉 **Register for a free Apify account** — no credit card required.
- 🎉 Just click **[Sign up free on Apify →](https://console.apify.com/sign-up?fpr=1h3gvi&fp_sid=ctarich)** and complete a quick signup.
- 💰 A free Apify account includes $5 in monthly credits — enough to test this actor.
- ⏳ Scrape during the free trial, with no commitment or upfront payment required.

### Key features

<!-- KEY_FEATURES:START -->
- **🚗 Vehicle data depth** — full specs on every listing: make, model, year, mileage, fuel type, transmission, body type, color, engine power/capacity, drivetrain, VIN, and country of origin — straight from OLX's own data, no detail-page fetch needed.
- **💵 Structured pricing** — price with currency and negotiable/arranged flags, plus cross-run price-drop tracking (previous price, drop amount) in incremental mode.
- **🔔 Notifications** — Telegram, Slack, Discord, WhatsApp, or webhook alerts each run — combine with incremental mode to ping only on real price or inventory moves.
- **🔗 Paste-mode** — paste a search-results URL or individual listing URLs straight from your browser — mix freely with structured filters and keyword rules.
- **📧 Email + phone extraction** — contact emails and phone numbers extracted from descriptions, emitted as `extractedEmails[]` / `extractedPhones[]`.
- **🔗 URL + social-profile extraction** — `extractedUrls[]` plus a structured `socialProfiles` object (LinkedIn, Twitter, Instagram, Facebook, YouTube, TikTok, GitHub, Xing).
- **📦 Compact mode** — core fields only, for lean cross-listing comparisons and pricing dashboards.
- **✂️ Description truncation** — cap length with `descriptionMaxLength` to control LLM prompt cost and dataset size.
- **📌 Change classification** — `changeType` of NEW / UPDATED / UNCHANGED / REAPPEARED / EXPIRED per record, with repost detection.
- **♻️ Incremental mode** — daily runs emit only new or changed listings — saves 80–95% on recurring monitoring.
- **📤 Export anywhere** — JSON, CSV, or Excel from Apify Console, or stream live via API and integrations (Make, Zapier, Sheets, n8n).
<!-- KEY_FEATURES:END -->

### What data can you extract from OLX?

Each result includes core listing fields (title, price, dates, location, category), full vehicle specs (make, model, year, mileage, fuel type, transmission, body type, color, engine power/capacity, drivetrain, VIN, country of origin), seller details (name, type, business metadata), and contact-availability flags — all returned directly from the search response, with no separate detail-page fetch required. All fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.


### Input

The main inputs are a search keyword, an optional location filter, and a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`country`** — OLX country site to scrape. Poland (olx.pl) only for the passenger-car vertical in this release. (default: `"PL"`)
- **`query`** — Free-text keyword(s) matched against listing titles (e.g. "uszkodzony", "zamiana", "faktura VAT"). Use a JSON array ["q1", "q2"] to batch multiple keywords in one run. Leave empty to browse the full market or rely on the structured filters below.
- **`startUrls`** — Paste an OLX car search-results URL straight from your browser (e.g. olx.pl/motoryzacja/samochody/... with any filters already applied in the URL). Each URL becomes its own task; results merge and dedupe with everything else in the run. (default: `[]`)
- **`make`** — Vehicle make(s), e.g. "Ford", "Volkswagen", "BMW". Common aliases are recognized ("vw" → Volkswagen, "mercedes" → Mercedes-Benz). Each make also narrows the search to its OLX subcategory for faster, more precise results. Add several to search multiple makes in one run.
- **`model`** — Model(s) within the selected make(s), e.g. "focus", "golf", "a4". Free text — only narrows results when it matches OLX's own model value for that make. Leave empty to include every model.
- **`yearMin`** — Minimum production year (inclusive).
- **`yearMax`** — Maximum production year (inclusive).
- **`priceMin`** — Minimum asking price in PLN (inclusive).
- **`priceMax`** — Maximum asking price in PLN (inclusive).
- **`mileageMax`** — Only listings with mileage at or below this value (kilometers).
- **`enginePowerMin`** — Minimum engine power in horsepower (inclusive).
- **`enginePowerMax`** — Maximum engine power in horsepower (inclusive).
- ...and 48 more parameters

### Input examples

**Search by make and model** — Filter to specific vehicles across the whole Polish market.

→ Full payload per result — all standard fields populated where the source provides them.

```json
{
  "make": [
    "Ford"
  ],
  "model": [
    "focus"
  ],
  "country": "PL",
  "maxResults": 25
}
````

**Scrape the whole market (unlimited)** — Set `maxResults` to 0 for no cap. Since billing is per result, a broad unlimited run can return — and charge for — many thousands of listings; add filters or a `maxResults` number to bound the cost.

→ Every matching listing on OLX, newest first, with the full vehicle spec sheet on each.

```json
{
  "make": [
    "BMW"
  ],
  "country": "PL",
  "maxResults": 0
}
```

**Free-text keyword search** — Match listing titles against a free-text term instead of structured filters.

→ Full payload per result — every matching listing with all standard fields populated.

```json
{
  "query": "uszkodzony",
  "country": "PL",
  "maxResults": 25
}
```

**Incremental price-drop monitor** — Only emit vehicles that are new or changed since the previous run with this `stateKey` — includes price-drop tracking.

→ First run builds the baseline state. Subsequent runs emit only records that are new or whose tracked content changed, with the previous price and drop amount on updated listings.

```json
{
  "make": [
    "BMW"
  ],
  "country": "PL",
  "maxResults": 25,
  "incrementalMode": true,
  "stateKey": "bmw-tracker"
}
```

**Compact output for AI agents** — Return only core fields for AI-agent and MCP workflows.

→ Small payload with the most important fields — ideal for piping into LLMs without token overhead.

```json
{
  "priceMax": 20000,
  "country": "PL",
  "maxResults": 25,
  "compact": true
}
```

### Output

Each run produces a dataset of structured listing records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example listing record

```json
{
  "jobId": "397936e3b40cc19812d033c10a79b02cebbd2665b241ef21c512bfd1f5122d95",
  "olxId": 1077064558,
  "title": "Ford S-Max 2.0EcoBlue 190km FV-23% *serwisowany*hak*bezwypadkowy*serwisowany*",
  "portalUrl": "https://www.olx.pl/d/oferta/ford-s-max-2-0ecoblue-190km-fv-23-serwisowanyhakbezwypadkowyserwisowany-CID5-ID1aTfH0.html",
  "externalUrl": "https://www.otomoto.pl/osobowe/oferta/ford-s-max-2-0ecoblue-190km-fv-23-serwisowanyhakbezwypadkowyserwisowany-ID6I5Ipw.html",
  "description": "GRUPA MIRAI\n\nAUTORYZOWANY DEALER FORD OFERUJE:\n\nS-MAX\n\n✔️ Wersja wyposażenia: Titanium\n\n✔️ Silnik: 2.0 (Diesel) 190KM\n\n✔️ Skrzynia biegów: Automatyczna\n\n✔️ Rok produkcji : 2022\n\n✔️ Faktura VAT 23%\n\n✔️...",
  "descriptionText": "GRUPA MIRAI\n\nAUTORYZOWANY DEALER FORD OFERUJE:\n\nS-MAX\n\n✔️ Wersja wyposażenia: Titanium\n\n✔️ Silnik: 2.0 (Diesel) 190KM\n\n✔️ Skrzynia biegów: Automatyczna\n\n✔️ Rok produkcji : 2022\n\n✔️ Faktura VAT 23%\n\n✔️...",
  "descriptionHtml": "GRUPA MIRAI<br />\n<br />\nAUTORYZOWANY DEALER FORD OFERUJE:<br />\n<br />\nS-MAX<br />\n<br />\n✔️ Wersja wyposażenia: Titanium<br />\n<br />\n✔️ Silnik: 2.0 (Diesel) 190KM<br />\n<br />\n✔️ Skrzynia biegów: A...",
  "descriptionMarkdown": "GRUPA MIRAI\n\nAUTORYZOWANY DEALER FORD OFERUJE:\n\nS-MAX\n\n✔️ Wersja wyposażenia: Titanium\n\n✔️ Silnik: 2.0 (Diesel) 190KM\n\n✔️ Skrzynia biegów: Automatyczna\n\n✔️ Rok produkcji : 2022\n\n✔️ Faktura VAT 23%\n\n✔️...",
  "descriptionLength": 3948,
  "datePosted": "2026-06-01T10:38:19+02:00",
  "lastRefreshedAt": "2026-07-01T10:42:05+02:00",
  "pushedAt": "2026-06-25T10:37:00+02:00",
  "expiresAt": "2026-07-31T10:42:05+02:00",
  "categoryId": 189,
  "locationCity": "Tychy",
  "locationCityId": 17705,
  "locationRegion": "Śląskie",
  "locationRegionId": 6,
  "latitude": 50.1218,
  "longitude": 19.02,
  "isBusinessAccount": true,
  "listingStatus": "active",
  "offerType": "offer",
  "contactPhoneAvailable": true,
  "contactChatEnabled": true,
  "companyId": 23063449,
  "companyName": "Otomoto",
  "companyJoinedAt": "2013-05-01T08:32:22+02:00",
  "companyLastSeenAt": "2026-07-03T03:14:32+02:00",
  "companyIsB2C": false,
  "make": "Ford",
  "model": "S-Max",
  "year": 2022,
  "condition": "Nieuszkodzony",
  "mileageKm": 145000,
  "fuelType": "Diesel",
  "bodyType": "Minibus",
  "transmission": "Automatyczna",
  "color": "Czarny",
  "engineCapacityCc": 1997,
  "enginePowerHp": 190,
  "drivetrain": "Na przednie koła",
  "countryOrigin": "Polska",
  "rightHandDrive": false,
  "vin": "WF0JXXWPCJNU69177",
  "price": 82900,
  "priceCurrency": "PLN",
  "priceNegotiable": false,
  "priceArranged": false,
  "imageUrls": [
    "https://ireland.apollo.olxcdn.com:443/v1/files/rjmyd1g2kl4v-PL/image;s={width}x{height}",
    "https://ireland.apollo.olxcdn.com:443/v1/files/2a82ololjroo3-PL/image;s={width}x{height}",
    "https://ireland.apollo.olxcdn.com:443/v1/files/d90yzy5evxxz-PL/image;s={width}x{height}",
    "https://ireland.apollo.olxcdn.com:443/v1/files/84e08hurih123-PL/image;s={width}x{height}",
    "https://ireland.apollo.olxcdn.com:443/v1/files/ssmssryfn05e2-PL/image;s={width}x{height}",
    "... 3 more items"
  ],
  "imageCount": 8,
  "thumbUrls": [
    "https://ireland.apollo.olxcdn.com:443/v1/files/rjmyd1g2kl4v-PL/image;s={width}x{height}",
    "https://ireland.apollo.olxcdn.com:443/v1/files/2a82ololjroo3-PL/image;s={width}x{height}",
    "https://ireland.apollo.olxcdn.com:443/v1/files/d90yzy5evxxz-PL/image;s={width}x{height}",
    "https://ireland.apollo.olxcdn.com:443/v1/files/84e08hurih123-PL/image;s={width}x{height}",
    "https://ireland.apollo.olxcdn.com:443/v1/files/ssmssryfn05e2-PL/image;s={width}x{height}",
    "... 3 more items"
  ],
  "sellerType": "business",
  "sellerId": 23063449,
  "sellerName": "Otomoto",
  "attributes": {
    "vin": "WF0JXXWPCJNU69177 ",
    "price": "82 900 zł",
    "model": "S-Max",
    "year": "2022 ",
    "petrol": "Diesel",
    "car_body": "Minibus",
    "color": "Czarny",
    "enginesize": "1 997 cm³",
    "condition": "Nieuszkodzony",
    "transmission": "Automatyczna",
    "country_origin": "Polska",
    "enginepower": "190 KM",
    "milage": "145 000 km",
    "drive": "Na przednie koła",
    "righthanddrive": "po lewej"
  },
  "scrapedAt": "2026-07-03T00:00:00Z",
  "source": "olx.pl",
  "contentQuality": "full",
  "detailFetched": false
}
```

### Incremental fields

When incremental mode is on, each record also carries:

- `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`, `REAPPEARED`, `EXPIRED`. Default output covers `NEW` / `UPDATED` / `REAPPEARED`; set `emitUnchanged: true` or `emitExpired: true` to opt into the others.
- `firstSeenAt`, `lastSeenAt` — ISO-8601 timestamps tracking the listing across runs.
- `isRepost`, `repostOfId`, `repostDetectedAt` — populated when a new listing matches the tracked content of a previously expired one. Set `skipReposts: true` to drop detected reposts from the output.

### How to scrape OLX

1. Go to [OLX Car Scraper](https://apify.com/blackfalcondata/olx-car-scraper?fpr=1h3gvi) in Apify Console.
2. Enter a search keyword and optional location filter.
3. Set `maxResults` to control how many results you need.
4. Click **Start** and wait for the run to finish.
5. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Extract listing data from OLX for market research and competitive analysis.
- Track pricing trends across regions and categories over time.
- Monitor new and changed vehicles on scheduled runs without processing the full dataset every time.
- Use structured location data for regional analysis, mapping, and geo-targeting.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.

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

OLX Car Scraper uses [pay-per-event](https://docs.apify.com/platform/actors/paid-actors/pay-per-event) pricing. You pay a small fee when the run starts and then for each result that is actually produced.

- **Run start:** $0.005 per run
- **Per result:** $0.002 per listing record

Example costs:

- 10 results: **$0.025**
- 25 results: **$0.055**
- 100 results: **$0.21**
- 200 results: **$0.41**
- 500 results: **$1**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of vehicles that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 200 results per run, daily polling (30 runs/month). Event-pricing examples scale linearly with result count.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.41 | $0.03 | $0.38 (94%) | $0.75 |
| 15% — moderate broad query | $0.41 | $0.07 | $0.34 (84%) | $1.95 |
| 30% — high-volume aggregator | $0.41 | $0.13 | $0.28 (69%) | $3.75 |

Full re-scrape monthly cost at daily polling: $12.15. First month with incremental costs $1.13 / $2.29 / $4.03 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage (compute and proxies) is billed separately by Apify based on actual consumption. Incremental runs consume less on result processing, though fixed per-run overhead stays the same.

### FAQ

#### How many results can I get from OLX?

The number of results depends on the search query and available vehicles on OLX. Use the `maxResults` parameter to control how many results are returned per run.

#### Does OLX Car Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed vehicles on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate OLX Car Scraper with other apps?

Yes. OLX Car Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use OLX Car Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use OLX Car Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode, `descriptionMaxLength`, a single `descriptionFormat`, and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape OLX?

This actor extracts publicly available data from OLX. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/olx-car-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [🚗 mobile.de \[$1/1K💰\] Fast Scraper · Finance · Dealer GPS](https://apify.com/blackfalcondata/mobile-de-scraper?fpr=1h3gvi) — Scrape mobile.de — Germany's largest car marketplace (1.4M+ listings) at $1 / 1,000 results. Full.
- [AutoScout24 Scraper — European Car Listings with Dealer Data](https://apify.com/blackfalcondata/autoscout24-scraper?fpr=1h3gvi) — Scrape autoscout24.com — Europe's largest used-car marketplace with 770K+ listings across 8.
- [Autotrader AU \[$0.9💰\] Car & Caravan Scraper 🇦🇺](https://apify.com/blackfalcondata/autotrader-au-scraper?fpr=1h3gvi) — Scrape autotrader.com.au car & caravan listings — advertised + previous price with a computed.
- [Autotrader Canada Scraper — Car & Truck Listings + Dealers](https://apify.com/blackfalcondata/autotrader-ca-scraper?fpr=1h3gvi) — Scrape autotrader.ca — Canada's largest car marketplace. Get structured make/model/year/price.
- [Autotrader UK \[$0.75💰/1K\] - Car Scraper, Full Detail](https://apify.com/blackfalcondata/autotrader-uk-scraper?fpr=1h3gvi) — Scrape UK car listings from Auto Trader by make, model, price, year, mileage, fuel, and body type..
- [Bilbasen Scraper - Denmark’s Car Marketplace](https://apify.com/blackfalcondata/bilbasen-scraper?fpr=1h3gvi) — Scrape bilbasen.dk, Denmark’s largest car marketplace, with full vehicle specs, seller contacts,.
- [Coches.net Scraper — Used Cars, Vans & Motorbikes in Spain](https://apify.com/blackfalcondata/coches-scraper?fpr=1h3gvi) — Coches.net Scraper — scrape car, van, motorhome, classic & motorcycle listings from Spain's largest.
- [DBA Scraper - Denmark’s Largest Marketplace](https://apify.com/blackfalcondata/dba-listings-scraper?fpr=1h3gvi) — Scrape dba.dk — Denmark's largest classifieds platform. Covers both marketplace and vehicle.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi\&fp_sid=ctarich) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

# Actor input Schema

## `country` (type: `string`):

OLX country site to scrape. Poland (olx.pl) only for the passenger-car vertical in this release.

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

Free-text keyword(s) matched against listing titles (e.g. "uszkodzony", "zamiana", "faktura VAT"). Use a JSON array \["q1", "q2"] to batch multiple keywords in one run. Leave empty to browse the full market or rely on the structured filters below.

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

Paste an OLX car search-results URL straight from your browser (e.g. olx.pl/motoryzacja/samochody/... with any filters already applied in the URL). Each URL becomes its own task; results merge and dedupe with everything else in the run.

## `make` (type: `array`):

Vehicle make(s), e.g. "Ford", "Volkswagen", "BMW". Common aliases are recognized ("vw" → Volkswagen, "mercedes" → Mercedes-Benz). Each make also narrows the search to its OLX subcategory for faster, more precise results. Add several to search multiple makes in one run.

## `model` (type: `array`):

Model(s) within the selected make(s), e.g. "focus", "golf", "a4". Free text — only narrows results when it matches OLX's own model value for that make. Leave empty to include every model.

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

Minimum production year (inclusive).

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

Maximum production year (inclusive).

## `priceMin` (type: `integer`):

Minimum asking price in PLN (inclusive).

## `priceMax` (type: `integer`):

Maximum asking price in PLN (inclusive).

## `mileageMax` (type: `integer`):

Only listings with mileage at or below this value (kilometers).

## `enginePowerMin` (type: `integer`):

Minimum engine power in horsepower (inclusive).

## `enginePowerMax` (type: `integer`):

Maximum engine power in horsepower (inclusive).

## `fuelType` (type: `array`):

Filter by one or more fuel types.

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

Filter by transmission type.

## `bodyType` (type: `array`):

Filter by one or more body types.

## `color` (type: `array`):

Filter by one or more exterior colors.

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

Filter by accident/damage condition.

## `countryOrigin` (type: `string`):

Filter by the country the vehicle was originally registered/imported from.

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

Filter by private sellers or business/dealer listings.

## `rightHandDrive` (type: `boolean`):

Set true to include only right-hand-drive (import) cars, false to include only left-hand-drive. Leave unset to include both.

## `carUrls` (type: `array`):

Paste individual OLX car-listing URLs directly (e.g. https://www.olx.pl/d/oferta/...-CIDxxx-IDyyyyyy.html). Bypasses search entirely — each URL is fetched and tracked on its own, with a 30-day not-found cache in incremental mode.

## `cityId` (type: `integer`):

OLX numeric city ID (e.g. 17871 = Warszawa). Trump card — when set, cityName, lat/lon are ignored. Most users should leave this empty and use cityName instead.

## `cityName` (type: `string`):

City name (e.g. "Warszawa", "Kraków"). Resolved to OLX city ID via the Polish city dictionary. Ignored if cityId is set.

## `region` (type: `string`):

Filter to a single Polish voivodeship (e.g. "Mazowieckie", "Śląskie", "Małopolskie"). Accepts the region name (diacritic-insensitive, e.g. "slaskie") or its numeric region ID. If you ALSO set a City, the two intersect: the city must lie inside the region or you'll get zero results.

## `lat` (type: `number`):

GPS latitude. Pair with lon. Ignored if cityId or cityName is set. Resolved to nearest known OLX city by GPS-bbox or distance tiers (5/20/50km).

## `lon` (type: `number`):

GPS longitude. Pair with lat.

## `radiusKm` (type: `integer`):

Search radius in kilometers around the resolved city. 0–500. OLX-native unit. Mutually exclusive with radiusMiles.

## `radiusMiles` (type: `integer`):

Search radius in miles. Converted to OLX km internally. Mutually exclusive with radiusKm.

## `allowLowConfidence` (type: `boolean`):

When true, accept fuzzy-match or GPS-within-50km city resolutions instead of failing. Default false (fail loudly to prevent silent wrong-city results).

## `compactKeepResolvedLocation` (type: `boolean`):

By default, compact mode omits resolvedLocation. Set true to keep it for audit even in compact output.

## `distance` (type: `integer`):

Legacy distance field in km. Deprecated — use radiusKm instead. Kept for back-compat with existing runs.

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

Maximum total items to emit. 0 = unlimited — emits every listing that matches your filters, which on a broad or whole-market search can be many thousands. Because you are billed per result, an unlimited run's cost scales with how many listings match — set a number here to cap how much a single run can cost.

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

Cap pagination at this many SERP pages per task (0 = unlimited).

## `includeKeywords` (type: `object`):

Post-fetch filter: only emit listings whose title or description contains at least one of these keywords. Example: { "keywords": \["bezwypadkowy", "serwisowany"], "matchTitle": true, "matchDescription": true }.

## `excludeKeywords` (type: `object`):

Post-fetch filter: drop listings whose title or description contains any of these keywords. Same shape as includeKeywords.

## `fromDate` (type: `string`):

ISO date (YYYY-MM-DD) — drop listings posted before this date.

## `toDate` (type: `string`):

ISO date (YYYY-MM-DD) — drop listings posted after this date.

## `maxAgeMinutes` (type: `integer`):

Drop listings older than N minutes (0 = no limit). Useful for tight monitoring loops.

## `customFilters` (type: `array`):

Array of {field, op, value} rules applied to each output record. Operators: includes, notIncludes, equals, notEquals, gt, gte, lt, lte.

## `descriptionMaxLength` (type: `integer`):

Truncate description to N chars. 0 = no truncation.

## `descriptionFormat` (type: `string`):

`all` keeps every variant (default). `text` / `html` / `markdown` keep only one.

## `compact` (type: `boolean`):

Emit only core fields (for AI-agent / MCP workflows).

## `excludeEmptyFields` (type: `boolean`):

Drop null / empty-string / empty-array fields from each record.

## `incrementalMode` (type: `boolean`):

Track changes between runs. Compares prior state and emits only NEW / UPDATED / EXPIRED entries — and flags price drops on UPDATED listings.

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

Stable identifier for the tracked search universe. Auto-generated if empty.

## `emitUnchanged` (type: `boolean`):

Also emit unchanged listings (incrementalMode only).

## `emitExpired` (type: `boolean`):

Also emit expired listings (incrementalMode only).

## `skipReposts` (type: `boolean`):

Skip listings whose content matches an expired listing from a prior run.

## `telegramToken` (type: `string`):

Bot token from @BotFather.

## `telegramChatId` (type: `string`):

Chat or channel ID.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL.

## `whatsappAccessToken` (type: `string`):

WhatsApp Cloud API token.

## `whatsappPhoneNumberId` (type: `string`):

Your WhatsApp Business phone-number ID.

## `whatsappTo` (type: `string`):

Recipient phone in E.164 without +.

## `webhookUrl` (type: `string`):

Receives JSON POST with {metadata, items} after each run.

## `webhookHeaders` (type: `object`):

Custom headers, e.g. {"Authorization":"Bearer ..."}.

## `notificationLimit` (type: `integer`):

Maximum listings per notification message.

## `notifyOnlyChanges` (type: `boolean`):

In incremental mode, only notify for NEW + UPDATED.

## `includeRunMetadata` (type: `boolean`):

Add matchedStartUrls provenance to each record (when startUrls mode).

## Actor input object example

```json
{
  "country": "PL",
  "startUrls": [],
  "carUrls": [],
  "allowLowConfidence": false,
  "compactKeepResolvedLocation": false,
  "maxResults": 5,
  "maxPages": 0,
  "maxAgeMinutes": 0,
  "customFilters": [],
  "descriptionMaxLength": 0,
  "descriptionFormat": "all",
  "compact": false,
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "skipReposts": false,
  "notificationLimit": 5,
  "notifyOnlyChanges": false,
  "includeRunMetadata": false
}
```

# Actor output Schema

## `results` (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 = {
    "maxResults": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/olx-car-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 = { "maxResults": 5 }

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/olx-car-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "maxResults": 5
}' |
apify call blackfalcondata/olx-car-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=blackfalcondata/olx-car-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "OLX Car Scraper — Poland Car Listings",
        "description": "Scrape car listings from OLX — make, model, year, mileage, price, and photos. Includes seller contact details and city/region location, plus incremental price-drop tracking across runs.",
        "version": "0.1",
        "x-build-id": "bm2qtsetsGJwX2BQ5"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/blackfalcondata~olx-car-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-blackfalcondata-olx-car-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/blackfalcondata~olx-car-scraper/runs": {
            "post": {
                "operationId": "runs-sync-blackfalcondata-olx-car-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/blackfalcondata~olx-car-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-blackfalcondata-olx-car-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "country": {
                        "title": "🌍 Country",
                        "enum": [
                            "PL"
                        ],
                        "type": "string",
                        "description": "OLX country site to scrape. Poland (olx.pl) only for the passenger-car vertical in this release.",
                        "default": "PL"
                    },
                    "query": {
                        "title": "🔍 Search Term(s)",
                        "type": "string",
                        "description": "Free-text keyword(s) matched against listing titles (e.g. \"uszkodzony\", \"zamiana\", \"faktura VAT\"). Use a JSON array [\"q1\", \"q2\"] to batch multiple keywords in one run. Leave empty to browse the full market or rely on the structured filters below."
                    },
                    "startUrls": {
                        "title": "🔗 Search-Result URLs",
                        "type": "array",
                        "description": "Paste an OLX car search-results URL straight from your browser (e.g. olx.pl/motoryzacja/samochody/... with any filters already applied in the URL). Each URL becomes its own task; results merge and dedupe with everything else in the run.",
                        "items": {
                            "type": "string"
                        },
                        "default": []
                    },
                    "make": {
                        "title": "🚗 Make",
                        "type": "array",
                        "description": "Vehicle make(s), e.g. \"Ford\", \"Volkswagen\", \"BMW\". Common aliases are recognized (\"vw\" → Volkswagen, \"mercedes\" → Mercedes-Benz). Each make also narrows the search to its OLX subcategory for faster, more precise results. Add several to search multiple makes in one run.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "model": {
                        "title": "🚘 Model",
                        "type": "array",
                        "description": "Model(s) within the selected make(s), e.g. \"focus\", \"golf\", \"a4\". Free text — only narrows results when it matches OLX's own model value for that make. Leave empty to include every model.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "yearMin": {
                        "title": "📅 Year From",
                        "minimum": 1900,
                        "maximum": 2030,
                        "type": "integer",
                        "description": "Minimum production year (inclusive)."
                    },
                    "yearMax": {
                        "title": "📅 Year To",
                        "minimum": 1900,
                        "maximum": 2030,
                        "type": "integer",
                        "description": "Maximum production year (inclusive)."
                    },
                    "priceMin": {
                        "title": "💰 Price From (PLN)",
                        "minimum": 0,
                        "maximum": 10000000,
                        "type": "integer",
                        "description": "Minimum asking price in PLN (inclusive)."
                    },
                    "priceMax": {
                        "title": "💰 Price To (PLN)",
                        "minimum": 0,
                        "maximum": 10000000,
                        "type": "integer",
                        "description": "Maximum asking price in PLN (inclusive)."
                    },
                    "mileageMax": {
                        "title": "🛣️ Max Mileage (km)",
                        "minimum": 0,
                        "maximum": 2000000,
                        "type": "integer",
                        "description": "Only listings with mileage at or below this value (kilometers)."
                    },
                    "enginePowerMin": {
                        "title": "🐎 Engine Power From (hp)",
                        "minimum": 0,
                        "maximum": 2000,
                        "type": "integer",
                        "description": "Minimum engine power in horsepower (inclusive)."
                    },
                    "enginePowerMax": {
                        "title": "🐎 Engine Power To (hp)",
                        "minimum": 0,
                        "maximum": 2000,
                        "type": "integer",
                        "description": "Maximum engine power in horsepower (inclusive)."
                    },
                    "fuelType": {
                        "title": "⛽ Fuel Type",
                        "type": "array",
                        "description": "Filter by one or more fuel types.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "petrol",
                                "diesel",
                                "electric",
                                "plugin-hybrid",
                                "lpg",
                                "cng"
                            ],
                            "enumTitles": [
                                "Petrol",
                                "Diesel",
                                "Electric",
                                "Plug-in hybrid",
                                "LPG",
                                "CNG"
                            ]
                        }
                    },
                    "transmission": {
                        "title": "⚙️ Transmission",
                        "enum": [
                            "manual",
                            "automatic"
                        ],
                        "type": "string",
                        "description": "Filter by transmission type."
                    },
                    "bodyType": {
                        "title": "🚙 Body Type",
                        "type": "array",
                        "description": "Filter by one or more body types.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "sedan",
                                "estate-car",
                                "hatchback",
                                "coupe",
                                "cabriolet",
                                "suv",
                                "off-road-vehicle",
                                "mvp",
                                "minibus",
                                "pickup"
                            ],
                            "enumTitles": [
                                "Sedan",
                                "Estate car / Wagon",
                                "Hatchback",
                                "Coupe",
                                "Cabriolet / Convertible",
                                "SUV",
                                "Off-road / 4x4",
                                "MPV / Minivan",
                                "Minibus",
                                "Pickup"
                            ]
                        }
                    },
                    "color": {
                        "title": "🎨 Color",
                        "type": "array",
                        "description": "Filter by one or more exterior colors.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "bialy",
                                "czarny",
                                "szary",
                                "srebrny",
                                "niebieski",
                                "czerwony",
                                "zielony",
                                "brazowy_bezowy",
                                "zolty_zloty",
                                "inny"
                            ],
                            "enumTitles": [
                                "White",
                                "Black",
                                "Grey",
                                "Silver",
                                "Blue",
                                "Red",
                                "Green",
                                "Brown / Beige",
                                "Yellow / Gold",
                                "Other"
                            ]
                        }
                    },
                    "condition": {
                        "title": "✨ Condition",
                        "enum": [
                            "notdamaged",
                            "damaged"
                        ],
                        "type": "string",
                        "description": "Filter by accident/damage condition."
                    },
                    "countryOrigin": {
                        "title": "🌐 Country of Origin",
                        "enum": [
                            "pl",
                            "d",
                            "f",
                            "gb",
                            "i",
                            "usa",
                            "nl",
                            "b",
                            "a",
                            "cz",
                            "sk",
                            "s",
                            "n",
                            "dk",
                            "fi",
                            "est",
                            "lv",
                            "lt",
                            "h",
                            "hu",
                            "hr",
                            "si",
                            "bg",
                            "ro",
                            "ru",
                            "ua",
                            "by",
                            "ch",
                            "jp",
                            "cdn",
                            "tr",
                            "irl",
                            "is",
                            "li",
                            "l",
                            "mc",
                            "gr",
                            "others"
                        ],
                        "type": "string",
                        "description": "Filter by the country the vehicle was originally registered/imported from."
                    },
                    "sellerType": {
                        "title": "👤 Seller Type",
                        "enum": [
                            "private",
                            "business"
                        ],
                        "type": "string",
                        "description": "Filter by private sellers or business/dealer listings."
                    },
                    "rightHandDrive": {
                        "title": "🚦 Right-Hand Drive",
                        "type": "boolean",
                        "description": "Set true to include only right-hand-drive (import) cars, false to include only left-hand-drive. Leave unset to include both."
                    },
                    "carUrls": {
                        "title": "🔗 Listing URLs",
                        "type": "array",
                        "description": "Paste individual OLX car-listing URLs directly (e.g. https://www.olx.pl/d/oferta/...-CIDxxx-IDyyyyyy.html). Bypasses search entirely — each URL is fetched and tracked on its own, with a 30-day not-found cache in incremental mode.",
                        "items": {
                            "type": "string"
                        },
                        "default": []
                    },
                    "cityId": {
                        "title": "📍 City ID (advanced)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "OLX numeric city ID (e.g. 17871 = Warszawa). Trump card — when set, cityName, lat/lon are ignored. Most users should leave this empty and use cityName instead."
                    },
                    "cityName": {
                        "title": "🏙️ City Name",
                        "type": "string",
                        "description": "City name (e.g. \"Warszawa\", \"Kraków\"). Resolved to OLX city ID via the Polish city dictionary. Ignored if cityId is set."
                    },
                    "region": {
                        "title": "🗺️ Region",
                        "type": "string",
                        "description": "Filter to a single Polish voivodeship (e.g. \"Mazowieckie\", \"Śląskie\", \"Małopolskie\"). Accepts the region name (diacritic-insensitive, e.g. \"slaskie\") or its numeric region ID. If you ALSO set a City, the two intersect: the city must lie inside the region or you'll get zero results."
                    },
                    "lat": {
                        "title": "🌐 Latitude",
                        "minimum": -90,
                        "maximum": 90,
                        "type": "number",
                        "description": "GPS latitude. Pair with lon. Ignored if cityId or cityName is set. Resolved to nearest known OLX city by GPS-bbox or distance tiers (5/20/50km)."
                    },
                    "lon": {
                        "title": "🌐 Longitude",
                        "minimum": -180,
                        "maximum": 180,
                        "type": "number",
                        "description": "GPS longitude. Pair with lat."
                    },
                    "radiusKm": {
                        "title": "📏 Search Radius (km)",
                        "minimum": 0,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Search radius in kilometers around the resolved city. 0–500. OLX-native unit. Mutually exclusive with radiusMiles."
                    },
                    "radiusMiles": {
                        "title": "📏 Search Radius (miles)",
                        "minimum": 0,
                        "maximum": 310,
                        "type": "integer",
                        "description": "Search radius in miles. Converted to OLX km internally. Mutually exclusive with radiusKm."
                    },
                    "allowLowConfidence": {
                        "title": "🔓 Allow Low-Confidence Resolutions",
                        "type": "boolean",
                        "description": "When true, accept fuzzy-match or GPS-within-50km city resolutions instead of failing. Default false (fail loudly to prevent silent wrong-city results).",
                        "default": false
                    },
                    "compactKeepResolvedLocation": {
                        "title": "🗺️ Keep resolvedLocation in Compact Mode",
                        "type": "boolean",
                        "description": "By default, compact mode omits resolvedLocation. Set true to keep it for audit even in compact output.",
                        "default": false
                    },
                    "distance": {
                        "title": "🎯 Distance — DEPRECATED (use radiusKm)",
                        "minimum": 0,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Legacy distance field in km. Deprecated — use radiusKm instead. Kept for back-compat with existing runs."
                    },
                    "maxResults": {
                        "title": "💯 Max Results",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum total items to emit. 0 = unlimited — emits every listing that matches your filters, which on a broad or whole-market search can be many thousands. Because you are billed per result, an unlimited run's cost scales with how many listings match — set a number here to cap how much a single run can cost.",
                        "default": 50
                    },
                    "maxPages": {
                        "title": "📄 Max Pages",
                        "minimum": 0,
                        "maximum": 50,
                        "type": "integer",
                        "description": "Cap pagination at this many SERP pages per task (0 = unlimited).",
                        "default": 0
                    },
                    "includeKeywords": {
                        "title": "✅ Include Keywords",
                        "type": "object",
                        "description": "Post-fetch filter: only emit listings whose title or description contains at least one of these keywords. Example: { \"keywords\": [\"bezwypadkowy\", \"serwisowany\"], \"matchTitle\": true, \"matchDescription\": true }."
                    },
                    "excludeKeywords": {
                        "title": "❌ Exclude Keywords",
                        "type": "object",
                        "description": "Post-fetch filter: drop listings whose title or description contains any of these keywords. Same shape as includeKeywords."
                    },
                    "fromDate": {
                        "title": "📅 From Date",
                        "type": "string",
                        "description": "ISO date (YYYY-MM-DD) — drop listings posted before this date."
                    },
                    "toDate": {
                        "title": "📅 To Date",
                        "type": "string",
                        "description": "ISO date (YYYY-MM-DD) — drop listings posted after this date."
                    },
                    "maxAgeMinutes": {
                        "title": "⏱️ Max Age (minutes)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Drop listings older than N minutes (0 = no limit). Useful for tight monitoring loops.",
                        "default": 0
                    },
                    "customFilters": {
                        "title": "🔧 Custom Filters",
                        "type": "array",
                        "description": "Array of {field, op, value} rules applied to each output record. Operators: includes, notIncludes, equals, notEquals, gt, gte, lt, lte.",
                        "default": []
                    },
                    "descriptionMaxLength": {
                        "title": "✂️ Description Max Length",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Truncate description to N chars. 0 = no truncation.",
                        "default": 0
                    },
                    "descriptionFormat": {
                        "title": "📝 Description Format",
                        "enum": [
                            "all",
                            "text",
                            "html",
                            "markdown"
                        ],
                        "type": "string",
                        "description": "`all` keeps every variant (default). `text` / `html` / `markdown` keep only one.",
                        "default": "all"
                    },
                    "compact": {
                        "title": "📦 Compact Output",
                        "type": "boolean",
                        "description": "Emit only core fields (for AI-agent / MCP workflows).",
                        "default": false
                    },
                    "excludeEmptyFields": {
                        "title": "🧹 Exclude Empty Fields",
                        "type": "boolean",
                        "description": "Drop null / empty-string / empty-array fields from each record.",
                        "default": false
                    },
                    "incrementalMode": {
                        "title": "♻️ Incremental Mode",
                        "type": "boolean",
                        "description": "Track changes between runs. Compares prior state and emits only NEW / UPDATED / EXPIRED entries — and flags price drops on UPDATED listings.",
                        "default": false
                    },
                    "stateKey": {
                        "title": "🔑 State Key",
                        "type": "string",
                        "description": "Stable identifier for the tracked search universe. Auto-generated if empty."
                    },
                    "emitUnchanged": {
                        "title": "♻️ Emit Unchanged",
                        "type": "boolean",
                        "description": "Also emit unchanged listings (incrementalMode only).",
                        "default": false
                    },
                    "emitExpired": {
                        "title": "⚰️ Emit Expired",
                        "type": "boolean",
                        "description": "Also emit expired listings (incrementalMode only).",
                        "default": false
                    },
                    "skipReposts": {
                        "title": "🚫 Skip Reposts",
                        "type": "boolean",
                        "description": "Skip listings whose content matches an expired listing from a prior run.",
                        "default": false
                    },
                    "telegramToken": {
                        "title": "🔑 Telegram Bot Token",
                        "type": "string",
                        "description": "Bot token from @BotFather."
                    },
                    "telegramChatId": {
                        "title": "💬 Telegram Chat ID",
                        "type": "string",
                        "description": "Chat or channel ID."
                    },
                    "discordWebhookUrl": {
                        "title": "🎮 Discord Webhook URL",
                        "type": "string",
                        "description": "Discord incoming webhook URL."
                    },
                    "slackWebhookUrl": {
                        "title": "💼 Slack Webhook URL",
                        "type": "string",
                        "description": "Slack incoming webhook URL."
                    },
                    "whatsappAccessToken": {
                        "title": "📱 WhatsApp Access Token",
                        "type": "string",
                        "description": "WhatsApp Cloud API token."
                    },
                    "whatsappPhoneNumberId": {
                        "title": "📞 WhatsApp Phone Number ID",
                        "type": "string",
                        "description": "Your WhatsApp Business phone-number ID."
                    },
                    "whatsappTo": {
                        "title": "📲 WhatsApp Recipient",
                        "type": "string",
                        "description": "Recipient phone in E.164 without +."
                    },
                    "webhookUrl": {
                        "title": "🪝 Generic Webhook URL",
                        "type": "string",
                        "description": "Receives JSON POST with {metadata, items} after each run."
                    },
                    "webhookHeaders": {
                        "title": "📋 Webhook Headers",
                        "type": "object",
                        "description": "Custom headers, e.g. {\"Authorization\":\"Bearer ...\"}."
                    },
                    "notificationLimit": {
                        "title": "📊 Max Listings Per Notification",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Maximum listings per notification message.",
                        "default": 5
                    },
                    "notifyOnlyChanges": {
                        "title": "🔄 Notify Only New/Updated",
                        "type": "boolean",
                        "description": "In incremental mode, only notify for NEW + UPDATED.",
                        "default": false
                    },
                    "includeRunMetadata": {
                        "title": "🧾 Include Run Metadata",
                        "type": "boolean",
                        "description": "Add matchedStartUrls provenance to each record (when startUrls mode).",
                        "default": false
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
