# Marktplaats & 2dehands Scraper — Listings, Prices & Sellers (`jeffev/marktplaats-scraper`) Actor

Scrape Marktplaats.nl (Netherlands) and 2dehands.be (Belgium) listings by keyword with postcode radius, price range and sort: title, price and price type, city with coordinates, date, seller name and verification, attributes and photos.

- **URL**: https://apify.com/jeffev/marktplaats-scraper.md
- **Developed by:** [Jefferson Valandro](https://apify.com/jeffev) (community)
- **Categories:** E-commerce, Real estate
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.35 / 1,000 listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

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

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

## How to integrate an Actor?

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

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

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

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

# README

## Marktplaats & 2dehands Scraper — listings, prices & sellers

Scrape **Marktplaats.nl** (Netherlands) and **2dehands.be** (Belgium), the two biggest classifieds sites of the Benelux, which run on the same platform. Search by keyword with a **postcode radius, price range and sort order**, and get for each listing: title, **price and price type** (fixed, bidding, negotiable), description, **city with coordinates and distance**, date, **seller name, ID and verification**, attributes (brand, condition, size, delivery...) and photos.

Built for **resale and arbitrage, price monitoring, market research and B2B lead generation** in the Netherlands and Belgium.

### Why this one

- **Two countries, one actor**: switch between Marktplaats.nl and 2dehands.be.
- **Local searches**: postcode plus radius in km, with the distance of every listing.
- **Fast and cheap**: the site's own JSON, 100 listings per request, no browser and no proxy.
- **Clean attributes**: brand, condition, size and delivery options as a key/value object.

### Input

```json
{
  "searchQueries": ["gazelle fiets", "iphone 15"],
  "site": "marktplaats",
  "postcode": "1012AB",
  "distanceKm": 15,
  "minPrice": 100,
  "maxPrice": 600,
  "sort": "newest",
  "maxItemsPerSearch": 500
}
```

### Output (one item per listing)

| Field | Description |
|---|---|
| `itemId`, `title`, `url`, `description` | identity and text |
| `price`, `priceType`, `currency` | price (EUR) and type: FIXED, MIN_BID, BID, SEE_DESCRIPTION... |
| `city`, `country`, `latitude`, `longitude`, `distanceKm`, `date` | where and when |
| `sellerName`, `sellerId`, `sellerVerified`, `sellerHasWebsite` | seller |
| `attributes`, `categoryId`, `isPromoted`, `images` | details |

### Example output

One real item from a test run (long texts and lists shortened):

```json
{
  "type": "listing",
  "itemId": "m2448828667",
  "title": "Bombtrack Arise Tour - Quality Touringbike",
  "url": "https://www.2dehands.be/v/fietsen-en-brommers/fietsen-heren-sportfietsen-en-toerfietsen/m2448828667-bombtrack-arise-tour-quality-touringbike",
  "price": 1100,
  "priceType": "MIN_BID",
  "currency": "EUR",
  "description": "Bombtrack arise tour, maat l (179–190 cm), volledig uitgeruste reisfiets anderhalf jaar oud en weinig gebruikt, nooit lange afstanden mee gereden. Ik kocht h...",
  "city": "Schaarbeek",
  "country": "België",
  "latitude": 50.861857255044,
  "longitude": 4.3859987122908,
  "distanceKm": 2,
  "date": "Vandaag",
  "sellerName": "manuel",
  "sellerId": 35039161,
  "sellerVerified": false,
  "sellerHasWebsite": false,
  "attributes": {
    "delivery": "Ophalen",
    "condition": "Zo goed als nieuw"
  },
  "categoryId": 454,
  "isPromoted": true,
  "images": [
    "https://images.2dehands.com/api/v1/hz-twh-pro-listing/images/08a5d487-bf97-4bfb-b0e5-952cabd0dedb?rule=ecg_mp_eps$_85.jpg"
  ],
  "search": "velo",
  "site": "www.2dehands.be"
}
```

### How much does it cost?

You pay only for results delivered, at a fixed price per item. **Apify platform usage is included** in that price, so there are no compute costs on top. Errors and items that couldn't be found are free.

| What you get | Price | Example |
|---|---|---|
| Listing | $0.0005 each | 1,000 listings = $0.50 |

The Apify **Free plan includes $5 of monthly credit**, enough for about **10,000 listings** per month at no cost. You can also set a maximum spend per run.

On paid Apify plans it gets cheaper automatically: **10% off on Starter, 20% on Scale and 30% on Business**.

# Actor input Schema

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

What to search, one search per line (e.g. 'gazelle fiets', 'iphone 15', 'bank').

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

Which marketplace to search.

## `maxItemsPerSearch` (type: `integer`):

How many listings to return per keyword (100 per request).

## `sort` (type: `string`):

Order of the results.

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

Only listings near this postcode (e.g. 1012AB for Amsterdam, 1000 for Brussels).

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

Distance from the postcode, in kilometres.

## `minPrice` (type: `integer`):

Only listings at or above this price.

## `maxPrice` (type: `integer`):

Only listings at or below this price.

## `excludePromoted` (type: `boolean`):

Skip paid promoted listings (Dagtopper, Topadvertentie).

## Actor input object example

```json
{
  "searchQueries": [
    "gazelle fiets"
  ],
  "site": "marktplaats",
  "maxItemsPerSearch": 100,
  "sort": "relevance",
  "distanceKm": 10,
  "excludePromoted": false
}
```

# Actor output Schema

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

One item per listing.

# 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": [
        "gazelle fiets"
    ],
    "maxItemsPerSearch": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("jeffev/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": ["gazelle fiets"],
    "maxItemsPerSearch": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("jeffev/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": [
    "gazelle fiets"
  ],
  "maxItemsPerSearch": 100
}' |
apify call jeffev/marktplaats-scraper --silent --output-dataset

```

## MCP server setup

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