# Marktplaats Scraper - Netherlands & Belgium Classifieds (`fabrikit/marktplaats-scraper`) Actor

Scrape marktplaats.nl, 2dehands.be and 2ememain.be: search by keyword, category, postcode and price. Prices, locations, images, attributes, optional views and full texts. No login.

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

## Pricing

from $0.60 / 1,000 ad scrapeds

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 Scraper — Netherlands & Belgium Classifieds

Scrape **marktplaats.nl** (Netherlands) and its sister sites **2dehands.be** and **2ememain.be** (Belgium): bikes, cars, electronics, furniture, services, animals and everything else sold second-hand. Search by keyword, category, postcode + distance and price range, or paste a search URL. No login, no API key, no browser: plain fast HTTP.

### What you get

- Title, description snippet, price (number + price type: fixed, bidding, free, see description), location (city, country, coordinates), listing date, images, category, condition, delivery options and all other attributes.
- Seller type (`private` / `business`); businesses keep their trading name and seller id.
- Promotion and reservation flags.
- **Add-on "ad details"**: opens every ad page for the complete description, all images, view count, favourites count, exact listing timestamp and a reliable seller type.
- Searches with more results than the site's pagination allows (~3,000) are split by price range automatically; duplicates are removed.

### Privacy

Private sellers are people. For ads that are not clearly a business the Actor never outputs seller name or id, coordinates are rounded to about 1 km, and phone numbers / e-mail addresses in the free text are masked. Seller names that look like a person's name are withheld even for businesses.

### Input

| Field | Meaning |
|---|---|
| `site` | `marktplaats.nl`, `2dehands.be`, `2ememain.be`. |
| `searchQueries` | Keywords, one search each (e.g. `fiets`, `iphone 15`). |
| `startUrls` | Search URLs such as `https://www.marktplaats.nl/q/fiets/` or `/l/auto-s/`. |
| `category` | Main category name (`Fietsen en Brommers`) or numeric id (445). |
| `postcode`, `distanceKm` | Search around a postcode. |
| `priceMin`, `priceMax` | EUR. |
| `sellerType` | `all`, `private`, `business`. |
| `sortBy` | `newest`, `relevance`, `price_asc`, `price_desc`. |
| `includeDetails` | Add-on, see above. |
| `maxItems` | Total limit (default 50). |
| `proxyConfiguration` | Apify Proxy (default). Falls back to Dutch / Belgian residential IPs automatically if blocked. |

Example: electric bikes within 25 km of Amsterdam, 500-1500 EUR

```json
{
  "searchQueries": ["elektrische fiets"],
  "category": "Fietsen en Brommers",
  "postcode": "1011AB",
  "distanceKm": 25,
  "priceMin": 500,
  "priceMax": 1500,
  "maxItems": 300
}
```

### Output example

```json
{
  "id": "m2119107775",
  "url": "https://www.marktplaats.nl/v/fietsen-en-brommers/fietsen-dames-damesfietsen/m2119107775-dames-fietsen-heren-fietsen-oma-fietsen",
  "title": "Dames fietsen heren fietsen oma fietsen",
  "price": 99,
  "priceType": "FIXED",
  "currency": "EUR",
  "site": "marktplaats.nl",
  "categoryId": 447,
  "categoryName": "Fietsen | Dames | Damesfietsen",
  "city": "Amsterdam",
  "country": "Nederland",
  "listedDate": "2026-10-13",
  "condition": "Gebruikt",
  "delivery": "Ophalen of Verzenden",
  "sellerType": "business",
  "sellerName": "020-Fietsen B.V.",
  "imageCount": 3,
  "detailsFetched": false
}
```

### Pricing

| Event | When |
|---|---|
| Ad scraped (`listing-result`) | each ad saved |
| Ad details add-on (`listing-details`) | only with `includeDetails` |

See the Pricing tab for current prices; paid Apify plans get lower rates.

### FAQ

**Is it legal?** The Actor reads public pages that anyone can open without logging in and removes personal data of private sellers. You are responsible for how you use the data (site terms, GDPR).

**Why is `listedDate` only a day?** Search results only show "today / yesterday / 10 okt 26". Turn on `includeDetails` for the exact `listedAt` timestamp.

**How deep can I go?** The site stops paginating around 3,000 results per query; the Actor then splits by price range, so tens of thousands of ads per run are possible.

### Use cases

Resale and arbitrage research, price tracking per category, regional market analysis, dealer stock monitoring, lead lists of shops by category, alerts for new listings.

### En español

Scraper de **marktplaats.nl** (Países Bajos) y de **2dehands.be / 2ememain.be** (Bélgica), la misma plataforma. Busca por palabra clave, categoría, código postal + distancia y precio, o pega una URL de búsqueda. Sin login ni navegador. No entrega nombres de vendedores particulares y redondea sus coordenadas a ~1 km. Consulta la pestaña Pricing para ver los precios actuales; los planes de pago de Apify tienen tarifas más bajas.

# Actor input Schema

## `site` (type: `string`):

Which classifieds site to search. The three sites run on the same platform.

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

One search per keyword, e.g. fiets, iphone 15, bank. Leave empty to browse a whole category.

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

Paste marktplaats.nl / 2dehands.be / 2ememain.be search URLs, e.g. https://www.marktplaats.nl/q/fiets/ or https://www.marktplaats.nl/l/auto-s/. Each URL is scraped in full, up to the max items.

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

Optional. A main category name such as Fietsen en Brommers, Auto's: Onderdelen, Computers en Software, or its numeric id (445 = Fietsen en Brommers). Sub-categories also work but are filtered after loading.

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

Dutch postcode (e.g. 1011AB) or Belgian postcode (e.g. 1000) to search around. Needs a distance.

## `distanceKm` (type: `integer`):

Radius around the postcode in kilometres, e.g. 5, 10, 25, 50.

## `priceMin` (type: `number`):

Only ads priced at least this much.

## `priceMax` (type: `number`):

Only ads priced at most this much.

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

Businesses (shops, dealers) or private sellers. Business detection on search results is conservative; anything not clearly a business counts as private and never shows a seller name.

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

Order of the results. Newest first returns the freshest listings.

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

Stop after this many ads in total (across all searches).

## `includeDetails` (type: `boolean`):

Open every ad to get the complete description, all images, views, favourites, the exact listing date and a reliable seller type. Billed as a separate add-on event per ad and slower.

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

Apify Proxy is used by default. If datacenter IPs get blocked (HTTP 403), the Actor switches to Dutch or Belgian residential IPs automatically.

## Actor input object example

```json
{
  "site": "marktplaats.nl",
  "searchQueries": [
    "fiets"
  ],
  "sellerType": "all",
  "sortBy": "newest",
  "maxItems": 50,
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

All records collected during the run

# 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 = {
    "searchQueries": [
        "fiets"
    ],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("fabrikit/marktplaats-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 = {
    "searchQueries": ["fiets"],
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("fabrikit/marktplaats-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 '{
  "searchQueries": [
    "fiets"
  ],
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call fabrikit/marktplaats-scraper --silent --output-dataset

```

## MCP server setup

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