# marktplaats.nl Listings Scraper Netherlands (`blackfalcondata/marktplaats-nl-scraper`) Actor

Scrape marktplaats.nl listings by keyword, category or postcode, with car year, mileage and fuel type. Each row carries title, price and city with seller type and photos. Large searches are read in full, ready for spreadsheets and price alerts.

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

## Pricing

from $0.90 / 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.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### What does marktplaats.nl Listings Scraper Netherlands do?

marktplaats.nl Listings Scraper Netherlands extracts structured product data from [marktplaats.nl](https://marktplaats.nl) — including descriptions, prices, and location data. It supports keyword search, location filters, and controllable result limits, so you can run the same query consistently over time.

**New to Apify?** [Sign up free](https://console.apify.com/sign-up?fpr=1h3gvi) and use the included $5 monthly platform credit to test this actor.

### Key features

- **💵 Structured pricing:** structured `price` and `currency` on every product — numbers you can sort and compare without parsing price text.
- **🏪 Seller details:** `sellerId` and `sellerName` identify who sells each product.
- **🚗 Vehicle details:** `make`, `model`, `year` and `fuelType` on each product as separate fields.
- **📍 Coordinates:** `latitude` and `longitude` on each product that has a location, ready for a map.
- **🖼️ Images:** `image` and `images` with every image URL, not just the thumbnail.
- **🗂️ Category path:** `category` place each product in marktplaats.nl's own category tree.
- **🔍 Keyword search:** search marktplaats.nl by keyword with the `query` input, in the place you name in `location`.
- **🔗 Paste-mode:** paste marktplaats.nl URLs into `startUrls` to scrape exactly the pages you picked in the browser.
- **🗂️ Category filter:** narrow a run to one category with the `category` input.
- **♻️ Incremental mode:** daily runs emit only listings that are new or whose price/condition changed since last run. Perfect for inventory-diff dashboards and competitive pricing alerts. Saves 80–95% on recurring monitoring.
- **🔔 Notifications:** telegram / Slack / Discord / WhatsApp / webhook alerts on each run. Combine with incremental to ping only when prices or inventory actually move.

### What data can you extract from marktplaats.nl?

Each result includes Core product fields (`input`, `site`, `position`, `listingId`, `url`, `portalUrl`, `title`, and `category`, and more) and extended fields (`description` and `detailFetched`). In standard mode, 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:

- **`query`** — Listing search keywords, e.g. "bmw", "racefiets", "iphone 15". Use a JSON array for several searches in one run, e.g. \["bmw","audi"]. Optional when a category is chosen. Required if no category, no startUrls and no seller IDs are provided.
- **`category`** — Limit the search to one top-level category, e.g. Auto's. With a category and no search term, the whole category is returned. Leave empty to search all categories.
- **`location`** — Dutch postcode to search around, e.g. "3511" (Utrecht) or "1012AB" (Amsterdam). Leave empty to search all of the Netherlands. Accepts 4 digits or 4 digits plus 2 letters (spaces are ignored); the search radius defaults to 10 km when a postcode is given (see Search Radius). This marketplace filters by postcode — city names and coordinates are not accepted.
- **`maxResults`** — Maximum total results (0 = unlimited). Large searches are read completely, not just the first few thousand. (default: `100`)
- **`startUrls`** — Paste raw search URLs from the target site: search pages, category and sub-category pages, single listings and seller pages (…/u/<name>/<number>/). Each URL becomes its own search task; results are merged and deduped by listing ID across all URLs. Filters set in a pasted URL (price, condition, delivery, sub-category, sort, "offered since", …) are kept for that URL; the Search filters below fill whatever the URL does not set. When provided, startUrls REPLACE the query/location fields (each supported URL becomes one task; unsupported URLs are skipped, and if none is supported the run stops with an input error). Seller IDs are added on top. (default: `[]`)
- **`descriptionMaxLength`** — Truncate description to N chars. 0 = no truncation. (default: `0`)
- **`compact`** — Core fields only (for AI-agent/MCP workflows). (default: `false`)
- **`excludeEmptyFields`** — Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards. (default: `false`)
- **`incrementalMode`** — Compare against previous run state. stateKey is optional — defaults to a value derived from search inputs (queries, locations, startUrls, country) so different filter sets never share state. (default: `false`)
- **`stateKey`** — Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from search inputs.
- **`skipReposts`** — When incremental, skip listings whose content matches an expired listing from a prior run (cross-run duplicate detection). (default: `false`)
- **`emitUnchanged`** — When incremental mode is on, also emit listings whose content has not changed since the last run. (default: `false`)
- ...and 26 more parameters

### Input examples

**Basic search** — Keyword-driven search with a result cap.

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

```json
{
  "query": "bmw",
  "maxResults": 50
}
```

**Incremental tracking** — Only emit products that changed since the previous run with this `stateKey`.

→ First run builds the baseline state. Subsequent runs emit only records that are new or whose tracked content changed. Set `emitUnchanged: true` to include unchanged records as well.

```json
{
  "query": "bmw",
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "bmw-tracker"
}
```

**Compact filtered output** — Combine filters with compact mode for a lightweight AI-agent or MCP data source.

→ Core fields only — ideal for piping into LLMs or downstream tools without token overhead.

```json
{
  "query": "bmw",
  "category": "91",
  "maxResults": 50,
  "compact": true
}
```

### Output

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

### Example product record

```json
{
  "input": "iphone 13",
  "site": "marktplaats.nl",
  "position": 1,
  "listingId": "457227c574f89483b7340250fa506d82273e6b229e56f4521f7f3ea70d24cfd0",
  "url": "https://www.marktplaats.nl/v/telecommunicatie/mobiele-telefoons-apple-iphone/m2458835838-als-nieuwe-iphone-13-pro-max-128-gb-graphite",
  "portalUrl": "https://www.marktplaats.nl/v/telecommunicatie/mobiele-telefoons-apple-iphone/m2458835838-als-nieuwe-iphone-13-pro-max-128-gb-graphite",
  "title": "Als nieuwe iPhone 13 Pro Max 128 GB Graphite",
  "description": "Te koop: een zo goed als nieuwe iphone 13 pro max met 128b opslag in de kleur graphite. De batterijconditie is uitstekend met 97%. Het toestel is simlockvrij en wordt zonder abonnement aangeboden. Er...",
  "category": "mobile_phones_apple_iphone",
  "subcategory": "telecommunication",
  "categoryId": 1953,
  "price": 350,
  "priceType": "MIN_BID",
  "currency": "EUR",
  "condition": "Zo goed als nieuw",
  "delivery": "Ophalen of Verzenden",
  "shippingAvailable": true,
  "attributes": {
    "condition": "Zo goed als nieuw",
    "delivery": "Ophalen of Verzenden",
    "battery health": "97 %",
    "storage": "128 GB",
    "color": "Zwart"
  },
  "city": "Utrecht",
  "listedOn": "Vandaag",
  "isAdmarkt": false,
  "isTopAd": true,
  "isUrgent": false,
  "isReserved": false,
  "hasVideo": false,
  "image": "https://images.marktplaats.com/api/v1/hz-mp-pro-listing/images/93f6e1d4-88ca-4a6f-937b-840e954958c0?rule=ecg_mp_eps$_83.jpg",
  "images": [
    "https://images.marktplaats.com/api/v1/hz-mp-pro-listing/images/93f6e1d4-88ca-4a6f-937b-840e954958c0?rule=ecg_mp_eps$_83.jpg"
  ],
  "status": "active",
  "scrapedAt": "2026-10-31T20:49:23.150Z",
  "listingKey": "m2458835838",
  "country": "Nederland",
  "latitude": 52.079986727743,
  "longitude": 5.0903560005966,
  "sellerId": "60296290",
  "sellerName": "Oliver",
  "sellerVerified": false,
  "sellerHasWebsite": false,
  "searchQuery": "iphone 13",
  "contentQuality": "full",
  "detailFetched": false,
  "source": "marktplaats.nl",
  "contentHash": "4c2a318c614afd08b157aafd5a567bdb9278f7d0b06a79816391a251ae39194d"
}
```

### 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.
- `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 marktplaats.nl

1. Go to [marktplaats.nl Listings Scraper Netherlands](https://apify.com/blackfalcondata/marktplaats-nl-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 product data from marktplaats.nl for market research and competitive analysis.
- Track pricing trends across regions and categories over time.
- Monitor new and changed products 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 marktplaats.nl?

marktplaats.nl Listings Scraper Netherlands 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.00005 per run
- **Per result:** $0.0009 per product record

Example costs:

- 10 results: **$0.00904**
- 25 results: **$0.023**
- 100 results: **$0.09**
- 200 results: **$0.18**
- 500 results: **$0.45**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of products 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: 250 products per run, daily polling (30 runs/month). Costs scale linearly with the number of products.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.23 | $0.01 | $0.21 (95%) | $0.34 |
| 15% — moderate broad query | $0.23 | $0.03 | $0.19 (85%) | $1.01 |
| 30% — high-volume aggregator | $0.23 | $0.07 | $0.16 (70%) | $2.03 |

Full re-scrape monthly cost at the same cadence: $6.75. First month with incremental costs $0.55 / $1.21 / $2.18 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage is included in the per-result fee shown above.

**Run limits**: A run stops on its own after 12 hours if you set no timeout or a timeout longer than 12 hours. It also stops if it finds no new results for 60 minutes. Results collected before the stop are saved in your dataset.

### FAQ

#### How many results can I get from marktplaats.nl?

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

#### Does marktplaats.nl Listings Scraper Netherlands support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed products 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 marktplaats.nl Listings Scraper Netherlands with other apps?

Yes. marktplaats.nl Listings Scraper Netherlands 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 marktplaats.nl Listings Scraper Netherlands 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 marktplaats.nl Listings Scraper Netherlands 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 marktplaats.nl?

This actor extracts publicly available data from marktplaats.nl. 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/marktplaats-nl-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [🚗 mobile.de \[$0.59/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 $0.6 / 1,000 results. Get.
- [1688.com Product Search Scraper](https://apify.com/blackfalcondata/1688-com-scraper?fpr=1h3gvi) — Search 1688.com wholesale products by keyword and export price, minimum order quantity and sales.
- [2dehands.be Listings Scraper Belgium](https://apify.com/blackfalcondata/2dehands-be-scraper?fpr=1h3gvi) — Scrape 2dehands.be listings by keyword, category or postcode, with car year, mileage and fuel type..
- [ALDI Scraper — Grocery Prices, 14 Countries](https://apify.com/blackfalcondata/aldi-scraper?fpr=1h3gvi) — Scrape ALDI grocery products and prices across 14 countries — the UK, Ireland, Germany, Austria,.
- [ALDI US Scraper — Grocery Prices by ZIP Code](https://apify.com/blackfalcondata/aldi-us-scraper?fpr=1h3gvi) — Scrape aldi.us grocery products with prices, sizes, brands, categories, per-unit pricing and stock..
- [Alibaba.com Product & Supplier Scraper \[Just 💰$0.63\]](https://apify.com/blackfalcondata/alibaba-com-scraper?fpr=1h3gvi) — Scrape alibaba.com — product listings by keyword or supplier country with price range, minimum.
- [Allegro.pl Scraper \[💰$0.72\] — Product Offers, Prices & Sellers](https://apify.com/blackfalcondata/allegro-pl-scraper?fpr=1h3gvi) — Scrape allegro.pl search results into structured offer rows: price, discount and delivery cost,.
- [Amazon All Countries Scraper](https://apify.com/blackfalcondata/amazon-all-countries-scraper?fpr=1h3gvi) — Scrape Amazon products from 22 marketplaces by keyword or pasted search URL, with ASIN, title,.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi) — 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).

### Disclaimer

This actor accesses only publicly available data on marktplaats.nl. You are responsible for how you use the extracted data — in particular any personal information such as names, phone numbers, or email addresses — and for complying with marktplaats.nl Listings Scraper Netherlands's terms of use, applicable data-protection law (including the GDPR where it applies), and the anti-spam rules of your jurisdiction.

This actor is an independent tool and is not affiliated with, endorsed by, or sponsored by marktplaats.nl Listings Scraper Netherlands or any of its subsidiaries. All trademarks mentioned are the property of their respective owners.

### Search keywords

marktplaats scraper, marktplaats api, apify marktplaats, marktplaats data extraction, marktplaats.nl listings scraper netherlands scraper, marktplaats.nl listings scraper netherlands api, apify marktplaats.nl listings scraper netherlands, marktplaats.nl listings scraper netherlands data extraction, marktplaats.nl scraper, marktplaats.nl data, marktplaats.nl api.

# Changelog

This Actor's version history is a separate document: https://apify.com/blackfalcondata/marktplaats-nl-scraper/changelog.md

# Actor input Schema

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

Listing search keywords, e.g. "bmw", "racefiets", "iphone 15". Use a JSON array for several searches in one run, e.g. \["bmw","audi"]. Optional when a category is chosen. Required if no category, no startUrls and no seller IDs are provided.

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

Limit the search to one top-level category, e.g. Auto's. With a category and no search term, the whole category is returned. Leave empty to search all categories.

## `location` (type: `string`):

Dutch postcode to search around, e.g. "3511" (Utrecht) or "1012AB" (Amsterdam). Leave empty to search all of the Netherlands. Accepts 4 digits or 4 digits plus 2 letters (spaces are ignored); the search radius defaults to 10 km when a postcode is given (see Search Radius). This marketplace filters by postcode — city names and coordinates are not accepted.

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

Maximum total results (0 = unlimited). Large searches are read completely, not just the first few thousand.

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

Paste raw search URLs from the target site: search pages, category and sub-category pages, single listings and seller pages (…/u/<name>/<number>/). Each URL becomes its own search task; results are merged and deduped by listing ID across all URLs. Filters set in a pasted URL (price, condition, delivery, sub-category, sort, "offered since", …) are kept for that URL; the Search filters below fill whatever the URL does not set. When provided, startUrls REPLACE the query/location fields (each supported URL becomes one task; unsupported URLs are skipped, and if none is supported the run stops with an input error). Seller IDs are added on top.

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

Truncate description to N chars. 0 = no truncation.

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

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

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

Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.

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

Compare against previous run state. stateKey is optional — defaults to a value derived from search inputs (queries, locations, startUrls, country) so different filter sets never share state.

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

Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from search inputs.

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

When incremental, skip listings whose content matches an expired listing from a prior run (cross-run duplicate detection).

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

When incremental mode is on, also emit listings whose content has not changed since the last run.

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

When incremental mode is on, also emit listings that were seen before but are no longer found. While Offered since is set, nothing is reported as expired: a listing older than the window is usually still for sale.

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

When Incremental Mode is on, only send notifications for NEW and UPDATED listings. Has no effect outside incremental mode.

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

Maximum number of listings included in each notification message (1–20).

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

Telegram bot token (from @BotFather). Required for Telegram notifications.

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

Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.

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

Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.

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

Slack incoming webhook URL. api.slack.com/messaging/webhooks.

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

Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set.

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

WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (service-conversation window — free since Nov 2024).

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

Recipient phone in E.164 format without + (e.g. "436641234567"). Recipient must have messaged your business number within last 24h.

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

Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends.

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

Optional JSON object of custom headers (e.g. {"Authorization":"Bearer ..."}).

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results (including any contact details). Best-effort across MCP connectors as Apify expands its catalog.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one.

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

Choose which representation of the listing description to include. `all` keeps every variant; the others keep only the selected one.

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

Search radius in kilometres around the postcode. Only used together with a postcode; defaults to 10 km when a postcode is given.

## `sellerIds` (type: `array`):

Return the listings of specific sellers: seller IDs (e.g. 12345678) or seller page URLs (…/u/<name>/12345678/). Each seller is searched on its own and added to any search term, category or start URL above; results are merged and deduped. Works without a search term. Price, condition, delivery, offered-since and sort filters apply to sellers too; category and postcode do not.

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

Only listings priced at or above this amount, in whole euros. Listings without a fixed price (bidding, free, see description) are left out whenever a price filter is set.

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

Only listings priced at or below this amount, in whole euros.

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

Only listings in this condition. Leave empty for any condition.

## `delivery` (type: `string`):

Only listings offered with this delivery method. Leave empty for any.

## `offeredSince` (type: `string`):

Only listings placed within this period. Leave empty for any time.

## `searchInTitleAndDescription` (type: `boolean`):

Match the search term in the listing description as well as the title.

## `l2CategoryId` (type: `integer`):

Limit the search to one sub-category of the chosen Category, by its numeric ID (e.g. 1953 = Apple iPhone under Telecommunicatie). Requires a Category. Pasting a sub-category page in Start URLs does this for you.

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

Order of the results. Newest first needs Date (with Decreasing). Note: in very large searches (more than 2,000 results, all of them requested) the site's order cannot be kept, because those are read in price slices. Leave empty for the site's default order.

## `sortOrder` (type: `string`):

Direction for Sort by. Defaults to Decreasing for Date and Increasing for Price.

## Actor input object example

```json
{
  "query": "bmw",
  "category": "91",
  "maxResults": 100,
  "startUrls": [],
  "descriptionMaxLength": 0,
  "compact": false,
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "skipReposts": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "notifyOnlyChanges": false,
  "notificationLimit": 5,
  "descriptionFormat": "all",
  "sellerIds": [],
  "condition": "",
  "delivery": "",
  "offeredSince": "",
  "searchInTitleAndDescription": false,
  "sortBy": "",
  "sortOrder": ""
}
```

# 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 = {
    "query": "bmw",
    "category": "91",
    "maxResults": 100,
    "excludeEmptyFields": false,
    "descriptionFormat": "all"
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/marktplaats-nl-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 = {
    "query": "bmw",
    "category": "91",
    "maxResults": 100,
    "excludeEmptyFields": False,
    "descriptionFormat": "all",
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/marktplaats-nl-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 '{
  "query": "bmw",
  "category": "91",
  "maxResults": 100,
  "excludeEmptyFields": false,
  "descriptionFormat": "all"
}' |
apify call blackfalcondata/marktplaats-nl-scraper --silent --output-dataset

```

## MCP server setup

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