# 2dehands Listings Scraper (`piotrv1001/2dehands-listings-scraper`) Actor

Scrape 2dehands.be and 2ememain.be, Belgium's biggest second-hand marketplace (tweedehands, seconde main). Get titles, prices, attributes, locations, sellers and photos by keyword or URL, past the 5,000-result cap, plus optional descriptions, views, bids and shipping.

- **URL**: https://apify.com/piotrv1001/2dehands-listings-scraper.md
- **Developed by:** [FalconScrape](https://apify.com/piotrv1001) (community)
- **Categories:** E-commerce, Lead generation, Developer tools
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 listings

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

**2dehands Listings Scraper** extracts listings from **[2dehands.be](https://www.2dehands.be/)** and its French-language twin **[2ememain.be](https://www.2ememain.be/)**, Belgium's biggest marketplace for second-hand goods (tweedehands, seconde main). No login and no API key are needed. Search by keyword or paste any search or category URL, and get clean JSON with **titles, prices, locations, sellers, attributes and photos**. You can also add the **full description, posting date, views, favorites, bids and shipping options** of each listing.

Both sites show the same listings. 2dehands.be returns titles, descriptions and categories in Dutch, 2ememain.be in French. Run it on the **[Apify platform](https://apify.com/)** to get scheduling, an API, webhooks and exports to Google Sheets, Excel or CSV.

### ✨ Features

- 🇧🇪 **Dutch or French.** Pick 2dehands.be (tweedehands, Dutch) or 2ememain.be (seconde main, French). Pasted URLs keep their own site.
- 🔍 **Keyword or URL.** Search by keyword, or set up a search on the site with a category, filters, price range, location radius or sort order and paste the URL. Every filter, the sort order and the page number (`/p/3/`) are kept.
- 📦 **More than 5,000 results.** The site shows at most 5,000 results per search. Above that, the scraper splits the search by category and price automatically, so a whole category can be collected. Each listing appears once, even when searches overlap.
- 🏷️ **Rich rows.** Every listing has the price and price type (fixed, bidding, free), condition and other attributes, city with GPS coordinates, seller name and ID, all photos, and a flag for business ads.
- 📝 **Optional details.** Turn on **Include listing details** to add the full description, all specifications, the exact posting date, view and favorite counts, the category path, seller type and profile link, bids and shipping options with prices.

### 💡 Use cases

- **Price research.** Compare asking prices for phones, bikes, cars, furniture or collectibles across Belgium.
- **Resale sourcing.** Schedule a "newest first" run to catch fresh bargains for the items you buy and resell.
- **Market analysis.** Measure supply, price bands and demand (views, favorites, bids) per category or region.
- **Lead research.** Find professional sellers and dealers active in a category.

### 🛠️ How to use

1. **Enter a keyword** (for example `iphone`, `fiets` or `vélo`), or paste one or more search or category URLs.
2. **Pick the site** (Dutch or French) and the sort order.
3. **Set Max listings.** The default is 50. Use 0 for every result.
4. **(Optional) Turn on Include listing details.**
5. **Run** the Actor, then export the dataset as JSON, CSV or Excel, or read it through the API.

With empty input the Actor returns 50 listings for `iphone` from 2dehands.be.

### 📥 Input

| Field                | Type    | Description                                                                                  |
| -------------------- | ------- | -------------------------------------------------------------------------------------------- |
| `searchQuery`        | string  | Keyword to search for. Used when no URLs are given. Default `iphone`.                        |
| `site`               | string  | `2dehands` (Dutch, default) or `2ememain` (French)                                           |
| `sort`               | string  | `relevance` (default), `newest`, `oldest`, `price_asc`, `price_desc`                         |
| `startUrls`          | array   | Search or category URLs from 2dehands.be or 2ememain.be. When set, the keyword is ignored.   |
| `maxItems`           | integer | Maximum listings to save. Default `50`, `0` = no limit.                                      |
| `includeDetails`     | boolean | Add the full description, specifications, stats, seller, bids and shipping. Default `false`. |
| `proxyConfiguration` | object  | Proxy settings. The default Apify proxy works.                                               |

Example:

```json
{
    "searchQuery": "vélo électrique",
    "site": "2ememain",
    "sort": "newest",
    "maxItems": 200
}
```

Or paste URLs with filters:

```json
{
    "startUrls": [
        {
            "url": "https://www.2dehands.be/l/telecommunicatie/mobiele-telefoons-apple-iphone/#PriceCentsFrom:20000|PriceCentsTo:40000|sortBy:PRICE|sortOrder:INCREASING"
        },
        { "url": "https://www.2dehands.be/l/fietsen-en-brommers/" }
    ],
    "maxItems": 0,
    "includeDetails": true
}
```

### 📤 Output

Each listing is one dataset item:

```json
{
    "id": "m2449547044",
    "url": "https://www.2dehands.be/v/telecommunicatie/mobiele-telefoons-apple-iphone/m2449547044-iphone-15-pro-max",
    "title": "iPhone 15 Pro Max",
    "description": "256 gb box + factuur + hoesjes",
    "price": 525,
    "priceType": "FIXED",
    "currency": "EUR",
    "isCommercialAd": false,
    "date": "Vandaag",
    "categoryId": 1953,
    "attributes": {
        "condition": "Zo goed als nieuw",
        "delivery": "Ophalen of Verzenden",
        "storage": "256 GB",
        "type": "IPhone 15"
    },
    "city": "Bovesse",
    "country": "België",
    "latitude": 50.54096938348,
    "longitude": 4.7870222958941,
    "sellerId": 28184530,
    "sellerName": "Del.M",
    "sellerIsVerified": false,
    "reserved": false,
    "imageUrl": "https://images.2dehands.com/api/v1/hz-twh-pro-listing/images/9957657b-97c1-47ef-9814-e667d2f1989d?rule=ecg_mp_eps$_85.jpg",
    "imageUrls": [
        "https://images.2dehands.com/api/v1/hz-twh-pro-listing/images/9957657b-97c1-47ef-9814-e667d2f1989d?rule=ecg_mp_eps$_85.jpg"
    ]
}
```

With **Include listing details** on, each item also has:

```json
{
    "description": "Je vends mon Stelbel Nina XCr, vélo gravel haut de gamme réalisé artisanalement en Italie.\n\nLe cadre est fabriqué en acier inoxydable Columbus XCr ...",
    "specifications": {
        "État": "Utilisé",
        "Marque": "Autres marques",
        "Taille de roue": "Autres dimensions",
        "Frein": "Frein à disque"
    },
    "postedAt": "2026-09-20T07:58:29Z",
    "viewCount": 312,
    "favoritedCount": 3,
    "categoryName": "Vélos de sport",
    "categoryPath": "Vélos | Hommes | Vélos de sport & Vélo de randonnée",
    "parentCategoryName": "Vélos & Vélomoteurs",
    "adType": "RegularPaid",
    "sellerType": "CONSUMER",
    "sellerActiveYears": 3,
    "sellerProfileUrl": "https://www.2ememain.be/u/fab-franchi/48493689/",
    "sellerCity": "Limelette",
    "biddingEnabled": true,
    "bidCount": 0,
    "highestBid": null,
    "minimumBid": 4500,
    "shippingOptions": [{ "carrier": "Bpost", "method": "DELIVERY", "price": "€ 13,40" }],
    "delivery": "Enlèvement ou Envoi"
}
```

`price` is `null` for bid-only and "see description" ads. `date` is the site's own relative label (for example "Vandaag" or "Hier"); turn on details for the exact `postedAt` timestamp. Business ads (`isCommercialAd: true`) appear in relevance-sorted searches.

### 💰 How much does it cost to scrape 2dehands?

The Actor uses pay-per-event pricing, so you pay only for listings you get:

| Event           | Price                     | When it's charged                                                |
| --------------- | ------------------------- | ---------------------------------------------------------------- |
| Actor start     | **$0.00005**              | Once per run                                                     |
| Listing         | **$0.001** ($1 per 1,000) | For every saved listing                                          |
| Listing details | **$0.002** ($2 per 1,000) | On top of the listing price, for each listing saved with details |

For example, 1,000 listings cost about **$1.00**, or **$3.00** with details. Set a maximum cost per run in Apify, and the Actor stops when it reaches that cost.

### ⚙️ Tips

- **Large runs:** use 0 for Max listings. Searches above 5,000 results are split automatically; the results then come newest first within each part.
- **Daily monitoring:** schedule a run with `sort: newest` and a small `maxItems` to collect only fresh listings.
- **Location radius:** set a postcode and distance on the site and paste the URL. The radius is kept.
- **Skip details when you don't need them.** Listing rows already include the price, attributes, location and photos.

### ❓ FAQ

**Is it legal to scrape 2dehands?**
The Actor collects only publicly visible information. Seller names can be personal data. You are responsible for using the data lawfully (e.g. GDPR) and for respecting the site's terms.

**Do 2dehands.be and 2ememain.be have different listings?**
No. They are the same marketplace in two languages. A listing has the same `id` on both sites.

**Is there a result limit?**
The site shows at most 5,000 results per search. The Actor splits bigger searches by category and price. Within a single category above 10,000 listings, a few listings without a price (bid-only or "see description") may not be reachable; the run's status message says how many.

**Why did a run return fewer listings than requested?**
Either the search had fewer results, or some listings were removed between the search and the detail visit. Removed listings are skipped and not charged. The run's status message explains any shortfall.

### 🛟 Support

Missing a field or a filter? Open an issue in the **Issues** tab. Feedback and feature requests are welcome.

# Actor input Schema

## `searchQuery` (type: `string`):

What to search for, e.g. "iphone", "fiets" or "vélo". Used when no start URLs are given.

## `site` (type: `string`):

2dehands.be returns titles, descriptions and categories in Dutch, 2ememain.be in French. Both show the same Belgian listings. Pasted URLs keep their own site.

## `sort` (type: `string`):

Order of the keyword search results.

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

Optional. Paste search or category pages from 2dehands.be or 2ememain.be, with any filters, price range, sort, location radius or page number, e.g. https://www.2dehands.be/l/fietsen-en-brommers/ or https://www.2ememain.be/q/velo/#PriceCentsTo:20000. When given, the keyword above is ignored.

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

Maximum number of listings to save across all searches. Set to 0 for no limit. The site shows at most 5,000 results per search; above that the scraper splits the search by category and price automatically.

## `includeDetails` (type: `boolean`):

Open each listing page to add the full description, all attributes, posting date, view and favorite counts, category path, seller type and profile, bids, shipping options and the full image gallery. Charged as an extra event per listing.

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

Proxy settings. The default Apify proxy works well for this site.

## Actor input object example

```json
{
  "searchQuery": "iphone",
  "site": "2dehands",
  "sort": "relevance",
  "maxItems": 50,
  "includeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "searchQuery": "iphone"
};

// Run the Actor and wait for it to finish
const run = await client.actor("piotrv1001/2dehands-listings-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 = { "searchQuery": "iphone" }

# Run the Actor and wait for it to finish
run = client.actor("piotrv1001/2dehands-listings-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 '{
  "searchQuery": "iphone"
}' |
apify call piotrv1001/2dehands-listings-scraper --silent --output-dataset

```

## MCP server setup

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