# Marktplaats Scraper — Netherlands Classifieds Extractor (`fervent_bus/marktplaats-scraper`) Actor

Extract listings from Marktplaats.nl: titles, prices, locations, descriptions, images from cars, real estate, electronics & more. 8M monthly traffic site. Works with Claude, ChatGPT, AI agents via Apify MCP. Perfect for price monitoring, market research & deal hunting across 25+ categories.

- **URL**: https://apify.com/fervent\_bus/marktplaats-scraper.md
- **Developed by:** [Archit Khurana](https://apify.com/fervent_bus) (community)
- **Categories:** E-commerce, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## 🇳🇱 Marktplaats Scraper — Netherlands Classifieds Data Extractor

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-00d4ff?style=flat-square)](https://apify.com/fervent_bus/marktplaats-scraper)
[![Python](https://img.shields.io/badge/Python-3.11-blue?style=flat-square\&logo=python)](https://www.python.org/)
[![AI Integration](https://img.shields.io/badge/AI-Claude%20%7C%20ChatGPT-purple?style=flat-square)](https://claude-code.nousresearch.com/)
[![MCP Compatible](https://img.shields.io/badge/MCP-Compatible-green?style=flat-square)](https://modelcontextprotocol.io/)

Extract high-quality listings data from **Marktplaats.nl**, the Netherlands' largest online marketplace with 8M+ monthly visitors. Perfect for price monitoring, market research, competitive analysis, and inventory tracking across cars, real estate, electronics, furniture, and 20+ other categories.

### 🎯 Features

- **🔍 Smart Search** — Search by keywords, category, location, and price range
- **📊 Rich Data** — Extract titles, prices, locations, descriptions, images, seller info, and timestamps
- **🌍 All Categories** — Cars, real estate, electronics, furniture, clothing, sports, and more
- **⚡ Fast & Reliable** — Static HTML extraction (no browser needed), handles pagination automatically
- **🤖 AI Agent Ready** — Works seamlessly with Claude, ChatGPT, and MCP-compatible tools
- **💰 Cost Effective** — $0.005 per result, no proxy required

### 📋 What You Get

Each listing includes:

| Field | Description | Example |
|-------|-------------|---------|
| **title** | Listing title/name | "iPhone 15 Pro Max 256GB Zwart" |
| **price** | Price in euros | "€ 1.150" |
| **location** | City/region | "Amsterdam" |
| **category** | Product category | "Telecommunicatie" |
| **description** | Item description | "Nieuw in doos, 1 jaar garantie..." |
| **imageUrl** | Main product image | "https://..." |
| **url** | Direct listing link | "https://marktplaats.nl/a/..." |
| **sellerId** | Seller identifier | "u12345678" |
| **postedDate** | When posted | "Vandaag, 14:23" |
| **scrapedAt** | Extraction timestamp | "2026-08-31T12:00:00Z" |

### 🚀 Quick Start

#### Basic Search

```json
{
  "searchQuery": "laptop",
  "location": "amsterdam",
  "maxResults": 50
}
```

#### Category + Price Filter

```json
{
  "category": "auto-s",
  "location": "rotterdam",
  "priceMin": 5000,
  "priceMax": 15000,
  "sortBy": "price-asc",
  "maxResults": 100
}
```

#### Real Estate Search

```json
{
  "searchQuery": "appartement",
  "category": "huizen-en-kamers",
  "location": "utrecht",
  "sortBy": "date",
  "maxResults": 30
}
```

### 🤖 AI Integration

Perfect for AI agents and automation:

#### Claude Desktop (MCP)

```json
{
  "mcpServers": {
    "apify": {
      "command": "npx",
      "args": ["-y", "@apify/mcp-server-apify"],
      "env": {
        "APIFY_API_TOKEN": "your_token_here"
      }
    }
  }
}
```

Then ask Claude:

> "Find the cheapest laptops in Amsterdam on Marktplaats under €500"

#### ChatGPT Actions

Use the Apify API endpoint:

```
https://api.apify.com/v2/acts/fervent_bus~marktplaats-scraper/runs
```

#### Python Integration

```python
from apify_client import ApifyClient

client = ApifyClient("your_token")

run = client.actor("fervent_bus/marktplaats-scraper").call(
    run_input={
        "searchQuery": "macbook",
        "location": "amsterdam",
        "maxResults": 20
    }
)

items = client.dataset(run["defaultDatasetId"]).list_items().items
for item in items:
    print(f"{item['title']} - {item['price']} - {item['url']}")
```

### 📝 Input Parameters

| Parameter | Type | Required | Description | Example |
|-----------|------|----------|-------------|---------|
| `searchQuery` | String | No | Keywords to search | "vintage furniture" |
| `category` | String | No | Category filter (see list below) | "auto-s" |
| `location` | String | No | City or region | "amsterdam" |
| `priceMin` | Integer | No | Minimum price (€) | 100 |
| `priceMax` | Integer | No | Maximum price (€) | 1000 |
| `sortBy` | String | No | Sort order (relevance/date/price-asc/price-desc) | "date" |
| `maxResults` | Integer | Yes | Max listings to scrape | 50 |
| `proxyConfiguration` | Object | No | Proxy settings (optional) | {} |

#### Available Categories

- `alle-categorien` — All Categories
- `auto-s` — Cars
- `huizen-en-kamers` — Real Estate
- `computers-en-software` — Computers & Software
- `telecommunicatie` — Phones & Tablets
- `audio-tv-en-foto` — Audio, TV & Photo
- `huis-en-inrichting` — Home & Interior
- `tuin-en-terras` — Garden & Patio
- `kleding-dames` — Women's Clothing
- `kleding-heren` — Men's Clothing
- `sport-en-fitness` — Sports & Fitness
- `fietsen-en-brommers` — Bikes & Scooters
- And 15+ more categories!

### 💡 Use Cases

- **🔎 Price Monitoring** — Track price changes for products you want to buy
- **📊 Market Research** — Analyze pricing trends and product availability
- **🏪 Competitive Analysis** — Monitor competitor listings and pricing
- **🤖 AI Shopping Assistants** — Build Claude/ChatGPT tools to find deals
- **📈 Inventory Tracking** — Monitor what's available in your niche
- **📍 Location-Based Insights** — Compare prices across Dutch cities
- **🎯 Deal Hunting** — Find underpriced items automatically

### ⚡ Performance

- **Speed**: ~100-200 listings per minute
- **No proxy needed**: Site works perfectly without proxies
- **Cost**: $0.005 per result + $0.05 per run
- **Example**: 100 results = $0.55 total cost

### 🛠️ Technical Details

- **Method**: HTTP + BeautifulSoup (static HTML parsing)
- **Language**: Python 3.11
- **Memory**: 1024 MB recommended
- **Protection**: None (public site, no blocking)
- **Pagination**: Automatic (up to 20 pages)

### 📞 Support & Issues

- **GitHub**: [roshtarg-cpu/marktplaats-scraper](https://github.com/roshtarg-cpu/marktplaats-scraper)
- **Apify Store**: [fervent\_bus/marktplaats-scraper](https://apify.com/fervent_bus/marktplaats-scraper)

### 📜 License

This actor is provided as-is for data extraction purposes. Please respect Marktplaats.nl's terms of service and use responsibly.

***

**Built with ❤️ for AI agents, developers, and data enthusiasts**

Compatible with Claude Desktop, ChatGPT, and all Apify MCP integrations.

# Actor input Schema

## `searchQuery` (type: `string`):

Keywords to search for (e.g., 'iphone 15', 'vintage furniture', 'bmw 3 series')

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

Marktplaats category to search within

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

City or region in the Netherlands (e.g., 'amsterdam', 'rotterdam', 'utrecht')

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

Filter listings by minimum price in euros (optional)

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

Filter listings by maximum price in euros (optional)

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

How to sort the search results

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

Maximum number of listings to scrape

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

Apify proxy settings (optional - site works without proxy)

## Actor input object example

```json
{
  "searchQuery": "laptop",
  "category": "alle-categorien",
  "location": "amsterdam",
  "priceMax": 1000,
  "sortBy": "relevance",
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": 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 = {
    "searchQuery": "laptop",
    "category": "alle-categorien",
    "location": "amsterdam",
    "priceMin": 0,
    "priceMax": 1000,
    "sortBy": "relevance",
    "maxResults": 10,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("fervent_bus/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 = {
    "searchQuery": "laptop",
    "category": "alle-categorien",
    "location": "amsterdam",
    "priceMin": 0,
    "priceMax": 1000,
    "sortBy": "relevance",
    "maxResults": 10,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("fervent_bus/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 '{
  "searchQuery": "laptop",
  "category": "alle-categorien",
  "location": "amsterdam",
  "priceMin": 0,
  "priceMax": 1000,
  "sortBy": "relevance",
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call fervent_bus/marktplaats-scraper --silent --output-dataset

```

## MCP server setup

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