# Marktplaats Cars Scraper: Tweedehands auto's (`getascraper/marktplaats-cars-scraper`) Actor

Extract used-car listings (tweedehands auto's) from Marktplaats.nl with price, year, mileage, fuel type, and transmission filtered server-side. JSON or CSV rows ready for Sheets, Make, and Zapier. Skip broken scrapers and stale price data. From $0.00087 per listing.

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

## Pricing

from $0.65 / 1,000 car 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/platform/actors/running/actors-in-store#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 Cars Scraper: Tweedehands auto's

<table width="100%" style="border-collapse:collapse;table-layout:fixed;margin:0 0 16px">
<tbody>
<tr>
<td colspan="4" style="padding:14px 18px;background:#FFF3E9;border:1px solid #FFD3B0;border-top:3px solid #E85D04;border-radius:10px 10px 0 0">
<span style="font-size:16px;font-weight:700;color:#1C1917">The Netherlands is one stop in a ten-market European used-car dataset.</span> <span style="font-size:15px;color:#57534E">Marktplaats.nl covers Dutch classifieds with over 41 million monthly visits; the actors below extend the same row shape across Nordic, DACH, Iberian, and UK markets.</span>
</td>
</tr>
<tr>
<td colspan="4" style="padding:10px 14px;background:#E85D04;border-left:1px solid #E85D04;border-right:1px solid #E85D04">
<span style="color:#FFFFFF;font-size:14px;font-weight:700;letter-spacing:0.5px">EUROPEAN USED-CAR CLASSIFIEDS COVERAGE</span> <span style="color:#FFFFFF;opacity:0.85;font-size:13px">&nbsp;&nbsp;Cross-border sourcing and pricing data spanning Benelux, Nordic, DACH, Iberian, and UK classifieds, plus a pan-EU dealer platform. Ten separate markets, not one.</span>
</td>
</tr>
<tr>
<td width="25%" style="width:25%;padding:11px 12px;border-left:1px solid #FFD3B0;border-bottom:1px solid #FFD3B0;vertical-align:top;background:#FFF3E9;border-radius:0 0 0 10px">
<span style="overflow-wrap:break-word;word-break:break-word"><img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/jNDbFabbVxMhnQNb4-actor-Pj1SDha1m3bqFTb86-MXXoz4OaRh-marktplaats-logo-aangepast-voor-thissen-autos-1.png" width="18" height="18" style="vertical-align:middle;border-radius:4px">&nbsp;<a href="https://apify.com/getascraper/marktplaats-cars-scraper" style="color:#E85D04;text-decoration:none;font-weight:700;font-size:13px">Marktplaats (NL)</a></span><br>
<span style="color:#E85D04;font-size:11px;font-weight:700">&#10148; You are here</span>
</td>
<td width="25%" style="width:25%;padding:11px 12px;border-left:1px solid #FFD3B0;border-bottom:1px solid #FFD3B0;vertical-align:top;background:#FFFFFF">
<span style="overflow-wrap:break-word;word-break:break-word"><img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/jNDbFabbVxMhnQNb4-actor-8IERs8zcVhonYlUfd-vmBYzLCwqg-images_%2840%29.png" width="18" height="18" style="vertical-align:middle;border-radius:4px">&nbsp;<a href="https://apify.com/getascraper/otomoto-cars-scraper" style="color:#1C1917;text-decoration:none;font-weight:700;font-size:13px">OtoMoto (PL)</a></span><br>
<span style="color:#57534E;font-size:11px">Polish classifieds</span>
</td>
<td width="25%" style="width:25%;padding:11px 12px;border-left:1px solid #FFD3B0;border-bottom:1px solid #FFD3B0;vertical-align:top;background:#FFFFFF">
<span style="overflow-wrap:break-word;word-break:break-word"><img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/jNDbFabbVxMhnQNb4-actor-QNOrwmoRJNQigdM12-Bvhsz8n53s-unnamed_%2836%29.png" width="18" height="18" style="vertical-align:middle;border-radius:4px">&nbsp;<a href="https://apify.com/getascraper/standvirtual-cars-scraper" style="color:#1C1917;text-decoration:none;font-weight:700;font-size:13px">Standvirtual (PT)</a></span><br>
<span style="color:#57534E;font-size:11px">Portuguese classifieds</span>
</td>
<td width="25%" style="width:25%;padding:11px 12px;border-left:1px solid #FFD3B0;border-right:1px solid #FFD3B0;border-bottom:1px solid #FFD3B0;vertical-align:top;background:#FFFFFF;border-radius:0 0 10px 0">
<span style="overflow-wrap:break-word;word-break:break-word"><img src="https://apify-image-uploads-prod.s3.us-east-1.amazonaws.com/jNDbFabbVxMhnQNb4-actor-oZ9ZUnSQ6at8KYKRe-nhHJXjuCwu-Willhaben.png" width="18" height="18" style="vertical-align:middle;border-radius:4px">&nbsp;<a href="https://apify.com/getascraper/willhaben-cars-scraper" style="color:#1C1917;text-decoration:none;font-weight:700;font-size:13px">Willhaben (AT)</a></span><br>
<span style="color:#57534E;font-size:11px">Austrian classifieds</span>
</td>
</tr>
</tbody>
</table>

<table width="100%">
<tr>
<td style="padding:24px 28px;background:#FFF3E9;border:1px solid #FFD3B0;border-top:4px solid #E85D04;border-radius:12px">
<span style="font-size:23px;font-weight:800;color:#1C1917;line-height:1.3">Turn any Marktplaats.nl auto search into a clean spreadsheet</span><br>
<span style="font-size:15px;color:#57534E;line-height:1.6">Price, year, mileage, make, model, fuel type, transmission, location, and a direct link for every car listing on the Netherlands' biggest classifieds site.</span>
</td>
</tr>
</table>

<table width="100%">
<tr>
<td style="padding:14px 12px;width:25%;background:#FFFFFF;border:1px solid #FFD3B0;border-radius:10px 0 0 10px;vertical-align:top">
<span style="font-size:15px;font-weight:800;color:#B34700">🚗 Full vehicle detail</span><br>
<span style="font-size:12px;color:#57534E">Make, model, year, mileage, fuel type, and transmission in one row</span>
</td>
<td style="padding:14px 12px;width:25%;background:#FFFFFF;border:1px solid #FFD3B0;border-left:none;vertical-align:top">
<span style="font-size:15px;font-weight:800;color:#B34700">💶 Real asking prices</span><br>
<span style="font-size:12px;color:#57534E">Euro prices exactly as listed, skipped only when the seller hides them</span>
</td>
<td style="padding:14px 12px;width:25%;background:#FFFFFF;border:1px solid #FFD3B0;border-left:none;vertical-align:top">
<span style="font-size:15px;font-weight:800;color:#B34700">🔗 Direct listing links</span><br>
<span style="font-size:12px;color:#57534E">Jump straight to the original ad to verify or make an offer</span>
</td>
<td style="padding:14px 12px;width:25%;background:#FFFFFF;border:1px solid #FFD3B0;border-left:none;border-radius:0 10px 10px 0;vertical-align:top">
<span style="font-size:15px;font-weight:800;color:#B34700">⚙️ Scope you control</span><br>
<span style="font-size:12px;color:#57534E">Set how many listings and search pages a run pulls</span>
</td>
</tr>
</table>

### 🔍 What does Marktplaats Cars Scraper do?

This Actor reads car search pages on [Marktplaats.nl](https://www.marktplaats.nl/l/auto-s/), the Netherlands' largest classifieds marketplace with over 41 million monthly visits, and returns one structured row per car listing.

Give it a search URL, whether the general auto's category or one filtered by brand, price, or city, and it collects the listing title, price, year, mileage, make, model, fuel type, transmission, seller location, a photo, a short description, and a direct link to the original ad. It follows the site's own "next page" link to pull more results across multiple search pages, up to the limits you set. Runs on the Apify platform with scheduling, integrations (Make, Zapier, Google Sheets), and run monitoring built in.

### 💡 Why use Marktplaats Cars Scraper?

- **I'm a car dealer or reseller** and want to see what similar cars are actually priced at on Marktplaats before I set my own price.
- **I'm a market analyst** tracking used-car pricing trends in the Netherlands by make, model, or region over time.
- **I'm building a price-comparison or aggregator tool** and need a live feed of Marktplaats listings alongside other marketplaces.
- **I'm a developer** who needs structured Marktplaats data without writing and maintaining a scraper myself.

### 🚀 How to use Marktplaats Cars Scraper

<table width="100%">
<tr>
<td style="padding:16px 14px;width:33%;background:#FFF3E9;border:1px solid #FFD3B0;border-radius:10px 0 0 10px;vertical-align:top">
<span style="font-size:12px;font-weight:800;color:#E85D04;letter-spacing:1px">STEP 1</span><br>
<span style="font-size:14px;font-weight:700;color:#1C1917">Add a search URL</span><br>
<span style="font-size:12px;color:#57534E">Paste a Marktplaats.nl auto's search page, filtered however you like.</span>
</td>
<td style="padding:16px 14px;width:33%;background:#FFF3E9;border:1px solid #FFD3B0;border-left:none;vertical-align:top">
<span style="font-size:12px;font-weight:800;color:#E85D04;letter-spacing:1px">STEP 2</span><br>
<span style="font-size:14px;font-weight:700;color:#1C1917">Run the Actor</span><br>
<span style="font-size:12px;color:#57534E">It reads the public listing pages directly, no sign-in needed.</span>
</td>
<td style="padding:16px 14px;width:33%;background:#FFF3E9;border:1px solid #FFD3B0;border-left:none;border-radius:0 10px 10px 0;vertical-align:top">
<span style="font-size:12px;font-weight:800;color:#E85D04;letter-spacing:1px">STEP 3</span><br>
<span style="font-size:14px;font-weight:700;color:#1C1917">Export your results</span><br>
<span style="font-size:12px;color:#57534E">Download one row per listing, ready for a spreadsheet or your own system.</span>
</td>
</tr>
</table>

### ⚙️ Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `make` | string | No | Car brand, e.g. `audi`, `bmw`, `mercedes-benz`. Applied server-side on Marktplaats' own brand pages, so it's fast and narrows the crawl itself. |
| `model` | string | No | Model or free-text keyword, e.g. `a4`, `model s`, `golf`. Searched within the chosen make (or across all makes if `make` is blank). Also applied server-side. |
| `fuelType` | array of strings | No | One or more fuel types: `benzine`, `diesel`, `elektrisch`, `hybride-elektrisch-benzine`, `hybride-elektrisch-diesel`, `half-hybride`, `volledig-hybride`, `plug-in-hybride`, `lpg`, `cng-aardgas`, `waterstof`, `overige-brandstoffen`. Applied server-side. |
| `transmission` | array of strings | No | One or more of `handgeschakeld` (manual) or `automaat` (automatic). Applied server-side. |
| `priceFrom` / `priceTo` | integer | No | Minimum/maximum asking price in euros. |
| `yearFrom` / `yearTo` | integer | No | Minimum/maximum construction year. |
| `mileageFrom` / `mileageTo` | integer | No | Minimum/maximum odometer reading in kilometers. |
| `location` | string | No | Only keep listings whose seller city contains this text, e.g. `Amsterdam`. Case-insensitive substring match, not a GPS radius search. |
| `startUrls` | array of URLs | No | Advanced override: paste your own Marktplaats.nl auto's search or listing URL(s), built however you like on the site itself. When set, this replaces `make`/`model`/`fuelType`/`transmission` above (the price/year/mileage/location filters still apply on top of it). |
| `maxItems` | integer | No | Maximum number of unique car listings to return. Defaults to `25`. |
| `maxPages` | integer | No | Maximum number of search pages to visit. Defaults to `5`. |
| `proxyConfiguration` | object | No | Optional proxy settings. Marktplaats works with a direct connection by default. |

`priceFrom`/`priceTo`, `yearFrom`/`yearTo`, `mileageFrom`/`mileageTo`, and `location` are applied after each listing is fetched, since Marktplaats.nl only accepts those filters through a part of the URL that requires a browser to process, not a plain link. `make`, `model`, `fuelType`, and `transmission` narrow the search itself, so pairing them with the other filters keeps a run fast; using only price/year/mileage/location without any of the four server-side filters means the Actor pages through the full, unfiltered category to find matches.

### 📦 Output

Download the results as a spreadsheet, a table, or structured data ready for your own systems. Each row is one car listing:

```
{
  "listing_url": "https://www.marktplaats.nl/v/auto-s/tesla/m2419735305-tesla-model-s-60-base",
  "listing_id": "m2419735305",
  "title": "Tesla Model S 60 Base",
  "price": 12880,
  "currency": "EUR",
  "year": 2014,
  "mileage_km": 172343,
  "make": "Tesla",
  "model": "Model S",
  "fuel_type": "Elektrisch",
  "transmission": "Automaat",
  "location": "Hendrik-Ido-Ambacht",
  "image_url": "https://images.marktplaats.com/api/v1/hz-mp-pro-listing/images/3dd49db7-fdef-4dd2-8637-9a640b60e67a?rule=ecg_mp_eps$_83.jpg",
  "description": "Tesla model s 60 base kenteken: 3-tll-90 merk: tesla model: model s...",
  "source_url": "https://www.marktplaats.nl/l/auto-s/",
  "scraped_at": "2026-08-20T04:11:58.368Z"
}
```

### 📊 Output data fields

| Field | Type | Description |
| --- | --- | --- |
| `listing_url` | string | Direct link to the original Marktplaats listing. |
| `listing_id` | string | The listing's identifier, taken from the page. |
| `source_url` | string | The search or listing page this row was collected from. |
| `title` | string | The listing's headline, usually make, model, and trim. |
| `price` | number | Asking price in euros, when the seller lists a fixed price. |
| `currency` | string | Currency of the price, always EUR when a price is present. |
| `year` | number | Construction or model year. |
| `mileage_km` | number | Odometer reading in kilometers. |
| `make` | string | Vehicle brand. |
| `model` | string | Vehicle model. |
| `fuel_type` | string | Fuel type (Benzine, Diesel, Elektrisch, Hybride, and so on). |
| `transmission` | string | Gearbox type, as shown on the listing. |
| `location` | string | Seller's city, as shown on the listing. |
| `image_url` | string | Link to the listing's primary photo. |
| `description` | string | Short listing description, when available. |
| `scraped_at` | string | Timestamp when this row was collected. |

A field that's missing from the source listing is left out of the row entirely rather than filled with a placeholder. That includes price: sellers who write "bied" (make an offer) or "zie omschrijving" (see description) instead of a fixed price don't get a fabricated number.

### 💰 Pricing

This Actor uses pay-per-event pricing: you pay per car listing returned, and nothing for an empty run. There is no subscription and no minimum spend. Use `maxItems` and `maxPages` to control how large a run gets.

| Plan | Price per listing | Price per 1,000 listings |
| --- | --- | --- |
| Free | $0.00087 | $0.87 |
| Bronze (Starter) | $0.00078 | $0.78 |
| Silver (Scale) | $0.00071 | $0.71 |
| Gold (Business) | $0.00065 | $0.65 |

Priced below the cheapest dedicated Marktplaats cars scraper on the Store.

### ⭐ Enjoying Marktplaats Cars Scraper?

<table width="100%">
<tr>
<td style="padding:20px 24px 14px;background:#FFF3E9;border:1px solid #FFD3B0;border-left:5px solid #E85D04;border-radius:10px 10px 0 0">
<span style="font-size:20px;letter-spacing:4px">⭐ ⭐ ⭐ ⭐ ⭐</span><br>
<span style="font-size:17px;font-weight:800;color:#1C1917">Found the right price before your competitor did?</span><br>
<span style="font-size:14px;color:#57534E">A 5-star rating takes 10 seconds and helps other dealers, analysts, and developers tracking the Dutch used-car market find this Actor. Your feedback also tells us what to build next.</span>
</td>
</tr>
<tr>
<td style="padding:0;background:#E85D04;border:1px solid #FFD3B0;border-top:none;border-radius:0 0 10px 10px;text-align:center">
<a href="https://apify.com/getascraper/marktplaats-cars-scraper/reviews" style="display:block;padding:13px 16px;color:#FFFFFF;text-decoration:none;font-weight:800;font-size:15px;letter-spacing:0.3px">★&nbsp;&nbsp;Rate this Actor on Apify</a>
</td>
</tr>
</table>

### ✨ Tips

- Set `make`, `model`, `fuelType`, and/or `transmission` for a fast, focused run: those narrow the search on Marktplaats itself before any listing is fetched.
- Add `priceFrom`/`priceTo`, `yearFrom`/`yearTo`, or `mileageFrom`/`mileageTo` on top for a tighter shortlist; just know they're matched per listing after fetching, so they work best paired with at least one server-side filter.
- Lower `maxPages` for a quick sample of the newest listings, or raise it to cover more of a search's results.
- `price` and `description` aren't always shown by the seller; a missing value there is expected, not an error.
- Re-run the same filters (or the same `startUrls`) on a schedule to track how prices for a specific make or model move over time.

### ❓ FAQ, disclaimers, and support

**How do I scrape Marktplaats.nl car listings?** Set `make`, `model`, `fuelType`, and/or `transmission` and run the Actor, or paste your own Marktplaats.nl search URL into `startUrls` if you'd rather build the search on the site itself. Either way it returns one structured row per listing, with price, year, mileage, and vehicle detail.

**Can I filter by brand, price, or location?** Yes. `make`, `model`, `fuelType`, and `transmission` narrow the search on Marktplaats' own pages. `priceFrom`/`priceTo`, `yearFrom`/`yearTo`, `mileageFrom`/`mileageTo`, and `location` are matched against each listing after it's fetched. You can also paste your own filtered search URL into `startUrls`; the price/year/mileage/location filters still apply on top of it.

**Why is a field like `price` or `description` sometimes missing?** Not every Marktplaats listing discloses every field. When a value isn't shown on the source page, the Actor leaves it out of the row rather than guessing or filling in a placeholder.

**Does the Actor tell me if a seller is a private person or a dealer?** No. Marktplaats doesn't expose this consistently in its listing data, so this Actor doesn't guess. Seller name and location are included so you can judge for yourself.

**How fresh is the data?** Every run reads the current search pages directly from Marktplaats.nl at run time. There is no cached or stale data.

**Is scraping Marktplaats data legal?** This Actor collects publicly available listing data. You are responsible for complying with Marktplaats' Terms of Service and applicable laws in your use of the data.

**Found a bug or need a field added?** Open an issue on the Actor's **Issues** tab. Custom solutions are available on request.

### 🔗 Other actors

- [OtoMoto Cars Scraper: Samochody używane](https://apify.com/getascraper/otomoto-cars-scraper) ↗ - extracts used-car listings and pricing from Poland's largest used-car marketplace.
- [YallaMotor Cars Scraper: Private Beta](https://apify.com/getascraper/yallamotor-cars-scraper) ↗ - collects used-car listings and pricing across MENA marketplaces.
- [Dubicars Scraper](https://apify.com/getascraper/dubicars-scraper) ↗ - extracts UAE used-car listings, prices, and dealer detail.
- [CarDekho Used Cars Scraper: Indian Car Listings, Prices & Dealer Data](https://apify.com/getascraper/cardekho-used-cars-scraper) ↗ - used-car listings, prices, and dealer data from India's CarDekho.
- [Avito Auto Scraper: Парсер Авито Авто](https://apify.com/getascraper/avito-auto-scraper) ↗ - vehicle listings, pricing, and dealer detail from Russia's largest classifieds site.

# Actor input Schema

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

Paste one or more Marktplaats.nl auto's search or listing URLs directly, built however you like on the site itself. When set, this replaces the Make/Model/Fuel/Transmission filters below (the Price/Year/Mileage/Location filters below still apply on top of it). Leave empty to build the search from the filters below instead.

## `make` (type: `string`):

Car brand to search, e.g. audi, bmw, mercedes-benz. Matches Marktplaats' own brand pages. Leave blank to search all makes. Ignored when Start URLs is set.

## `model` (type: `string`):

Model or free-text keyword, e.g. a4, model s, golf. Searched within the chosen make (or across all makes if Make is blank).

## `fuelType` (type: `array`):

Restrict to one or more fuel types.

## `transmission` (type: `array`):

Restrict to one or more transmission types.

## `priceFrom` (type: `integer`):

Only keep listings priced at or above this amount, in euros.

## `priceTo` (type: `integer`):

Only keep listings priced at or below this amount, in euros.

## `yearFrom` (type: `integer`):

Only keep listings with a construction year at or after this year.

## `yearTo` (type: `integer`):

Only keep listings with a construction year at or before this year.

## `mileageFrom` (type: `integer`):

Only keep listings with at least this many kilometers on the odometer.

## `mileageTo` (type: `integer`):

Only keep listings with at most this many kilometers on the odometer.

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

Only keep listings whose seller city contains this text, e.g. Amsterdam. Matches the city name, not distance from a location.

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

Optional proxy settings. Marktplaats works with a direct connection by default.

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

Maximum number of unique car listings to return.

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

Maximum number of search pages to visit.

## Actor input object example

```json
{
  "startUrls": [],
  "make": "audi",
  "model": "",
  "fuelType": [],
  "transmission": [],
  "location": "",
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "maxItems": 10,
  "maxPages": 2
}
```

# Actor output Schema

## `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": [],
    "make": "audi",
    "model": "",
    "fuelType": [],
    "transmission": [],
    "location": "",
    "proxyConfiguration": {
        "useApifyProxy": false
    },
    "maxItems": 10,
    "maxPages": 2
};

// Run the Actor and wait for it to finish
const run = await client.actor("getascraper/marktplaats-cars-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": [],
    "make": "audi",
    "model": "",
    "fuelType": [],
    "transmission": [],
    "location": "",
    "proxyConfiguration": { "useApifyProxy": False },
    "maxItems": 10,
    "maxPages": 2,
}

# Run the Actor and wait for it to finish
run = client.actor("getascraper/marktplaats-cars-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": [],
  "make": "audi",
  "model": "",
  "fuelType": [],
  "transmission": [],
  "location": "",
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "maxItems": 10,
  "maxPages": 2
}' |
apify call getascraper/marktplaats-cars-scraper --silent --output-dataset

```

## MCP server setup

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