# Marktplaats Auto Scraper (`nocodeventure/marktplaats-auto-scraper`) Actor

This scraper works with pre-filtered URLs from Marktplaats. Instead of configuring filters in the scraper, you apply filters directly on the Marktplaats website and copy the resulting URL.

- **URL**: https://apify.com/nocodeventure/marktplaats-auto-scraper.md
- **Developed by:** [No-Code Venture](https://apify.com/nocodeventure) (community)
- **Categories:** Automation, Integrations
- **Features:** Limited permissions
- **Stats:** 36 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 single 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?

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 Auto Scraper

A production-ready Apify Actor for scraping car listings from [Marktplaats.nl](https://www.marktplaats.nl). This scraper extracts detailed car information including price, specifications, seller details, and more.

### How to Use

This scraper works with **pre-filtered URLs** from Marktplaats. Instead of configuring filters in the scraper, you apply filters directly on the Marktplaats website and copy the resulting URL.

#### Step 1: Create Your Filtered URL on Marktplaats

1. Go to [marktplaats.nl/l/auto-s/](https://www.marktplaats.nl/l/auto-s/)
2. Use the website's filters to narrow down your search:
   - Select a brand (e.g., Porsche)
   - Select a model (e.g., 911)
   - Set price range, year, mileage, fuel type, etc.
   - Set location/postcode if needed
3. Copy the URL from your browser's address bar

**Example URL:**

```text
https://www.marktplaats.nl/l/auto-s/porsche/f/911/1114/#f:10882,11709|offeredSince:Altijd|postcode:1216NH
```

#### Step 2: Configure the Scraper

Provide the URL(s) in the `startUrls` input field. You can add multiple URLs to scrape different searches in one run.

#### Input Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `startUrls` | Array | Required | Pre-filtered Marktplaats URLs to scrape |
| `startPage` | Integer | - | Override page number (leave empty to use page from URL, or page 1) |
| `maxPages` | Integer | 10 | Maximum pages to scrape per URL (0 = unlimited) |
| `maxResults` | Integer | - | Stop after collecting this many results |
| `scrapeDetails` | Boolean | true | Visit detail pages for full info |
| `maxRequestsPerCrawl` | Integer | 0 | Total request limit (0 = unlimited) |
| `proxyConfiguration` | Object | Apify Proxy | Proxy settings |

#### Example Input

```json
{
    "startUrls": [
        { "url": "https://www.marktplaats.nl/l/auto-s/porsche/f/911/1114/#f:10882,11709|offeredSince:Altijd|postcode:1216NH" }
    ],
    "maxPages": 5,
    "maxResults": 50,
    "scrapeDetails": true
}
```

#### Multiple Searches Example

You can scrape multiple different searches in one run:

```json
{
    "startUrls": [
        { "url": "https://www.marktplaats.nl/l/auto-s/porsche/f/911/" },
        { "url": "https://www.marktplaats.nl/l/auto-s/bmw/f/3-serie/" },
        { "url": "https://www.marktplaats.nl/l/auto-s/mercedes-benz/f/c-klasse/" }
    ],
    "maxPages": 3,
    "scrapeDetails": true
}
```

#### Resuming a Scrape

If a URL already contains a page number (e.g., `/p/5/`), the scraper will start from that page automatically:

```json
{
    "startUrls": [
        { "url": "https://www.marktplaats.nl/l/auto-s/porsche/p/5/#filters" }
    ],
    "maxPages": 10
}
```

Or you can override with `startPage`:

```json
{
    "startUrls": [
        { "url": "https://www.marktplaats.nl/l/auto-s/porsche/" }
    ],
    "startPage": 5,
    "maxPages": 10
}
```

### Output Data

#### With `scrapeDetails: true` (default)

Full car details including:

- Title, brand, model, variant
- Price (text and numeric)
- Year, mileage, fuel type, transmission
- Body type, color, number of doors/seats
- License plate, APK until date
- NAP verification, dealer maintained, warranty
- Full description and options list
- Seller information (name, type, phone, rating)
- All images
- View count, listing date

#### With `scrapeDetails: false`

Basic listing card data:

- Title, URL, listing ID
- Price
- Year, mileage, fuel type
- Thumbnail image
- Seller name and type
- Location

#### Example Output

```json
{
    "listingId": "2340790836",
    "url": "https://www.marktplaats.nl/v/auto-s/porsche/m2340790836-porsche-911-cabrio",
    "title": "Porsche 911 Cabrio 3.8Carrera 4 GTS dealer onderhouden nieuw",
    "brand": "Porsche",
    "model": "911, Cabrio 3.8Carrera 4 GTS dealer onderhouden nieuw",
    "variant": "Cabrio 3.8Carrera 4 GTS dealer onderhouden nieuw",
    "price": "€ 91.500,-",
    "priceNumeric": 91500,
    "year": 2015,
    "mileage": "118.159 km",
    "mileageNumeric": 118159,
    "fuelType": "Benzine",
    "hybridType": null,
    "transmission": "Automaat",
    "transmissionDetails": "Automaat 7 versnellingen",
    "horsePower": "430 pk",
    "bodyType": "Cabriolet",
    "color": "Zilver of Grijs",
    "interiorColor": "Beige",
    "upholstery": "Leder",
    "numberOfDoors": 2,
    "numberOfSeats": 4,
    "licensePlate": "J-333-JJ",
    "apkUntil": "12 mei 2026",
    "napVerified": null,
    "originalDutch": null,
    "condition": null,
    "dealerMaintained": true,
    "hasServiceBook": null,
    "hasWarranty": null,
    "firstOwner": null,
    "description": "Algemene informatieAantal deuren: 2Kleur: Grijs metallic...",
    "options": [],
    "seller": {
        "name": "Auto Harvo",
        "type": "Bedrijf",
        "phone": "0653892562",
        "rating": 5,
        "reviews": 3,
        "yearsOnPlatform": 14,
        "location": "Lopikerkapel",
        "website": "https://www.autoharvo.nl/",
        "listingsUrl": "https://www.marktplaats.nl/u/auto-harvo/16339748/"
    },
    "viewCount": 366,
    "savedCount": 10,
    "listedSince": "2 dec '25",
    "images": [
        "//images.marktplaats.com/api/v1/listing-mp-p/images/18/1891b36f-2ac8-4bd8-9b25-dde35e9e63fa?rule=ecg_mp_eps$_85"
    ],
    "imageUrl": "//images.marktplaats.com/api/v1/listing-mp-p/images/18/1891b36f-2ac8-4bd8-9b25-dde35e9e63fa?rule=ecg_mp_eps$_85",
    "scrapedAt": "2025-12-04T22:29:20.834Z"
}
```

### Pricing Model — Pay Per Event

This Actor uses Pay Per Event (PPE) pricing. You are charged based on what the Actor actually does, not by compute time.

#### Automatic events (no configuration needed)

| Event | When |
|---|---|
| Actor start | Once per run |
| Dataset item | Once per car record saved |

These are synthetic events handled automatically by Apify.

#### Additional events

| Event | When |
|---|---|
| Proxy startup | Once per run when Apify Proxy is used |
| Proxy record surcharge | Per car record when proxy is active |
| Detail page scrape | Per car detail page loaded (`scrapeDetails: true`) |

#### Cost by mode

**`scrapeDetails: true` (default):** Each car result charges a dataset item + detail page scrape + proxy surcharge (if proxy is on).

**`scrapeDetails: false`:** Each car result charges a dataset item + proxy surcharge (if proxy is on). No detail page charge.

Prices for each event are set in Apify Console — not in this code.

### Disclaimer

This Actor is provided for educational and research purposes only. Users are solely responsible for ensuring their use of this tool complies with all applicable laws, regulations, and the terms of service of Marktplaats.nl.

**By using this Actor, you acknowledge that:**

- Web scraping may be subject to legal restrictions in your jurisdiction
- You must respect the website's Terms of Service and robots.txt
- You should implement appropriate rate limiting to avoid overloading the target server
- The data collected should be used responsibly and in accordance with privacy laws (including GDPR)
- This tool is not affiliated with, endorsed by, or sponsored by Marktplaats.nl or its parent company

The developers of this Actor assume no liability for any misuse or for any damages resulting from the use of this software.

# Actor input Schema

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

Pre-filtered Marktplaats URLs to scrape. Apply filters on marktplaats.nl, copy the URL, and paste here. Can be listing pages or individual car detail pages.

## `startPage` (type: `integer`):

Page number to start scraping from. Leave empty to use the page from the URL (or page 1 if not specified in URL).

## `maxPages` (type: `integer`):

Maximum number of listing pages to scrape per start URL (0 = unlimited). Each page has ~30 listings.

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

Maximum number of car results to collect. Stops scraping once this limit is reached. Leave empty or 0 for unlimited.

## `maxRequestsPerCrawl` (type: `integer`):

Maximum total requests (listing pages + detail pages). Use 0 for unlimited.

## `scrapeDetails` (type: `boolean`):

Whether to visit individual car pages for full details. If false, only extracts data from listing cards.

## `scrapeFullDescription` (type: `boolean`):

Whether to click 'Lees meer' to expand and extract the full description text. Enable for complete descriptions, disable for faster scraping.

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

Proxy settings for bypassing anti-bot protection

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.marktplaats.nl/l/auto-s/porsche/f/911/1114/#f:10882,11709|offeredSince:Altijd|postcode:1216NH"
    }
  ],
  "maxPages": 1,
  "maxResults": 1,
  "maxRequestsPerCrawl": 0,
  "scrapeDetails": true,
  "scrapeFullDescription": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `details` (type: `string`):

No description

## `dataset` (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 = {
    "startUrls": [
        {
            "url": "https://www.marktplaats.nl/l/auto-s/porsche/f/911/1114/#f:10882,11709|offeredSince:Altijd|postcode:1216NH"
        }
    ],
    "maxPages": 1,
    "maxResults": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("nocodeventure/marktplaats-auto-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 = {
    "startUrls": [{ "url": "https://www.marktplaats.nl/l/auto-s/porsche/f/911/1114/#f:10882,11709|offeredSince:Altijd|postcode:1216NH" }],
    "maxPages": 1,
    "maxResults": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("nocodeventure/marktplaats-auto-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 '{
  "startUrls": [
    {
      "url": "https://www.marktplaats.nl/l/auto-s/porsche/f/911/1114/#f:10882,11709|offeredSince:Altijd|postcode:1216NH"
    }
  ],
  "maxPages": 1,
  "maxResults": 1
}' |
apify call nocodeventure/marktplaats-auto-scraper --silent --output-dataset

```

## MCP server setup

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