# 2dehands Scraper — Belgian Classifieds & Marketplace Data (`studio-amba/2dehands-scraper`) Actor

Scrape classified listings from 2dehands.be and 2ememain.be — Belgium's largest marketplace. Search by keyword, category, location, and price. No login or cookies required.

- **URL**: https://apify.com/studio-amba/2dehands-scraper.md
- **Developed by:** [Studio Amba](https://apify.com/studio-amba) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 8 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 result scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## 2dehands Scraper

Scrape classified listings from 2dehands.be (also known as 2ememain.be in French) — Belgium's largest online marketplace. Extract prices, seller info, images, location, and more. No login or cookies required.

### Why use this actor?

2dehands.be is the dominant classifieds platform in Belgium with millions of active listings across every category. This actor calls the internal 2dehands JSON API directly, giving you fast, structured data without browser overhead.

**Use cases:**

- **Price monitoring** — track secondhand prices for any product category across Flanders and Wallonia
- **Market research** — analyze listing volumes, pricing trends, and regional supply in Belgium
- **Inventory sourcing** — find deals on electronics, furniture, vehicles, and bikes
- **Competitor analysis** — monitor what sellers and small businesses are listing
- **Lead generation** — identify active sellers in specific categories or regions
- **Cross-border analysis** — 2dehands shares its backend with Marktplaats.nl, enabling BE↔NL market comparisons

No cookies, no login, no session management — pass a search query and get back clean JSON.

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | String | No | Search term (e.g. "laptop", "fiets", "iPhone 15") |
| `category` | String | No | Top-level category to filter results |
| `location` | String | No | Belgian postcode to search around (e.g. "2000" for Antwerp) |
| `distanceKm` | Integer | No | Search radius in km from the postcode |
| `minPrice` | Number | No | Minimum price filter in EUR |
| `maxPrice` | Number | No | Maximum price filter in EUR |
| `condition` | String | No | Filter: "Nieuw", "Zo goed als nieuw", or "Gebruikt" |
| `sortBy` | String | No | Sort order: relevance, newest, cheapest, most-expensive |
| `maxResults` | Integer | No | Maximum listings to return (default: 100, max: 5000) |
| `platform` | String | No | "2dehands" (default) or "marktplaats" — same backend |
| `proxyConfiguration` | Object | No | Proxy settings for extra reliability |

### Output

Each result contains:

| Field | Type | Example |
|-------|------|---------|
| `itemId` | String | `"m2145678901"` |
| `title` | String | `"iPhone 15 Pro 256GB"` |
| `description` | String | Listing description text |
| `price` | Number | `899.00` |
| `currency` | String | `"EUR"` |
| `priceType` | String | `"FIXED"`, `"BIDDING"`, `"SEE_DESCRIPTION"` |
| `condition` | String | `"Zo goed als nieuw"` |
| `deliveryMethod` | String | `"Ophalen of Verzenden"` |
| `city` | String | `"Antwerpen"` |
| `country` | String | `"Belgium"` |
| `latitude` | Number | `51.2194` |
| `longitude` | Number | `4.4025` |
| `sellerName` | String | `"Jan"` |
| `sellerId` | Number | `12345678` |
| `sellerVerified` | Boolean | `true` |
| `category` | String | `"Telecommunicatie"` |
| `imageUrls` | Array | List of image URLs |
| `listingDate` | String | `"2026-04-01T10:30:00Z"` |
| `url` | String | Full listing URL on 2dehands.be |
| `platform` | String | `"2dehands"` |
| `scrapedAt` | String | ISO timestamp of when data was scraped |

### Example output

```json
{
    "itemId": "m2145678901",
    "title": "iPhone 15 Pro 256GB - Perfecte staat",
    "description": "Verkoop mijn iPhone 15 Pro, nauwelijks gebruikt...",
    "price": 899.00,
    "currency": "EUR",
    "priceType": "FIXED",
    "condition": "Zo goed als nieuw",
    "deliveryMethod": "Ophalen of Verzenden",
    "city": "Antwerpen",
    "country": "Belgium",
    "latitude": 51.2194,
    "longitude": 4.4025,
    "sellerName": "Jan",
    "sellerId": 12345678,
    "sellerVerified": true,
    "category": "Telecommunicatie",
    "imageUrls": [
        "https://images.2dehands.be/api/v1/listing-twn-prod/images/12/12345678-abcd-1234.jpg"
    ],
    "listingDate": "2026-04-01T10:30:00Z",
    "url": "https://www.2dehands.be/v/telecommunicatie/mobiele-telefoons/m2145678901-iphone-15-pro-256gb",
    "platform": "2dehands",
    "scrapedAt": "2026-04-06T12:00:00.000Z"
}
```

### Cost estimate

This actor calls a lightweight JSON API with no browser overhead. It charges $0.02 per run (start fee, based on its 4 GB memory allocation) plus $0.002 per result: 100 results costs about $0.22, 1,000 about $2.02. A run's usage cost only settles after it reports SUCCEEDED.

### Limitations

- The API returns a maximum of 5,000 results per query
- Some fields (condition, delivery method) may be empty if the seller didn't fill them in
- Data is scraped from the public API and may change without notice
- Respect the website's terms of service and use responsibly

### How to scrape 2Dehands data

1. Go to this actor's page on the [Apify Store](https://apify.com/store).
2. Click **Try for free** to open it in Apify Console.
3. Configure your search query or URL, set the maximum number of results, and adjust proxy settings if needed.
4. Click **Start** and wait for the run to finish.
5. Download your data in JSON, CSV, Excel, or connect it to your workflow via API.

You can also schedule regular runs, set up webhooks for real-time notifications, or integrate the results directly into your application using the [Apify API](https://docs.apify.com/api).

# Actor input Schema

## `query` (type: `string`):

Search term (e.g. 'laptop', 'fiets', 'iPhone 15'). Leave empty to browse a category.

## `category` (type: `string`):

Top-level Marktplaats category to filter results.

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

Dutch or Belgian postcode to search around (e.g. '1012' for Amsterdam, '2000' for Antwerp).

## `distanceKm` (type: `integer`):

Search radius in kilometers from the postcode. Only works when location is set.

## `minPrice` (type: `number`):

Minimum price filter in euros.

## `maxPrice` (type: `number`):

Maximum price filter in euros.

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

Filter by item condition.

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

How to sort results.

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

Maximum number of listings to scrape. The API allows up to 5,000 per query.

## `platform` (type: `string`):

Which platform to scrape. Marktplaats.nl (Netherlands) and 2dehands.be (Belgium) use the same backend.

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

Proxy settings. The 2dehands API works without proxies, but you can configure them for extra reliability.

## Actor input object example

```json
{
  "query": "laptop",
  "distanceKm": 0,
  "sortBy": "relevance",
  "maxResults": 100,
  "platform": "2dehands",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "BE"
  }
}
```

# Actor output Schema

## `results` (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 = {
    "query": "laptop",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "BE"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/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 = {
    "query": "laptop",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "BE",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/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 '{
  "query": "laptop",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "BE"
  }
}' |
apify call studio-amba/2dehands-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,studio-amba/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/7tUoCHMqYMwkDU6N8/builds/CcoJKdEcZYwDpaqiB/openapi.json
