# Marktplaats Scraper — Netherlands Classifieds & Ads (`axery/marktplaats-search-scraper`) Actor

Scrape Marktplaats.nl classifieds, cars, electronics & second-hand items with clean numeric prices, seller info, and images.

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

## Pricing

from $1.50 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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.nl Search Scraper

Turn the Netherlands' #1 classifieds marketplace into clean, analysis-ready datasets. Search [Marktplaats.nl](https://www.marktplaats.nl) by keyword, category, or Dutch postcode across second-hand electronics, cars, furniture, and real estate.

**Pure HTTP. No headless browser overhead. Fast, lightweight, and reliable.**

***

### ⚡ What makes this different

| | Raw Marktplaats HTML / Blobs | What this Actor gives you |
|---|---|---|
| **Price** | Buried in cents or nested objects (`priceCents: 45000`) | Clean float: `450.0` ready to filter, calculate, and sort |
| **Price Model** | Raw strings (`MIN_BID`, `SEE_DESCRIPTION`) | Standardized `priceType` (`FIXED`, `MIN_BID`, `FREE`) |
| **Location** | Nested Dutch city map | Flat object: `cityName`, `latitude`, `longitude`, `country` |
| **Images** | Protocol-relative `//images...` with size parameters | Direct full-resolution CDN URLs + thumbnail |
| **Seller** | Raw seller blob | Clean `sellerId`, `sellerName`, `isVerified` |
| **Attributes** | Array of nested objects | Normalized key-value map (`condition`, `delivery`, etc.) |

***

### 💼 What you can build with it

- **Second-hand Arbitrage & Deal Sourcing:** Monitor iPhones, MacBooks, GPUs, cameras, and watches the moment they are posted below market price.
- **Used Car Market Intelligence:** Track asking prices for used cars across the Netherlands, filter by year/mileage/brand, and detect price drops.
- **Competitor & Dealer Monitoring:** Group by `seller.sellerId` to track a professional dealer's inventory over time.
- **Housing & Rental Supply:** Track apartments and houses for rent/sale in Amsterdam, Rotterdam, Utrecht, etc.

***

### 📥 Input Parameters

```json
{
  "queries": ["iphone 15 pro", "volkswagen golf"],
  "sortBy": "SORT_INDEX",
  "sortOrder": "DECREASING",
  "maxItems": 50
}
```

| Field | Type | Default | Description |
|---|---|---|---|
| `queries` | array | `["iphone"]` | One or more search terms. Each runs independently. |
| `sortBy` | string | `SORT_INDEX` | `SORT_INDEX` (Date/Newest), `PRICE` (Price), `OPTIMIZED` (Relevance). |
| `sortOrder` | string | `DECREASING` | `DECREASING` (Newest first / Highest price) or `INCREASING`. |
| `categoryId` | string | `null` | Optional numeric category ID (e.g. `91` for Autos). |
| `postcode` | string | `null` | Optional Dutch postcode (e.g. `1012 AB`) to narrow by location. |
| `distanceMeters` | integer | `null` | Search radius in meters (e.g. `10000` = 10km). |
| `maxItems` | integer | `100` | Max listings per query (`0` = all available). |
| `proxyConfiguration` | object | `null` | Apify Proxy settings (datacenter or residential). |

***

### 📤 Output Structure

Each listing in the default dataset is a clean, typed JSON record:

```json
{
  "itemId": "m2446514460",
  "url": "https://www.marktplaats.nl/v/telecommunicatie/mobiele-telefoons-apple-iphone/m2446514460-iphone-15-pro-128-gb-wit-titanium",
  "title": "iPhone 15 Pro 128 GB Wit Titanium",
  "description": "Te koop: een zo goed als nieuwe iphone 15 pro met 128 gb opslag...",
  "price": 450.0,
  "priceCents": 45000,
  "currency": "EUR",
  "priceType": "MIN_BID",
  "condition": "Zo goed als nieuw",
  "delivery": "Ophalen",
  "date": "Vandaag",
  "location": {
    "cityName": "Klazienaveen",
    "countryName": "Nederland",
    "countryAbbreviation": "NL",
    "latitude": 52.719671,
    "longitude": 6.993412
  },
  "seller": {
    "sellerId": 55854003,
    "sellerName": "Klein",
    "isVerified": false
  },
  "images": [
    "https://images.marktplaats.com/api/v1/hz-mp-pro-listing/images/b2a71dfa-5698-479a-aaa2-83d006548a27?rule=ecg_mp_eps$_85.jpg"
  ],
  "thumbnailUrl": "https://images.marktplaats.com/api/v1/hz-mp-pro-listing/images/b2a71dfa-5698-479a-aaa2-83d006548a27?rule=ecg_mp_eps$_82.jpg",
  "categoryId": 31,
  "attributes": {
    "condition": "Zo goed als nieuw",
    "delivery": "Ophalen"
  },
  "traits": [
    "DAG_TOPPER",
    "PACKAGE_FREE"
  ],
  "isReserved": false,
  "_query": "iphone"
}
```

# Actor input Schema

## `queries` (type: `array`):

One or more search keywords (e.g. 'iphone', 'volkswagen golf', 'macbook pro'). Leave empty to browse recent listings.

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

Single search keyword as fallback if queries array is not provided.

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

Order of search results.

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

Decreasing or increasing order.

## `categoryId` (type: `string`):

Optional numeric category ID on Marktplaats (e.g. 91 for Autos, 31 for Apple iPhone).

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

Optional Dutch postcode (e.g. 1012 AB) to search locally.

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

Radius around postcode in meters (e.g. 10000 for 10km).

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

Maximum number of listings to scrape per query (0 = unlimited).

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

Optional proxy settings. Marktplaats works well on datacenter/residential proxies.

## Actor input object example

```json
{
  "queries": [
    "iphone"
  ],
  "sortBy": "SORT_INDEX",
  "sortOrder": "DECREASING",
  "maxItems": 100
}
```

# Actor output Schema

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

Dataset containing output records.

# 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 = {
    "queries": [
        "iphone"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("axery/marktplaats-search-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 = { "queries": ["iphone"] }

# Run the Actor and wait for it to finish
run = client.actor("axery/marktplaats-search-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 '{
  "queries": [
    "iphone"
  ]
}' |
apify call axery/marktplaats-search-scraper --silent --output-dataset

```

## MCP server setup

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