# Marktplaats.nl Scraper (`datascrapers/marktplaats-nl-scraper`) Actor

Scrapes Marktplaats.nl classified listings via the LRP search API with optional VIP listing details and seller enrichment.

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

## Pricing

from $1.20 / 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.nl Scraper** creates a structured dataset of classified listings collected from Marktplaats.nl. Each dataset item can include the listing id, title, euro price, city, seller, and image URLs. Query the source with a search phrase, category, postcode, or listing URL, control the result limit with maxItems, and retrieve records through the Apify Dataset API or export them as JSON, CSV, Excel, XML, or another supported format.

[![Marktplaats.nl Scraper — input to structured data](https://raw.githubusercontent.com/faizanalii/apify-actor-assets/main/marktplaats-nl-scraper/marktplaats-nl-scraper-value-demo.gif)](https://apify.com/datascrapers/marktplaats-nl-scraper)

### Dataset at a glance

| Property | Value |
|---|---|
| Source | marktplaats.nl |
| Record unit | One classified listing |
| Input methods | searchQuery, category ids, postcode, startUrls |
| Main identifiers | itemId, url |
| Delivery | Apify Dataset and API |
| Export formats | JSON, CSV, Excel, XML |
| Update model | Fresh records per Actor run |
| Pricing | $1.50 per 1,000 listings on the free plan |

### Coverage and available records

Supported queries are a search phrase, Marktplaats category ids, a Dutch postcode with distance, and listing or search URLs in startUrls. The default category is 91 and the default listing type is 10882. Car filters such as fuel, transmission, body, mileage, and construction year are sent only when you set them.

Search results include price, location, seller, and images. Set includeListingDetails to true to request the VIP listing payload for each result. That enrichment is a separate listing-details event. The Actor does not collect private messages, checkout, or account data.

maxItems defaults to 50. A value of 0 does not cap the run. Pagination follows the Marktplaats search response until the cap or the result list ends.

### Data dictionary

| Field | Type | Nullable | Description | Example |
|---|---|---:|---|---|
| itemId | string | no | Listing id. Use this field to deduplicate. | m2443361307 |
| title | string | yes | Listing title. | Opel Tigra 1.4 | Cabrio |
| url | string | yes | Public listing URL. | https://www.marktplaats.nl/v/auto-s/opel/m2443361307-opel-tigra-1-4-cabrio-carplay-leder-lange-apk |
| priceCents | number | yes | Price in euro cents when the site sends one. | 175000 |
| priceEur | number | yes | Price in euros. | 1750.0 |
| priceType | string | yes | Price label from the site, such as MIN_BID. | MIN_BID |
| city | string | yes | Seller city. | Dokkum |
| country | string | yes | Country code. | NL |
| sellerId | string | yes | Seller id. | |
| sellerName | string | yes | Seller display name. | Bosline Cars |
| sellerVerified | boolean | yes | Whether the site marks the seller verified. | false |
| imageUrls | array | yes | Image URLs on the listing. | |
| categoryId | number | yes | Marktplaats category id. | 138 |
| listingDetails | object | yes | VIP payload. Present when includeListingDetails is true and the page returns it. | |

### Example dataset record

```json
{
  "itemId": "m2443361307",
  "title": "Opel Tigra 1.4 | Cabrio | Carplay | Leder | Lange-APK |",
  "url": "https://www.marktplaats.nl/v/auto-s/opel/m2443361307-opel-tigra-1-4-cabrio-carplay-leder-lange-apk",
  "priceEur": 1750.0,
  "priceType": "MIN_BID",
  "city": "Dokkum",
  "sellerName": "Bosline Cars",
  "sellerVerified": false,
  "categoryId": 138
}
```

This record came from a cars search. The stored row also includes description, coordinates, and image URLs.

### Query and input reference

| Input | Type | Required | Default | Accepted values | Description |
|---|---|---:|---|---|---|
| searchQuery | string | no | empty | text | Search phrase. |
| startUrls | array | no | empty | Marktplaats URLs | Listing or search URLs. |
| l1CategoryId | string | no | 91 | category id | Top-level category. |
| l2CategoryId | integer | no | empty | category id | Second-level category. |
| postcode | string | no | empty | Dutch postcode | Location filter. |
| distanceMeters | string | no | empty | meters | Radius around the postcode. |
| listingType | string | no | 10882 | site code | Listing type filter. |
| includeListingDetails | boolean | no | false | true or false | Request the VIP payload. |
| maxItems | integer | no | 50 | 0 or a positive integer | Cap on listings. 0 means no cap. |
| proxyConfiguration | object | no | Apify proxy off | Apify proxy input | Optional proxy. |

Minimal request:

```json
{"searchQuery": "opel tigra", "maxItems": 5}
```

### Retrieve the data through the API

Start the Actor with JSON input, wait for the run, then read the default dataset. Paginate with the dataset API. Other languages are on the Actor API tab.

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("datascrapers/marktplaats-nl-scraper").call(run_input={
    "searchQuery": "opel tigra",
    "maxItems": 5,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["itemId"], item.get("priceEur"))
```

### Data quality and record handling

Deduplicate on itemId. The same listing can appear again on a later run when the seller edits the price or title. priceEur is converted from the site amount. listingDetails is omitted unless includeListingDetails is true. A blocked search returns no row for that attempt rather than a partial price.

### Pricing and cost examples

Pay per event. Listing (`dataset-item`) and listing details (`listing-details`) are each $1.50 per 1,000 on Free, $1.40 on Bronze, $1.30 on Silver, and $1.20 on Gold. Platinum and Diamond use the Gold price. Platform usage is included. A search that saves 1,000 listings without VIP details costs $1.50 on Free. The same run with details charges both events.

### Limitations and responsible data use

The Actor collects public classifieds. It does not log into Marktplaats, contact sellers, or complete a purchase. Category and vehicle filters only apply when that category uses them. Respect Marktplaats terms and the robots rules that apply to your use.

### Dataset questions

#### What is one record?

One Marktplaats listing, keyed by itemId.

#### Which field should I use to deduplicate?

itemId.

#### Does the price include shipping?

No. priceEur is the listing price shown on the site.

### Related datasets from Data Scrapers

- [eBay Scraper](https://apify.com/datascrapers/ebay-scraper)
- [Subito Scraper](https://apify.com/datascrapers/subito-scraper)
- [Back Market Scraper](https://apify.com/datascrapers/backmarket-scraper)
- [Cdiscount Scraper](https://apify.com/datascrapers/cdiscount-scraper)

### Data Scrapers support

Questions about this dataset: stardustspotlight@gmail.com.

# Actor input Schema

## `startUrl` (type: `string`):

Marktplaats search, category, or filtered URL. When set, search/filter fields below are ignored.

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

Additional Marktplaats URLs (same priority as Start URL).

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

Keywords when Start URL is empty. Example: car, iphone, bankstel.

## `l1CategoryId` (type: `string`):

Main Marktplaats category. Required when not using Start URL.

## `l2CategoryId` (type: `integer`):

Optional L2 subcategory ID (e.g. 105 = Daihatsu).

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

Dutch postcode for distance search (e.g. 1012AB).

## `distanceMeters` (type: `string`):

Search radius from postcode, matching Marktplaats Zoek afstand.

## `listingType` (type: `string`):

Listing type.

## `advertiserType` (type: `string`):

Filter by private or business seller.

## `fuelType` (type: `string`):

Fuel type filter (auto category).

## `transmissionType` (type: `string`):

Transmission filter.

## `bodyType` (type: `string`):

Body style filter.

## `color` (type: `string`):

Exterior color filter.

## `condition` (type: `string`):

New or used condition filter.

## `energyLabel` (type: `string`):

Energy label filter.

## `hybridType` (type: `string`):

Hybrid type filter.

## `imported` (type: `string`):

Import vs Dutch-origin filter.

## `apk` (type: `string`):

APK (MOT) validity filter.

## `warranty` (type: `string`):

Warranty filter.

## `driveTrain` (type: `string`):

Drive train filter.

## `constructionYearMin` (type: `integer`):

Minimum construction year.

## `constructionYearMax` (type: `integer`):

Maximum construction year.

## `mileageMin` (type: `integer`):

Minimum mileage in km.

## `mileageMax` (type: `integer`):

Maximum mileage in km.

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

Result sort field.

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

Ascending or descending sort.

## `sortAttribute` (type: `string`):

Attribute used when sorting by Attribute.

## `searchInTitleAndDescription` (type: `boolean`):

Match query in title and description.

## `includeListingDetails` (type: `boolean`):

Enrich each listing with VIP and seller data. Adds a pay-per-event charge of listing-details per successful enrichment (in addition to dataset-item per listing).

## `detailsConcurrency` (type: `integer`):

Parallel workers for listing details (each listing processed concurrently up to this limit).

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

Maximum listings to scrape (0 = unlimited).

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

Apify proxy settings for search and detail requests.

## Actor input object example

```json
{
  "startUrl": "https://www.marktplaats.nl/l/auto-s/q/car/",
  "startUrls": [],
  "searchQuery": "car",
  "l1CategoryId": "91",
  "listingType": "10882",
  "searchInTitleAndDescription": true,
  "includeListingDetails": false,
  "detailsConcurrency": 10,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runStats` (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 = {
    "startUrl": "https://www.marktplaats.nl/l/auto-s/q/car/",
    "searchQuery": "car",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("datascrapers/marktplaats-nl-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 = {
    "startUrl": "https://www.marktplaats.nl/l/auto-s/q/car/",
    "searchQuery": "car",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("datascrapers/marktplaats-nl-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 '{
  "startUrl": "https://www.marktplaats.nl/l/auto-s/q/car/",
  "searchQuery": "car",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call datascrapers/marktplaats-nl-scraper --silent --output-dataset

```

## MCP server setup

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