# 2dehands Cars Scraper: Tweedehandse auto's (`getascraper/2dehands-cars-scraper`) Actor

Extract used-car listings (tweedehandse auto's) from 2dehands.be with price, year, mileage, fuel type, transmission, and Car-Pass link. 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/2dehands-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.98 / 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

## 🚗 2dehands Cars Scraper: Tweedehandse 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">Belgium is one stop in a ten-market European used-car dataset.</span> <span style="font-size:15px;color:#57534E">2dehands.be covers Belgian classifieds with Car-Pass history links; the actors below extend the same row shape across Benelux, 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-thiniC0tVg4W8MoBY-xZIb7wZ3WN-images_%2825%29.jpeg" width="18" height="18" style="vertical-align:middle;border-radius:4px">&nbsp;<a href="https://apify.com/getascraper/2dehands-cars-scraper" style="color:#E85D04;text-decoration:none;font-weight:700;font-size:13px">2dehands (BE)</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-tdTMqHz8DBeicY7Rp-HYWcWGJ9Hr-CompressJPEG.Online_img%28512x512%29_%2825%29.jpg" width="18" height="18" style="vertical-align:middle;border-radius:4px">&nbsp;<a href="https://apify.com/getascraper/autohero-cars-scraper" style="color:#1C1917;text-decoration:none;font-weight:700;font-size:13px">Autohero (10 EU)</a></span><br>
<span style="color:#57534E;font-size:11px">Pan-EU dealer catalog</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-ti8eKSu6uj7OaYwmE-DtDwahgDq0-images_%2826%29.jpeg" width="18" height="18" style="vertical-align:middle;border-radius:4px">&nbsp;<a href="https://apify.com/getascraper/bilbasen-cars-scraper" style="color:#1C1917;text-decoration:none;font-weight:700;font-size:13px">Bilbasen (DK)</a></span><br>
<span style="color:#57534E;font-size:11px">Danish 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-nxKtSMSY8vKIHcbbk-DuND4nZUfs-0x0_%281%29.png" width="18" height="18" style="vertical-align:middle;border-radius:4px">&nbsp;<a href="https://apify.com/getascraper/blocket-cars-scraper" style="color:#1C1917;text-decoration:none;font-weight:700;font-size:13px">Blocket (SE)</a></span><br>
<span style="color:#57534E;font-size:11px">Swedish 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 2dehands.be 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, body type, location, a Car-Pass history link, and a direct link for every car listing on Belgium's 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, transmission, and body type 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">🛡️ Car-Pass links</span><br>
<span style="font-size:12px;color:#57534E">Belgium's official vehicle-history check link included when the seller provides one</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 2dehands Cars Scraper do?

This Actor reads car search pages on [2dehands.be](https://www.2dehands.be/l/auto-s/), Belgium's largest classifieds marketplace, 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, body type, seller location, a photo, a short description, a Car-Pass vehicle-history link when the seller provides one, 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 2dehands Cars Scraper?

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

### 🚀 How to use 2dehands 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 or filters</span><br>
<span style="font-size:12px;color:#57534E">Paste a 2dehands.be auto-s search page, or set the make/model/fuel/transmission filters.</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`. Narrows the search itself, on 2dehands' own brand pages, so it's fast. |
| `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 narrows the search itself. |
| `fuelType` | array of strings | No | One or more fuel types: `benzine`, `diesel`, `elektrisch`, `hybride-elektrisch-benzine`, `hybride-elektrisch-diesel`, `lpg`, `cng-aardgas`, `waterstof`, `overige-brandstoffen`. Narrows the search itself. |
| `transmission` | array of strings | No | One or more of `handgeschakeld` (manual) or `automaat` (automatic). Narrows the search itself. |
| `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. `Antwerpen`. Case-insensitive substring match, not a GPS radius search. |
| `startUrls` | array of URLs | No | Advanced override: paste your own 2dehands.be 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. 2dehands works with a direct connection by default. |

`priceFrom`/`priceTo`, `yearFrom`/`yearTo`, `mileageFrom`/`mileageTo`, and `location` are checked against each listing after it's fetched, since 2dehands.be 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 search 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.2dehands.be/v/auto-s/audi/m2432615225-audi-a7-3-0-tdi-quattro-s-line-automaat",
  "listing_id": "m2432615225",
  "title": "Audi A7 3.0 TDI Quattro S-Line Automaat",
  "price": 14000,
  "currency": "EUR",
  "year": 2013,
  "mileage_km": 250000,
  "make": "Audi",
  "model": "A7",
  "fuel_type": "Diesel",
  "transmission": "Automaat",
  "body": "Coupé",
  "location": "Ingelmunster",
  "image_url": "https://images.2dehands.com/api/v1/hz-twh-pro-listing/images/6db89821-0166-4759-abc2-1b1d482f85b2?rule=ecg_mp_eps$_82.jpg",
  "description": "Audi a7 3.0 Tdi s-line quattro automaatische uit 2013 met 250.000 Km...",
  "source_url": "https://www.2dehands.be/l/auto-s/",
  "scraped_at": "2026-08-20T13:00:00.000Z"
}
```

### 📊 Output data fields

| Field | Type | Description |
| --- | --- | --- |
| `listing_url` | string | Direct link to the original 2dehands 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. |
| `body` | string | Body type (Berline, Break, SUV of Terreinwagen, and so on), when shown. |
| `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. |
| `car_pass_url` | string | Link to the official Belgian Car-Pass vehicle-history check, when the seller provides one. |
| `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 "bieden" (make an offer) instead of a fixed price don't get a fabricated number, and `car_pass_url` only appears on the minority of listings where the seller has linked one.

### 💰 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. See the Actor's Pricing tab on Apify for the exact per-listing rate and any volume discounts.

### ⭐ Enjoying 2dehands 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 Belgian 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/2dehands-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 2dehands 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 of the search filters above.
- Lower `maxPages` for a quick sample of the newest listings, or raise it to cover more of a search's results.
- `price`, `car_pass_url`, 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 2dehands.be car listings?** Set `make`, `model`, `fuelType`, and/or `transmission` and run the Actor, or paste your own 2dehands.be 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 2dehands' 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 `car_pass_url` sometimes missing?** Not every 2dehands 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. 2dehands 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 2dehands.be at run time. There is no cached or stale data.

**Is scraping 2dehands data legal?** This Actor collects publicly available listing data. You are responsible for complying with 2dehands' 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

- [Marktplaats Cars Scraper: Tweedehands auto's](https://apify.com/getascraper/marktplaats-cars-scraper) ↗ - the same used-car scraper for the Netherlands' Marktplaats.nl, built on the same platform family.
- [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.
- [Standvirtual Cars Scraper: Carros usados](https://apify.com/getascraper/standvirtual-cars-scraper) ↗ - used-car listings and pricing from Portugal's Standvirtual.
- [Blocket Cars Scraper: Bilar till salu](https://apify.com/getascraper/blocket-cars-scraper) ↗ - used-car listings and pricing from Sweden's Blocket.
- [Kleinanzeigen Autos Scraper: Dealer Data](https://apify.com/getascraper/kleinanzeigen-cars-scraper) ↗ - used-car listings and dealer data from Germany's Kleinanzeigen.
- [VIN Decoder + NHTSA Recalls & Complaints: One Call](https://apify.com/getascraper/nhtsa-vehicle-intelligence-monitor) ↗ - decode a VIN and pull US recalls and complaints in one call, useful for enriching any car listing dataset.

# Actor input Schema

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

Paste one or more 2dehands.be 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 2dehands' 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. Antwerpen. Matches the city name, not distance from a location.

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

Optional proxy settings. 2dehands 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/2dehands-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/2dehands-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/2dehands-cars-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getascraper/2dehands-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/thiniC0tVg4W8MoBY/builds/3cu5ditLwSAP1hqx0/openapi.json
