# 2dehands Scraper: Used Cars, Prices & Mileage (`scrapingmonkey/2dehands-scraper`) Actor

Search 2dehands vehicle adverts by keyword and export asking prices, mileage, model years, seller names and listing links. Compare Belgian car stock in CSV or Excel for sourcing and resale research.

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

## Pricing

from $1.00 / 1,000 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

Extract Belgian used-car listings with asking prices, model years, mileage, specifications and listing links. **2dehands Scraper** turns the listings into structured records for vehicle sourcing, price comparisons and market research. Choose how many results to collect for each input and export the cars you need.

Compare asking prices across local classifieds while keeping each car attached to its seller and original advert. Keep comparable records in a spreadsheet, purchasing shortlist or recurring market report, with a link back to each source listing.

| At a glance | Details |
|---|---|
| 📥 Input | Search fields or links to the selected items; see the examples below |
| 📤 Output | One row per vehicle listing |
| 📄 Pagination | Automatic up to `maxResults` for each input, when more results are available |
| 🔐 Login required | No |
| ⚡ Processing | Multiple inputs per run with automatic retries for temporary errors |
| 💾 Delivery | One complete Apify dataset table; CSV, JSON and Excel export |

### What the 2dehands scraper collects 🚗

Collect Belgian used-car listings with asking prices, model years, mileage, specifications and listing links when available.

| Collection | What you receive |
|---|---|
| 2dehands car listings scraper | Listing titles, asking prices, mileage, model years, descriptions, published vehicle attributes, locations, seller names and photo urls, with original listing links. |

Data can include:

- Listing identity: Vehicle or listing ID, title and original advert URL
- Vehicle specification: Make, model, variant, model year, body type, fuel and transmission when published
- Advertised price: Asking price, currency and any published price text
- Mileage and condition: Mileage, measurement unit, colour and published condition information
- Seller and location: Published seller identity, seller type and vehicle location
- Description and images: Advert description, image URLs, equipment and additional specifications

### How to scrape 2dehands 🚀

1. Open the Actor input form.
2. Fill in the search fields, or paste links to the items you want to collect.
3. Set the maximum results and any optional filters.
4. Start the Actor and review the collected rows.
5. Export the dataset or connect it to your application.

#### 2dehands car listings scraper — input example

```json
{
  "mode": "2dehands-vehicle-search",
  "keywords": "Ford",
  "maxResults": 10
}
```

`maxResults: 10` means up to 10 results for **each input**. It does not guarantee that the website has that many matches. You can set the limit as low as 1.

### 2dehands data fields and complete output 📦

| Field group | Included data |
|---|---|
| Listing identity | Vehicle or listing ID, title and original advert URL |
| Vehicle specification | Make, model, variant, model year, body type, fuel and transmission when published |
| Advertised price | Asking price, currency and any published price text |
| Mileage and condition | Mileage, measurement unit, colour and published condition information |
| Seller and location | Published seller identity, seller type and vehicle location |
| Description and images | Advert description, image URLs, equipment and additional specifications |

Each collected item is a separate row. `input` identifies the submitted value and `result_type` identifies the selected mode. All returned fields appear in one table; columns that do not apply to a mode can be empty.

A complete JSON result is shown for every collection mode below, in the same order as the input examples. Each example includes every field for its mode; text and lists are not shortened. Values are representative and can change.

#### 2dehands car listings scraper — complete JSON result

```json
{
  "result_type": "2dehands-vehicle-search",
  "input": "toyota",
  "status": "success",
  "vehicle_id": "m2409803692",
  "url": "https://www.2dehands.be/v/auto-s/bestelwagens-en-lichte-vracht/m2409803692-leasing-renting-toyota-proace-l3h2-electric-battery-110kwh",
  "title": "LEASING/RENTING Toyota Proace L3H2 Electric (battery 110kWh)",
  "description": "Op zoek naar een bestelwagen, vrachtwagen of trekker in leasing? Wij regelen het snel, ook voor starters. Leasing / renting / renting zonder rente 0% voor professionelen (ook starters, met btw-nummer)",
  "make": null,
  "model": null,
  "variant": null,
  "year": 2026,
  "registration_date": null,
  "mileage": 10.0,
  "mileage_unit": "km",
  "price": 750.0,
  "currency": "EUR",
  "price_text": null,
  "price_type": "asking",
  "body_type": null,
  "fuel_type": "Elektrisch",
  "transmission": "Automaat",
  "engine_capacity_cc": null,
  "engine_power_kw": null,
  "colour": "Wit",
  "doors": null,
  "seats": null,
  "vin": null,
  "vin_is_masked": null,
  "condition": null,
  "city": "Hooglede",
  "region": null,
  "country": "België",
  "postal_code": null,
  "seller_id": "42315969",
  "seller_name": "MrLease",
  "seller_type": null,
  "seller_url": null,
  "images": [
    "https://images.2dehands.com/api/v1/hz-twh-pro-listing/images/7ebe3ef4-e6a0-4831-bbc5-20589bcbfc54?rule=ecg_mp_eps$_82.jpg",
    "https://images.2dehands.com/api/v1/hz-twh-pro-listing/images/8eddc9cd-a6f8-46a7-828a-f2225b9e2632?rule=ecg_mp_eps$_82.jpg",
    "https://images.2dehands.com/api/v1/hz-twh-pro-listing/images/c82998cb-3155-4c78-9d2d-5fbf316340ec?rule=ecg_mp_eps$_82.jpg"
  ],
  "features": [],
  "specifications.name": [
    "constructionYear",
    "mileage",
    "fuel",
    "transmission",
    "priceType",
    "euronormBE",
    "color",
    "brandGuaranteeBE"
  ],
  "specifications.value": [
    "2026",
    "10",
    "Elektrisch",
    "Automaat",
    "Te koop",
    "Euro 6",
    "Wit",
    "Toyota Plus"
  ],
  "published_at": "Vandaag",
  "updated_at": null
}
```

Images, tags and other lists stay with their parent result instead of creating extra rows. Invalid or unavailable inputs, inputs with no results, and requests that fail after all retries produce a row with `status: failed`. At most one failed row is saved per input; it includes `error_code` and `error_message` explaining the outcome. A normal end of pagination after collected results does not add a failed row.

### Input requirements and collection settings ⚙️

| Setting | What to enter |
|---|---|
| **Maximum results per search or link** (`maxResults`) | Collect up to this many results for each search or link. Minimum: 1. |
| **Keywords** (`keywords`) | Words to look for, for example Ford Focus. |

| Collection mode | Fields to use |
|---|---|
| Vehicle Search | **Keywords** |

The result limit applies separately to each search or supplied link. Collection ends earlier when no more matching results are available.

### 2dehands scraping use cases 🎯

#### Compare asking prices

Group Belgian used-car listings by make, year and mileage to compare the prices sellers advertise for similar cars.

#### Build an acquisition shortlist

Collect candidate vehicles from 2dehands, then share their prices, specifications and source links with the purchasing team.

#### Benchmark advertised stock

Compare the mix of models, ages and mileage represented in 2dehands listings when planning which vehicles to stock.

#### Track catalogue changes

Save repeated 2dehands exports and compare matching listing IDs to identify changes in advertised prices or availability.

#### Prepare market reports

Use 2dehands listing records as source material for dealer reports, pricing dashboards and automotive market analysis.

### Pricing and saved-result behavior 💰

See the Actor's **Pricing** tab for the active pricing model and current rate. Store settings may change, so this README does not claim a fixed cost.

Under dataset-item pricing:

- Each collected item saved in the dataset is one result.
- Images, tags and other values attached to that item do not create additional rows.
- Automatic retry attempts do not create extra dataset rows.
- A saved `failed` row is also one billable dataset item, including invalid inputs, unavailable items, no results, or exhausted retries. At most one failed row is saved per input, including when some results were already collected.
- `maxResults` caps all saved rows for each input, including its failed row. Repeated copies of the same input are processed once. More inputs or a higher limit can produce more saved results.

### 2dehands scraper API and integrations 🔌

Replace `$ACTOR_ID` with the ID shown in the Actor API tab and `$APIFY_TOKEN` with your token.

```bash
curl -X POST "https://api.apify.com/v2/acts/$ACTOR_ID/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"2dehands-vehicle-search","keywords":"Ford","maxResults":10}'
```

Use schedules for recurring collection, webhooks for completion notifications, and Apify integrations for Google Sheets, Make, Zapier, cloud storage, a CRM or your own application.

### Reliability, retries, and public-data limits ⚠️

Temporary connection errors, timeouts and access restrictions are retried automatically, up to five attempts. Invalid inputs save a failed row without an HTTP request; confirmed unavailable items save a failed row without unnecessary retries. Exhausted retries also save a failed row. Results already collected remain available if a later request fails, and normal pagination completion adds no error row. Collection also stops after two consecutive fully processed pages add no new results, even if the website provides another cursor. Required detail lookups are completed before checking a page; new results reset the counter, and independent reply branches are checked separately. Failures while initializing the Actor, saving data or scheduling requests stop the run instead of being reported as a failed website result.

This Actor covers vehicle listings, not every classifieds category on 2dehands.

Optional fields are available only when the website publishes them.

2dehands controls which information is publicly available. Removed, private or restricted items may be unavailable, and optional values can be null or empty. A run can still fail if the results cannot be saved.

### Frequently asked questions ❓

#### Does it require an account on 2dehands?

No. You do not need to provide an account, password or login cookies. Only publicly available information is collected.

#### How does maxResults work?

It limits the number of saved results separately for every input. The minimum is 1. With maxResults set to 10, each input returns at most 10 available results.

#### What can I use to search 2dehands?

Search by a vehicle keyword such as toyota, or enter all for the vehicle catalogue.

#### What is included in 2dehands vehicle records?

The output includes asking prices, model years, mileage, specifications and listing links when those values are published. Availability varies by listing and selected mode.

#### Why are some fields empty?

The website may not publish that value, or the field may belong to a different collection mode. Missing values remain null or empty instead of being guessed.

#### Can I export the results to a spreadsheet?

Yes. Download CSV, Excel or JSON from the Apify dataset. All returned fields are included in the same results table.

### Support and responsible use 🛟

For a reproducible issue, share the run ID, selected mode, result limit and a safe public example through the support channel. Never disclose access tokens, passwords or proxy credentials.

Use public 2dehands information lawfully and responsibly. Follow applicable privacy, copyright, data-protection, contractual and platform requirements when storing, analyzing or redistributing results.

# Actor input Schema

## `mode` (type: `string`):

Choose the information to collect.

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

Collect up to this many results for each search or link. Minimum: 1.

## `keywords` (type: `string`):

Words to look for, for example Ford Focus.

## Actor input object example

```json
{
  "mode": "2dehands-vehicle-search",
  "maxResults": 10,
  "keywords": "Ford"
}
```

# Actor output Schema

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

Collected entities and failed input outcomes, with all available fields and error explanations in one dataset.

# 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 = {
    "mode": "2dehands-vehicle-search",
    "maxResults": 10,
    "keywords": "Ford"
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapingmonkey/2dehands-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 = {
    "mode": "2dehands-vehicle-search",
    "maxResults": 10,
    "keywords": "Ford",
}

# Run the Actor and wait for it to finish
run = client.actor("scrapingmonkey/2dehands-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 '{
  "mode": "2dehands-vehicle-search",
  "maxResults": 10,
  "keywords": "Ford"
}' |
apify call scrapingmonkey/2dehands-scraper --silent --output-dataset

```

## MCP server setup

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