# Marktplaats + 2dehands + 2ememain Scraper (`goobertje/marktplaats-2dehands-scraper`) Actor

Marktplaats, 2dehands and 2ememain listings in one Actor: prices, attributes and business sellers, with new-listing and price-change monitoring. Private sellers are not identified. $0.75 per 1,000 listings.

- **URL**: https://apify.com/goobertje/marktplaats-2dehands-scraper.md
- **Developed by:** [goober](https://apify.com/goobertje) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.75 / 1,000 listing results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

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

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

## How to integrate an Actor?

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

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

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

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

# README

## Marktplaats + 2dehands + 2ememain Scraper

Get classifieds listings from **Marktplaats (Netherlands)**, **2dehands (Belgium, Dutch)** and **2ememain (Belgium, French)** with one Actor: prices, attributes, location, images and **business-seller details**. Use it for price monitoring, market research, reseller sourcing and dealer tracking. Schedule it with monitor mode to get **new listings and price changes** since the last run. Private sellers are not identified.

> **Independent tool.** Not affiliated with, endorsed by or sponsored by Marktplaats, 2dehands, 2ememain or Adevinta; the names are used only to say which sites are read. The Actor reads the public search results that the websites show to every visitor. You are responsible for using the data lawfully: check the websites' terms of use and applicable law, including the GDPR for any personal data you combine with this output. Listing text can still contain personal details the Actor cannot detect (for example a street address).

### Why use this Actor

- **The Netherlands and both Belgian languages in one Actor.** Search all three sites at once, or paste search URLs from your browser. 2dehands and 2ememain show the same Belgian listings, and each listing is delivered once.
- **$0.75 per 1,000 listings, no start fee.** For comparison, another Marktplaats-only Actor charged $1.50 per 1,000 listings plus a $0.005 start fee when checked on 22 November 2026. Prices change, so check before you decide.
- **Private sellers are not identified.** `sellerName`, `sellerId`, the seller's website, logo and profile link are returned **only for business sellers**. Phone numbers, e-mail addresses and profile links are removed from titles, descriptions and attributes for all listings, and a private seller's own name is removed from the listing text. A last runtime check withholds (and does not bill) any listing that would still expose a private seller.
- **Price-change monitoring that bills only the changes.** With monitor mode every listing is marked `new`, `price_changed` or `unchanged`, with `previousPriceEur` and `priceDeltaEur` (negative for a price drop). With *Only changes* on, unchanged listings are neither delivered nor billed, so a daily schedule costs only the new listings and price changes.
- **Big searches handled.** The Actor splits large searches into price bands automatically and removes duplicates (details under Limits).
- **Cost control.** Set a maximum cost per run in the Apify run options; the Actor stops cleanly when it is reached.

### Quick start

Click **Start** with the prefilled input: it returns 15 listings for "racefiets" from Marktplaats and 2dehands.

```json
{
  "sites": ["marktplaats.nl", "2dehands.be"],
  "query": "racefiets",
  "maxResults": 15
}
```

More examples:

```json
{ "sites": ["2dehands.be"], "categoryId": 91, "maxPriceEur": 5000, "sellerType": "business_only", "maxResults": 500 }
```

```json
{
  "startUrls": [
    { "url": "https://www.marktplaats.nl/q/volkswagen+golf/" },
    { "url": "https://www.2dehands.be/l/auto-s/#PriceCentsFrom:500000|sortBy:SORT_INDEX|sortOrder:DECREASING" }
  ],
  "maxResults": 1000
}
```

A daily "what is new or cheaper" feed (schedule it once per day; you are billed only for the changes):

```json
{ "sites": ["marktplaats.nl"], "query": "racefiets", "maxResults": 2000, "monitorMode": true, "onlyChanges": true, "stateStoreName": "racefiets-nl" }
```

### Sample output

One listing from a business seller in monitor mode (all values are invented for this example):

```json
{
  "itemId": "m2000000001",
  "site": "marktplaats.nl",
  "platform": "nl",
  "url": "https://www.marktplaats.nl/v/fietsen-en-brommers/racefietsen/m2000000001-racefiets-maat-56",
  "title": "Racefiets maat 56, aluminium frame",
  "description": "Goed onderhouden racefiets, nieuwe banden. Te bezichtigen na afspraak.",
  "priceEur": 425.0,
  "priceType": "FIXED",
  "categoryId": 1234,
  "l1CategoryId": 445,
  "attributes": [
    { "key": "condition", "value": "Gebruikt", "unit": null },
    { "key": "frameSize", "value": "56", "unit": "cm" }
  ],
  "extendedAttributes": [{ "key": "brand", "value": "Voorbeeld" }],
  "imageUrls": ["https://images.example.invalid/m2000000001/1.jpg"],
  "cityName": "Utrecht",
  "countryCode": "NL",
  "latitude": 52.091,
  "longitude": 5.122,
  "dateLabel": "Vandaag",
  "reserved": false,
  "priorityProduct": null,
  "sellerType": "business",
  "isBusinessSeller": true,
  "isVerified": true,
  "sellerName": "Voorbeeld Fietsen BV",
  "sellerId": "5000001",
  "sellerWebsiteUrl": "https://fietsen.example.invalid",
  "sellerLogoUrl": null,
  "sellerProfileUrl": "https://www.marktplaats.nl/u/x/5000001/",
  "sellerIdHash": "9f2c41d7a0b835e6",
  "changeType": "price_changed",
  "previousPriceEur": 475.0,
  "priceDeltaEur": -50.0,
  "firstSeenAt": "2026-11-20T08:00:00+00:00",
  "scrapedAt": "2026-11-22T08:00:00+00:00",
  "source": "search:marktplaats.nl"
}
```

For a private seller, `sellerName`, `sellerId`, `sellerWebsiteUrl`, `sellerLogoUrl` and `sellerProfileUrl` are `null` and `latitude`/`longitude` are rounded to 1 decimal; `sellerIdHash` is still filled. Outside monitor mode `changeType`, `previousPriceEur`, `priceDeltaEur` and `firstSeenAt` are `null`.

### What you get

One dataset row per listing. Unknown values are `null` (a price is `0` only for free items).

| Field | Meaning |
|---|---|
| `itemId`, `site`, `platform`, `url` | Listing id, the site it was read from, `nl` or `be`, and the link |
| `title`, `description` | Text with phone numbers, e-mail addresses and profile links removed (`description` is `null` if you turn it off) |
| `priceEur`, `priceType` | Price in EUR when the listing has a numeric price (`0` for free items); `null` for bidding-only, on-request and see-description listings. `priceType` is the site's own value (`FIXED`, `MIN_BID`, `FAST_BID`, `FREE`, `ON_REQUEST`, `SEE_DESCRIPTION`, `NOTK`) |
| `attributes`, `extendedAttributes` | Listing attributes such as construction year, mileage, fuel |
| `categoryId`, `l1CategoryId`, `imageUrls`, `reserved`, `priorityProduct` | Category ids, photo links, reserved flag, paid promotion (`null` when none) |
| `cityName`, `countryCode`, `latitude`, `longitude` | Location. Coordinates are rounded: 3 decimals for businesses, 1 decimal (about 11 km) for everyone else |
| `dateLabel` | Posting date as the site shows it. It is relative text (for example "Vandaag"), not a date: use `scrapedAt` and `firstSeenAt` for timestamps |
| `sellerType`, `isBusinessSeller`, `isVerified` | `business` = the seller has a website or a verified account. Everyone else is `unknown` and treated as private. `isVerified` is reported for every seller |
| `sellerName`, `sellerId`, `sellerWebsiteUrl`, `sellerLogoUrl`, `sellerProfileUrl` | **Business sellers only**, `null` otherwise |
| `sellerIdHash` | 16-character keyed hash of the seller id, identical in every run, for every seller that has an id. It cannot be reversed without the Actor's secret key |
| `changeType`, `previousPriceEur`, `priceDeltaEur`, `firstSeenAt` | Monitor mode only (`null` otherwise) |
| `scrapedAt`, `source` | Run start (ISO 8601, UTC) and the search or URL the listing came from |

In the Apify Console the dataset has two views: **Overview** (the main fields) and **Change fields** (the monitor-mode fields).

The run also saves a **summary** in the key-value store record `OUTPUT` (default store): per search the advertised result count, how many listings were collected, how many price bands were used and how many listings the API cut off; overall counts of delivered, unchanged, filtered and withheld listings, API usage and why the run stopped. In monitor mode the price history is kept in a separate **named store** (record `STATE`, name from `stateStoreName`).

### Input

| Field | Default | Notes |
|---|---|---|
| `sites` | Marktplaats + 2dehands | Applies to keyword and category searches. 2dehands and 2ememain are the same Belgian inventory and are delivered once |
| `query`, `categoryId` | | A search needs a keyword, one **top-level** category id, or a start URL. Examples: `91` cars, `445` bicycles and mopeds, `31` audio/TV/photo, `504` home and furnishing |
| `minPriceEur`, `maxPriceEur` | | In euros; minimum must not exceed maximum. Listings without a numeric price are left out when you set a range |
| `postcode` + `distanceMeters` | | Radius search (distance 1 to 200,000 meters). Both are needed |
| `sortBy` | auto | `auto` (newest first, but relevance order for `business_only`), `newest`, `relevance`, `price_asc`, `price_desc` |
| `sellerType` | all | `business_only`, `private_only` (always anonymised) or `all`. This is a filter; the dataset field `sellerType` is the resulting classification |
| `startUrls` | | Search URLs from your browser. Keyword, top-level category, price range, postcode radius and sort order are understood |
| `maxResults` | 100 | Total over all searches and sites. With *Only changes* on, unchanged listings still count here (it is a scan budget) |
| `monitorMode`, `onlyChanges` | off | See above. `onlyChanges` needs `monitorMode` |
| `stateStoreName`, `stateRetentionDays` | `marktplaats-2dehands-state`, 90 | Use a different store name for each saved search. Listings not seen for the retention period are forgotten and show as new again if they reappear |
| `includeDescription` | on | Turn off for a leaner dataset (`description` becomes `null`) |
| `maxRequestsPerSecond` | 1 | Per site, between 0.2 and 2 |
| `proxyConfiguration` | Apify datacenter proxy | Residential proxy is not needed |

### Pricing

**$0.75 per 1,000 listings** (pay per event: one `listing-result` event of $0.00075 per delivered listing). There is no start fee. You are not charged for: empty runs, invalid input, failures, duplicates, listings removed by `sellerType`, listings skipped by *Only changes*, or listings withheld by the privacy guard.

Example: the Quick start run of 15 listings costs 15 × $0.00075 = **$0.01125**. A run of 2,500 listings costs **$1.875**. The cost is simply the number of listings delivered times $0.00075.

A maximum cost per run counts delivered listings only: for example a cap of $0.00225 delivers exactly 3 listings and the run ends as Succeeded with a message saying the cap was reached.

### Use with AI agents (MCP, Claude, Cursor, n8n, Make)

AI agents can call this Actor through the Apify MCP server. Add it as a tool:

```json
{ "mcpServers": { "apify": { "url": "https://mcp.apify.com?tools=goobertje/marktplaats-2dehands-scraper" } } }
```

A typical call is `{"query": "racefiets", "sites": ["marktplaats.nl"], "maxResults": 10}`; the agent receives up to `maxResults` listing objects as in the sample above. Private sellers are not identified by name, id, website, logo or profile link, which keeps seller identities out of the data an agent receives. Free text and the city can still contain personal details (see Privacy and limits).

### Privacy and limits (please read)

- **Business detection is conservative.** A seller counts as a business only with a website or a verified account. On a test sample of 360 listings this recognized about 70% (Marktplaats) and 76% (2dehands/2ememain) of business sellers, and none of the 41 sellers it called a business was a private person. Businesses without a website or verification look private and are anonymised, so `business_only` misses some dealers. This is a measured rate on one sample, not a guarantee for every category.
- **Business detection depends on the sort order.** The sites only return a seller's website in relevance order, not in newest-first order. In a live check (2 pages per category, 22 Nov 2026) newest-first flagged between 0% and 16.5% of listings as business and relevance order between 0.5% and 57%, depending on the category and site (for example Marktplaats cars: 3% vs 16.5%; 2dehands audio/TV/photo: 3% vs 36%). That is why the default `sortBy: auto` uses relevance order whenever `sellerType` is `business_only` (and newest first otherwise). If you explicitly choose `newest` or a price order together with `business_only`, your choice is used and the run log warns that far fewer business sellers will be found. With newest-first, more businesses are treated as private (and anonymised), never the other way round. The 70%/76% figures above were measured in relevance order.
- **Private sellers.** Their name, id, website, logo and profile link are never output, and the Actor never opens seller profile pages. Their city and a coarse (about 11 km) coordinate are still included, and listing text may contain personal details that are not a phone number, e-mail address or profile link.
- **Some private listings are withheld.** In a live test of 895 private listings, 7 (0.8%) were withheld because the seller's name appears inside the listing's web address, which cannot be changed without breaking the link. They are not delivered and not billed; the run summary counts them as withheld by the privacy guard.
- **Search window.** Deep in a result list the sites' search API becomes unreliable (we saw empty or short pages from about 1,800 results on Marktplaats and 3,000 on 2dehands). The Actor therefore reads at most 1,500 listings per query and splits larger searches into price bands, lowest price first; your sort order applies inside each band. Listings **without a numeric price** are only reachable in searches small enough not to need splitting; the run summary shows how many were missed. Prices above EUR 1,000,000 are not reached in split searches.
- **Run ceilings.** A run stops after 3,000 API requests, or shortly before the Actor timeout, and says so in its final message; raise the timeout or narrow the search to get the rest.
- **Not supported:** sub-category filters and sub-category URLs (rejected with a clear message, because the sites' search API cannot filter by them), exact posting timestamps (the site only gives a relative label), seller-profile enrichment (planned).
- **Volume.** The Actor is polite by default (about 1 request per second per site, up to 100 listings per request). It has been tested on small and medium runs; very long, high-volume crawls are untested.
- **Running the code yourself.** `sellerIdHash` needs the environment variable `SELLER_HASH_SECRET`; without it a local run uses a random key and the hashes are not stable across runs.
- **Your responsibility.** See the note at the top: check the websites' terms and the law for your use case.

# Actor input Schema

## `sites` (type: `array`):

Which sites a keyword or category search runs on: Marktplaats (Netherlands), 2dehands (Belgium, Dutch) and 2ememain (Belgium, French). 2dehands and 2ememain show the same Belgian listings in two languages, and each listing is delivered once. Start URLs ignore this setting and use their own site. Default: Marktplaats and 2dehands.

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

Search term, for example "racefiets". Leave empty to search a whole category (set a category ID) or to use only start URLs. A search needs a keyword, a category ID or a start URL.

## `categoryId` (type: `integer`):

Top-level category id, the same on all three sites. Examples: 91 = Cars, 445 = Bicycles and mopeds, 31 = Audio, TV and photo, 504 = Home and furnishing. Leave empty to search by keyword only. Sub-categories are not supported.

## `minPriceEur` (type: `number`):

Only listings with a numeric price of at least this amount, in euros, for example 100. Leave empty for no lower limit. Must not be higher than the maximum price. Listings without a numeric price (bidding only, on request) are left out when a price range is set.

## `maxPriceEur` (type: `number`):

Only listings with a numeric price of at most this amount, in euros, for example 500. Leave empty for no upper limit.

## `postcode` (type: `string`):

Search around this postcode (for example 1011AB in the Netherlands or 9000 in Belgium). Leave empty for no location filter. Must be given together with a distance: a postcode alone does not filter.

## `distanceMeters` (type: `integer`):

Radius around the postcode in meters, between 1 and 200000, for example 5000 for 5 km. Leave empty for no location filter. Must be given together with a postcode.

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

Order within each search. Auto (default) = newest first, except that Seller type 'business_only' uses relevance order, because the sites only return a seller's website in relevance order and without it most business sellers are not recognized. Big searches are read in price bands, lowest band first, and this order applies inside each band. If you pick 'newest' or a price order together with 'business_only', your choice is used and the run log warns that far fewer business sellers will be found.

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

business_only = only listings from sellers recognized as businesses (a website or a verified account; in a 360-listing test sample this recognized about 70% of business sellers on Marktplaats and 76% on 2dehands, and the rest look private and are treated as private). private_only = only the rest, always without any seller identity. all = everything. Default: all. This is a filter; the dataset field sellerType is the resulting classification. With business_only the Sort order 'auto' uses relevance order automatically, because in newest-first order the sites do not return seller websites and most businesses are not recognized.

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

Paste search URLs straight from your browser (marktplaats.nl, 2dehands.be or 2ememain.be), for example https://www.marktplaats.nl/q/racefiets/ or https://www.2dehands.be/l/auto-s/#PriceCentsFrom:500000|sortBy:SORT_INDEX|sortOrder:DECREASING. Keyword, top-level category, price range, postcode radius and sort order are understood. A postcode without a distance (browsers add one from your saved location) and any unsupported filter are ignored with a warning in the run log. Sub-category URLs are rejected, because the search API cannot filter by them. Leave empty to use the keyword or category settings above.

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

Maximum number of listings collected in total over all searches and sites; the run stops once reached. Each delivered listing is billed. With 'only changes' on, unchanged listings count toward this limit (it is a scan budget) but are not delivered or billed, so raise it for a daily monitoring feed. A run also ends early at 3,000 API requests or shortly before the Actor timeout. Default: 100.

## `maxRequestsPerSecond` (type: `number`):

Politeness limit per site. Between 0.2 and 2. Default: 1.

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

Apify datacenter proxy is the default and is enough. Residential proxy is not needed.

## `monitorMode` (type: `boolean`):

Remember every listing's price in a named key-value store and mark each listing as new, price_changed or unchanged (with the previous price and the change in EUR). Use with a schedule.

## `onlyChanges` (type: `boolean`):

With monitor mode on: deliver only new listings and listings whose price changed. Unchanged listings are neither delivered nor billed. Needs monitor mode.

## `stateStoreName` (type: `string`):

Name of the persistent key-value store that holds the monitor state (record STATE). Use a different name for each saved search or schedule, otherwise they share one history. Lowercase letters, digits and hyphens only, 3 to 63 characters. Only used when monitor mode is on.

## `stateRetentionDays` (type: `integer`):

Monitor state entries not seen for this many days are dropped. A dropped listing shows as new again if it reappears. Default: 90.

## `includeDescription` (type: `boolean`):

Include the listing description text (phone numbers, e-mail addresses and profile links are always removed from it). Turn off for a leaner dataset.

## Actor input object example

```json
{
  "sites": [
    "marktplaats.nl",
    "2dehands.be"
  ],
  "query": "racefiets",
  "sortBy": "auto",
  "sellerType": "all",
  "maxResults": 15,
  "maxRequestsPerSecond": 1,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "monitorMode": false,
  "onlyChanges": false,
  "stateStoreName": "marktplaats-2dehands-state",
  "stateRetentionDays": 90,
  "includeDescription": true
}
```

# Actor output Schema

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

Listings from Marktplaats, 2dehands and 2ememain with prices, attributes and (for business sellers only) seller details.

## `changes` (type: `string`):

The monitor-mode fields (changeType, previous price, price change, first seen). With 'only changes' on, the dataset itself contains only new listings and price changes; this view just selects the fields.

# 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 = {
    "sites": [
        "marktplaats.nl",
        "2dehands.be"
    ],
    "query": "racefiets",
    "maxResults": 15,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("goobertje/marktplaats-2dehands-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 = {
    "sites": [
        "marktplaats.nl",
        "2dehands.be",
    ],
    "query": "racefiets",
    "maxResults": 15,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("goobertje/marktplaats-2dehands-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 '{
  "sites": [
    "marktplaats.nl",
    "2dehands.be"
  ],
  "query": "racefiets",
  "maxResults": 15,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call goobertje/marktplaats-2dehands-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,goobertje/marktplaats-2dehands-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/W0eOSMCfEc8d5zvCu/builds/PFhHz8ItQmbOah3be/openapi.json
