# 2dehands.be & 2ememain.be Listings Scraper (`nice_dev/2dehands-listings-scraper`) Actor

Scrape 2dehands.be (NL) and 2ememain.be (FR) classified ads by keyword, category, postcode radius, price and condition, or paste search / listing URLs. Get price, bid type, GPS, seller, photos, attributes, full description, views and favourites.

- **URL**: https://apify.com/nice_dev/2dehands-listings-scraper.md
- **Developed by:** [Nice Dev](https://apify.com/nice_dev) (community)
- **Categories:** E-commerce, Lead generation, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.13 / 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.
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

### 🛒 What is 2dehands & 2ememain Listings Scraper?

**2dehands & 2ememain Listings Scraper** extracts **classified listings from [2dehands.be](https://www.2dehands.be) (Dutch) and [2ememain.be](https://www.2ememain.be) (French)**, Belgium's largest second-hand marketplaces (same platform as Marktplaats): **title, price and price type, full description, category, city with GPS coordinates, condition, delivery, photos, seller (type, seniority, business phone), views, favourites and bids** (the last five with the **Extract details** option). It works as a **2dehands.be API alternative**: run it on a schedule, call it from your code, or plug it into Make, Zapier or n8n.

Type one or **several keywords** (`fiets`, `iphone 13`, `vélo`), a **category** (`fietsen-en-brommers`, `Auto's`, `velos-velomoteurs`), **seller ids**, **listing ids**, or paste any search, category, seller or listing URL, choose the site with `language`, click **Start**, and download the listings in JSON, CSV or Excel. No login needed, and the proxy is included in the price. It is **fast: a list-only run returns 1,000 listings in about 10 seconds**.

### 📋 What data can you extract from 2dehands.be and 2ememain.be?

One item per listing, 90 fields:

| Category | What you get |
| --- | --- |
| 🏷️ **Listing** | title, link, the site's id, category and parent category — `prachtige witte damesfiets` |
| 💰 **Price and bids** | price in euros, price type (fixed, bidding, negotiable, see description, free), reserved, bidding on or off, minimum bid — `200 EUR, bidding` |
| 📝 **Text and photos** | full description (plain text and the seller's own layout), every photo in full size, video or not |
| 📍 **Location** | city, country, GPS coordinates, distance from your postcode — `Stevoort, 50.91, 5.24` |
| 🕒 **Dates** | posting date (to the second with **Extract details**), the site's own wording — `Vandaag` |
| 🚗 **Vehicles** | brand, model, year, mileage in km, fuel, gearbox, body type, licence plate, Car-Pass link, every car attribute shown on the listing — `Volkswagen Golf 2010, 212000 km, Diesel` |
| 📦 **Condition and delivery** | condition, pick-up or shipping, carriers and shipping prices, every attribute shown on the listing — `Zo goed als nieuw` |
| 👤 **Seller** | nickname, private or business, years on the site, profile link, phone and real website of businesses |
| ⭐ **Seller profile** (option) | rating, number of reviews, share of messages answered, usual reply delay, verified badges, logo |
| 📊 **Popularity** | views, favourites, paid "top" placement, urgent — `674 views, 6 favourites` |

Every field, with an example, is listed in the **Output** section below.

Fields marked **detail** in the Output tab (full `description` and `descriptionHtml`, exact `postedAt`, `viewCount`, `favoritedCount`, `sellerType`, `sellerActiveYears`, `sellerPhone`, the seller's real website, `shippingOptions`, `detailAttributes`, all photos, bids, `carPassUrl`) are filled when **Extract details** is on (off by default: a list-only scrape needs about 1 request per 100 listings). The ten `seller…` fields of the seller's profile need **Seller profile** (off by default).

### ✅ Why use 2dehands & 2ememain Listings Scraper?

- 🚀 **Fast**: a list-only run returns 1,000 listings in about 10 seconds; with details, 300 listings in about 4 minutes.
- 🇧🇪 **Both languages in one Actor**: `language: "nl"` scrapes 2dehands.be, `"fr"` scrapes 2ememain.be. A Dutch category slug works on the French site and vice versa (ids are shared, the Actor resolves them).
- 🎯 **Server-side filters**: category by name, slug or id, postcode radius, price range, one or several conditions (new, refurbished, as good as new, used, not working), pick-up or shipping, freshness (`TODAY`, `YESTERDAY`, `WEEK`), listing language, sort order, keyword in descriptions. Or paste a site URL: the filters set on the site are read from it, price, year and mileage bounds and the other ranges included; a filter of the URL the Actor cannot read is named in the run log instead of being dropped in silence.
- 🚗 **Car filters**: construction year, mileage, fuel (petrol, diesel, electric, hybrids, LPG, CNG, hydrogen), gearbox and body type, applied on the site's side — you only download (and pay for) the cars you asked for. Year and mileage work on motorcycles too. Any other filter of a category can be given by its id or range (`attributeIds`, `attributeRanges`).
- 🗂️ **Several searches in one run**: a list of keywords and / or sellers, with a cap per search so that one big search cannot eat the whole budget.
- 🔔 **Monitoring built in**: tick **Only new ads**, schedule the Actor, and each run returns (and charges) only what it has never delivered before.
- 📅 **Date and seller filters**: `postedAfter: "7 days"`, excluded words, private sellers only or professional sellers only (shops and dealers, with their phone and website) — filtered-out listings are not saved; each listing these filters check is charged a filter fee, kept or not.
- 🏪 **A seller's whole shop**: give seller ids or paste a seller page, get every listing of that seller — and every filter of the run applies to it (the keyword too: clear **Search keyword** to get every listing of the seller), so "this dealer's cars under €5,000, posted this week" is one input.
- ⭐ **The seller behind the listing** (**Seller profile**): rating, number of reviews, share of messages answered and usual reply delay, verified-business / bank / identity badges. Read once per seller, whatever the number of listings.
- 🔎 **Exact listings by id**: put listing ids (or listing URLs) into **Ad ids** to refresh a watch list — price and reserved status of the listings you already track, and their view count (with **Extract details**).
- 📊 **Signals the site does not export**: views, favourites, exact posting time, seller type and seniority, bidding status, promoted / top listings, Car-Pass link.
- 🧮 **Past the site's own limit**: the site serves about 2,000 listings of a search; ask for more and the Actor splits the search by category and price band on its own.
- 🧩 **Nothing missed, nothing twice**: several start URLs are merged and de-duplicated by listing id; sponsored "top" listings repeated on every page are skipped.
- 🔌 API, scheduling, monitoring, integrations (Make, Zapier, n8n, Google Sheets…), proxy rotation and JSON/CSV/Excel export via the Apify platform.

### 🚀 How to scrape 2dehands.be or 2ememain.be

1. Create a free Apify account.
2. Open **2dehands & 2ememain Listings Scraper** and type a **Keyword** (`query`, more of them in `searchQueries`) and/or a **Category** (`category`: slug from the site URL such as `fietsen-en-brommers/fietsen-dames-damesfietsen`, a name such as `Auto's`, or numeric ids such as `445/447`).
3. Or paste your own URLs into **Start URLs**: any search or category page (filters and page set on the site are kept, pagination is automatic), a seller's page (with the search the site offers inside it), or single listing pages. **Seller ids** lists every listing of the sellers you name; **Ad ids** takes ids such as `m2443769185`.
4. Choose the site with **Language** (`nl` = 2dehands.be, `fr` = 2ememain.be), narrow with the **Site filters** and **Actor filters** sections, set **Max items** (100 by default, 0 = no limit) and click **Start**.
5. Download the dataset in JSON, CSV, Excel or via API.

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

This Actor uses **pay per event** pricing: **$0.18 per 1,000 listings** and **$0.01 per run start**, platform usage (compute, proxy) included. Higher Apify plans pay less. Example on the Free plan: 10,000 listings ≈ $13.91; a daily monitor of 300 new listings ≈ $0.43 a run.

| Per 1,000 | Free | Bronze | Silver | Gold and above |
| --- | --- | --- | --- | --- |
| Listing saved (`apify-default-dataset-item`) | $0.18 | $0.16 | $0.14 | $0.13 |
| **Extract details** (`listing-details`, an option, off by default) | $0.36 | $0.35 | $0.34 | $0.33 |
| **Seller profile** (`seller-profile`, an option, off by default) | $7.19 | $6.09 | $4.99 | $3.99 |
| Filter check (`filter-check`) | $0.045 | $0.04 | $0.025 | $0.02 |
| Listing page filter check (`detail-filter-check`) | $0.22 | $0.21 | $0.20 | $0.19 |

- **Extract details**: each listing saved **with** the data of its page (full description, exact date, views, seller type and phone, all photos). A listing whose page could not be read is saved with its search data and not charged the option. An ad URL pasted in **Start URLs** is read from its ad page and charged as an ad page, whatever this box says; to get the card only, put the ad id in **Ad ids**.
- **Seller profile**: each listing saved **with** its seller's profile (rating, reviews, answered messages, badges, logo). A listing whose seller pages could not be read, or that the run's maximum cost could no longer pay the profile for, is saved without it and not charged the option.
- **Filter checks**: the date, excluded words and seller filters are applied by the Actor on every listing it reads (the site has none of them): each listing they check is charged, kept or not — `filter-check` on the search result, `detail-filter-check` for each listing page read by **Seller type** = professional sellers only with **Extract details** (only the listing page tells the exact seller type).

### ⚙️ Input

```json
{
    "query": "racefiets",
    "category": "fietsen-en-brommers",
    "language": "nl",
    "postcode": "2000",
    "distanceKm": 25,
    "priceMin": 200,
    "priceMax": 1500,
    "conditions": ["NEW", "LIKE_NEW"],
    "delivery": "SHIPPING",
    "offeredSince": "WEEK",
    "sortBy": "DATE_DESC",
    "maxItems": 500,
    "extractDetails": true
}
```

Petrol cars from 2020, under 50,000 km, automatic, SUV or station wagon:

```json
{
    "category": "auto-s",
    "yearMin": 2020,
    "mileageMax": 50000,
    "fuelTypes": ["PETROL"],
    "transmission": "AUTOMATIC",
    "bodyTypes": ["SUV", "STATION_WAGON"],
    "maxItems": 500
}
```

Several searches in one run, new listings only, private sellers, last 7 days:

```json
{
    "query": "bakfiets",
    "searchQueries": ["cargo bike", "longtail"],
    "maxItemsPerQuery": 100,
    "maxItems": 0,
    "postedAfter": "7 days",
    "excludeKeywords": ["gezocht", "defect"],
    "privateSellersOnly": true,
    "onlyNew": true,
    "stateKey": "bakfiets-weekly"
}
```

Every listing of two sellers:

```json
{
    "sellerIds": ["28168099", "https://www.2dehands.be/u/fitnessloods-nl/47269798/"],
    "maxItemsPerQuery": 200,
    "maxItems": 0
}
```

Or with your own URLs:

```json
{
    "startUrls": [
        {
            "url": "https://www.2dehands.be/l/fietsen-en-brommers/#f:31|PriceCentsFrom:5000|sortBy:SORT_INDEX|sortOrder:DECREASING"
        },
        { "url": "https://www.2ememain.be/l/autos/q/golf/" },
        { "url": "https://www.2dehands.be/u/jr-scooters/28168099/" },
        {
            "url": "https://www.2dehands.be/v/fietsen-en-brommers/fietsen-dames-damesfietsen/m2432642693-prachtige-witte-oxfort-damesfiets"
        }
    ],
    "maxItems": 300
}
```

| Field                                   | Notes                                                                                                                                                                                                     |
| --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `query`, `searchQueries`                | Keyword, as typed in the site's search box, and more keywords: one search per keyword (up to 100), same category and filters. Ignored when `startUrls` is set.                                            |
| `sellerIds`                             | Seller ids (or seller page URLs): every listing of each seller. Every filter applies inside the seller's listings, keywords too (one search per seller × keyword): clear **Search keyword** to get every listing of the seller.                                 |
| `category`                              | `<category>` or `<category>/<sub-category>`: slug from the site URL, name, or numeric ids. Ignored when `startUrls` is set.                                                                               |
| `language`                              | `nl` = 2dehands.be (default), `fr` = 2ememain.be. Also sets the language of the localized fields (category names, attribute labels, dates).                                                               |
| `postcode` + `distanceKm`               | Belgian 4-digit postcode and radius in km (the site offers 3, 5, 10, 15, 25, 50, 75; any value up to 500 is accepted). Fills `distanceMeters`.                                                                      |
| `priceMin` / `priceMax`                 | Euros.                                                                                                                                                                                                    |
| `conditions`                            | One or several of `NEW` / `REFURBISHED` / `LIKE_NEW` / `USED` / `NOT_WORKING` (empty = any). Auto's offers `NEW` and `USED` only. In a category without a condition filter the site ignores it and returns every listing (with several conditions, it keeps those the category has): the run log warns. A split search skips the categories that have none of them. |
| `delivery`                              | `PICKUP` or `SHIPPING` (empty = any).                                                                                                                                                                     |
| `offeredSince`                          | `TODAY` / `YESTERDAY` / `WEEK` (empty = any).                                                                                                                                                             |
| `sortBy`                                | `RELEVANCE` / `DATE_DESC` / `DATE_ASC` / `PRICE_ASC` / `PRICE_DESC`.                                                                                                                                      |
| `searchInTitleAndDescription`           | Match the keyword in descriptions too.                                                                                                                                                                    |
| `listingLanguage`                       | Keep only Dutch (`nl`) or only French (`fr`) listings, whatever the site.                                                                                                                                 |
| `yearMin` / `yearMax`                   | Construction year (cars and motorcycles). Applied by the site; not applied in other categories.                                                                                                           |
| `mileageMin` / `mileageMax`             | Mileage in km (cars and motorcycles).                                                                                                                                                                     |
| `fuelTypes`                             | One or several of `PETROL` / `DIESEL` / `ELECTRIC` / `HYBRID_PETROL` / `HYBRID_DIESEL` / `LPG` / `CNG` / `HYDROGEN` / `OTHER` (cars only: needs a cars category; empty = any).                                                        |
| `transmission`                          | `AUTOMATIC` or `MANUAL` (cars only: needs a cars category; `ANY` by default).                                                                                                                                                         |
| `bodyTypes`                             | One or several of `HATCHBACK` / `SEDAN` / `STATION_WAGON` / `SUV` / `MPV` / `COUPE` / `CONVERTIBLE` / `OTHER` (cars only: needs a cars category; empty = any).                                                                         |
| `attributeIds`                          | Any other site filter by its value id: the numbers after `f:` in a search URL (`#f:473,534`, or `473`). Several ids of one filter = either; of different filters = both.                                  |
| `attributeRanges`                       | Any other range filter as `key:from:to`, one bound may be empty (`mileage::50000`). The keys are the ones of a search URL (`mileageTo:50000`).                                                            |
| `postedAfter`, `postedBefore`           | A date (`2026-09-01`) or a period before now (`7 days`, `2 weeks`; API: `24 hours`, ISO date-times). See the tip below.                                                                                   |
| `excludeKeywords`, `privateSellersOnly` | Drop listings whose title contains one of these WHOLE words (case and accents ignored; `fiets` does not drop "damesfiets", `kinderfiets` drops "Kinderfiets 16 inch"; several words in one entry must appear together); drop professional sellers.                                                                                                |
| `sellerType`                            | `ANY`, `PRIVATE` (same as `privateSellersOnly`) or `BUSINESS` (shops and dealers only).                                                                                                                   |
| `onlyNew`, `stateKey`, `resetState`     | Only listings never delivered before under this memory key; tick `resetState` once to start over.                                                                                                         |
| `listingIds`                            | Scrape exactly these listings: the id at the end of a listing URL (`m2443769185`), the bare number, or the URL. One request each. Admarkt ids (`a…`) are not searchable by id: paste their URL instead.    |
| `extractDetails`, `includeRaw`          | Open each listing page for the full description, exact posting time, views, favourites, seller details, shipping options, all attributes and photos (default off); add the site's raw objects under `raw`. |
| `sellerProfile`                         | Add the seller's public profile (rating, reviews, answered messages, badges, logo) to every listing (option). Two extra requests per DISTINCT seller, not per listing.                                     |
| `maxItems`, `maxItemsPerQuery`          | Stop after this many listings, all searches together (0 = unlimited); cap for EACH search (keyword, seller or search URL).                                                                                |
| Advanced                                | `proxyConfiguration` (Apify Proxy by default, included in the price), `maxConcurrency` (4), `maxRequestsPerMinute` (120), `maxRequestRetries` (5), `debugLog`.                                            |

### 📦 Output

```json
{
    "id": "m2432642693",
    "url": "https://www.2dehands.be/v/fietsen-en-brommers/fietsen-dames-damesfietsen/m2432642693-prachtige-witte-oxfort-damesfiets",
    "title": "prachtige witte oxfort damesfiets",
    "description": "een zeer nette en perfect onderhouden damesfiets …",
    "descriptionHtml": "een zeer nette en perfect onderhouden damesfiets …",
    "isFullDescription": true,
    "price": 200,
    "priceCents": 20000,
    "priceType": "MIN_BID",
    "currency": "EUR",
    "isReserved": false,
    "isFree": false,
    "categoryId": 447,
    "category": "Fietsen | Dames | Damesfietsen",
    "categoryPath": "fietsen-en-brommers/fietsen-dames-damesfietsen",
    "parentCategoryId": 445,
    "parentCategory": "Fietsen en Brommers",
    "city": "Stevoort",
    "country": "België",
    "countryCode": "BE",
    "latitude": 50.9153,
    "longitude": 5.2469,
    "distanceMeters": null,
    "isAbroad": false,
    "isCountryLevelLocation": false,
    "postedAt": "2026-08-19T11:44:26.000Z",
    "isPostedAtExact": true,
    "postedAtText": "Vandaag",
    "condition": "Zo goed als nieuw",
    "delivery": "Ophalen",
    "shippingOptions": [],
    "brand": null,
    "model": null,
    "constructionYear": null,
    "mileageKm": null,
    "fuel": null,
    "transmission": null,
    "bodyType": null,
    "licensePlate": null,
    "attributes": { "condition": "Zo goed als nieuw", "delivery": "Ophalen" },
    "detailAttributes": { "Conditie": "Zo goed als nieuw", "Merk": "Overige merken", "Framehoogte": "49 tot 53 cm" },
    "mainImage": "https://images.2dehands.com/api/v1/hz-twh-pro-listing/images/d6897799-…?rule=ecg_mp_eps$_85.jpg",
    "images": ["…"],
    "imageCount": 4,
    "hasVideo": false,
    "sellerId": 30852064,
    "sellerName": "rixx",
    "sellerType": "private",
    "sellerVerified": false,
    "sellerProfileUrl": "https://www.2dehands.be/u/rixx/30852064/",
    "sellerWebsite": null,
    "sellerWebsiteDisplayUrl": null,
    "sellerWebsiteDomain": null,
    "sellerPhone": null,
    "sellerActiveYears": 14,
    "viewCount": 674,
    "favoritedCount": 6,
    "isBiddingEnabled": true,
    "minimumBid": 150,
    "bidCount": 2,
    "highestBid": 750,
    "adType": "RegularPaid",
    "isShippable": false,
    "isUrgent": false,
    "isPromoted": true,
    "priorityProduct": "DAGTOPPER",
    "traits": ["DAG_TOPPER", "PACKAGE_PREMIUM"],
    "verticals": ["bicycles_ladies_bike", "bicycles_and_mopeds"],
    "isThinContent": false,
    "isCarAd": false,
    "isAutomotiveAd": false,
    "isAnimalAd": false,
    "isCaravansAndCampingAd": false,
    "carPassUrl": null,
    "searchType": "TokenMatch",
    "language": "nl",
    "source": "www.2dehands.be",
    "searchUrl": "https://www.2dehands.be/q/fiets/",
    "raw": null,
    "scrapedAt": "2026-09-15T23:10:00.000Z"
}
```

You can download the dataset in various formats such as JSON, HTML, CSV or Excel.

#### All 90 fields

| Fields                                                                                                            | Example                                                                                                                                                                 |
| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id`, `url`, `title`                                                                                              | `m2432642693`, `https://www.2dehands.be/v/fietsen-en-brommers/.../m2432642693-...`, `prachtige witte damesfiets`                                                        |
| `description`, `descriptionHtml`, `isFullDescription`                                                             | full text (plain + the site's HTML, copied as is — not sanitized) with **Extract details** (cut at about 250 characters without)                                                                      |
| `price`, `priceCents`, `priceType`, `currency`                                                                    | `200`, `20000`, `FIXED` / `MIN_BID` / `NOTK` (negotiable) / `SEE_DESCRIPTION` / `FREE`, `EUR`                                                                           |
| `isReserved`, `isFree`, `isBiddingEnabled`, `minimumBid`                                                          | `false`, `false`, `true`, `150`                                                                                                                                         |
| `bidCount`, `highestBid` | `2`, `750` (listing page only, so with **Extract details**: `0` and empty without bids; empty without details) |
| `categoryId`, `category`, `categoryPath`, `parentCategoryId`, `parentCategory`                                    | `447`, `Fietsen \| Dames \| Damesfietsen`, `fietsen-en-brommers/fietsen-dames-damesfietsen`, `445`, `Fietsen en Brommers`                                               |
| `city`, `country`, `countryCode`, `latitude`, `longitude`, `distanceMeters`, `isAbroad`, `isCountryLevelLocation` | `Stevoort`, `België`, `BE`, `50.9153`, `5.2469`, `12400` (from your postcode), `false`, `false`                                                                         |
| `postedAt`, `isPostedAtExact`, `postedAtText`                                                                     | ISO 8601 (empty for a paid listing without details), `true` = exact time from the listing page (`false` = day only), `Vandaag`                                                                                     |
| `condition`, `delivery`, `attributes`, `detailAttributes`                                                         | `Zo goed als nieuw`, `Ophalen`, technical keys from the list (`brand`, `frameSize`, `mileage`, `fuel`…), every attribute shown on the listing page incl. car attributes |
| `shippingOptions`                                                                                                 | `[{ "carrierName": "Zelf Verzenden", "deliveryMethod": "UNKNOWN_BECAUSE_DIY", "price": null, "label": null }]` (about 1 listing in 4)                                   |
| `brand`, `model`, `constructionYear` | `Volkswagen`, `Golf`, `2010` (vehicles; `brand` also for bikes, phones…)                                                                                                |
| `mileageKm`, `fuel`, `transmission`, `bodyType` | `138000`, `Diesel`, `Automaat`, `SUV of Terreinwagen` (cars; from the search result, else from the listing page; empty for other listings) |
| `licensePlate` | `R-563-KX` (cars whose seller gives it; listing page only, so with **Extract details**) |
| `mainImage`, `images`, `imageCount`, `hasVideo`                                                                   | full-size photo URLs                                                                                                                                                    |
| `sellerId`, `sellerName`, `sellerType`, `sellerVerified`, `sellerProfileUrl`                                      | `30852064`, `rixx`, `private` / `business`, `false`, `https://www.2dehands.be/u/rixx/30852064/`                                                                         |
| `sellerWebsite`, `sellerWebsiteDisplayUrl`, `sellerWebsiteDomain`, `sellerPhone`, `sellerActiveYears`             | business sellers: the site's tracked link, the **real website** (`jrscooters.be`), its domain, phone                                                                    |
| `sellerRating`, `sellerReviewCount`, `sellerResponseRate`, `sellerResponseTimeMinutes`, `sellerResponseText`      | with **Seller profile**: `4.8`, `38`, `65` (% of messages answered), `451` (usual delay in minutes), the site's own wording                                             |
| `sellerIsSmbVerified`, `sellerHasBankAccount`, `sellerHasIdentification`, `sellerPaymentMethod`, `sellerLogoUrl`  | with **Seller profile**: the badges shown on the seller's page                                                                                                          |
| `viewCount`, `favoritedCount`                                                                                     | `674`, `6`                                                                                                                                                              |
| `adType`, `isShippable`, `isPromoted`, `isUrgent`, `priorityProduct`, `traits`, `verticals`                       | `RegularPaid`, `true`, `true`, `false`, `DAGTOPPER`, `["DAG_TOPPER"]`, `["bicycles_ladies_bike"]`                                                                       |
| `isThinContent`, `isCarAd`, `isAutomotiveAd`, `isAnimalAd`, `isCaravansAndCampingAd`, `carPassUrl`                | site flags, Car-Pass link for cars                                                                                                                                      |
| `searchType`, `language`, `source`, `searchUrl`, `scrapedAt`                                                      | `TokenMatch`, `nl`, `www.2dehands.be`, the search (or seller page, or piece of a split search) it was found in, ISO timestamp                                                                       |
| `raw`                                                                                                             | with **Include raw site data**: the site's own card and listing-page objects                                                                                            |

### 💡 Tips

#### How to get more results

The site itself stops serving a big search after about 2,000 listings (sorted by price, after 5,000). When you want more than that from one search, the Actor **splits it for you**: by main category, then by sub-category (small ones grouped), then by price band — each piece is a search the site serves in full, and every listing is saved and charged once. The run log says how a search was split. Each piece is the site's own search in that category, which matches the keyword a little more loosely than the search as a whole, so a split search can return more listings than the total the site shows for it: add `excludeKeywords` or a `category` to keep it tight, and cap the run with `maxItems`. Listings without a price (bids, "see description") belong to no price band: in a sub-category of more than 2,000 listings, only those among its first 2,000 are reached (the run log warns). A seller's shop is never split. You can also paste several search URLs into `startUrls`: results are merged and de-duplicated by listing id. Set `maxItems` to `0` to take everything a search exposes.

#### Several searches in one run

Fill `searchQueries` and / or `sellerIds`: the Actor runs one search per keyword (same category and filters); with sellers, each keyword is searched inside each seller's listings (one search per seller × keyword, never on the whole site), up to 500 searches per run. The single `query` field still works and is added to the list. A listing found by several searches is saved — and charged — once. Set `maxItemsPerQuery` to give every search its own cap: without it the first searches can use up the whole `maxItems` budget. You can also paste several search or seller URLs into `startUrls`: each one is a search of its own, with the same cap. Several keywords in one category cost a single category lookup.

#### Monitoring: only the new listings

Tick **Only new ads** (`onlyNew`) and schedule the Actor. The first run returns everything; each later run skips the listings already delivered: they are not saved, not charged, and their page is not even opened. The memory lives in a named key-value store of your account (`2dehands-listings-scraper-seen`, up to 150,000 listings per key) and is only updated with listings that really reached the dataset, so a failed run never hides anything. Give each schedule its own `stateKey` (two schedules sharing a key would hide each other's listings), and tick `resetState` once to start over. Searches are then sorted by newest, and a run reads each search down to the day of your previous run. We measured that sort on the site: only the day it prints goes down, not the publication time. A listing from a seller with no other listing online stands about 3 days ahead of the others, so the listings of the hour can start far down the results, below hundreds of listings you already have (position 470 on the keyword `fiets`, about 1,600 on all of Cars). The run reads on past them: a listing you already have is skipped, free of charge, and never ends the search while it prints that day or a later one. A search ends on listings printed before that day: 100 already delivered in a row, or with a cap (`maxItems`, `maxItemsPerQuery`) the first whole page of them. With a cap, the run also skips, free of charge, the listings published before the newest one you already have: the cap left them out, they are not new, so a capped run never charges older listings when nothing is new, even when a listing it delivered was sold since. With a sort of your own (another sort in the form or in a pasted URL), a search stops after 20 results pages in a row (2,000 listings) where every listing was already delivered (one new listing on a page starts the count again): a new listing placed further down is not found. A listing your filters drop is checked (and charged the filter check) once: the next runs with the same filters skip it for free; change a filter, or tick `resetState`, to check them again.

#### Filter by publication date

`postedAfter` and `postedBefore` take a date (`2026-09-01`, the whole day is included, Belgian time) or a period before now (`7 days`, `2 weeks`, `1 month`; via the API also `24 hours` or a full ISO date-time). The filter reads `postedAt`. With **Extract details** that date is exact to the second; the search results only print the day (`Vandaag`, `3 sep 26`), so a list-only run keeps every listing of a day that overlaps your period (`isPostedAtExact` tells which precision you got). That day follows the site's sort, not the publication: a listing from a seller with no other listing online prints `Vandaag` for up to 3 days after it was published, so a list-only run keeps it, while with **Extract details** it is read and charged the filter check before its exact date drops it. On the very biggest searches such listings can come 300 in a row: the search then ends with a warning and the listings below it are not read, so narrow that search (category, price) or leave **Extract details** off. A paid listing (Dagtopper, Topadvertentie, Admarkt shop ad) shows the day of its paid placement instead — often `Vandaag` on a listing posted weeks before — so without **Extract details** its `postedAt` is empty and the date filters leave it out; with it, its listing page gives the real date. A listing without a date is dropped as soon as a date bound is set. Filtered-out listings are not saved and do not count in `maxItems`, and each listing checked costs a filter fee, kept or not; the run summary tells how many were filtered. With `postedAfter`, keyword and category searches are sorted by newest and stop at the first page that is entirely too old.

#### A seller's whole shop

Put seller ids (the number in `https://www.2dehands.be/u/<name>/<id>/`, also the `sellerId` output field) or seller page URLs into `sellerIds`, or paste seller pages into `startUrls`. Each seller is a search of its own, 100 listings per request, and **every filter of the run applies to it**: a keyword, a category, a price range, a condition, a sort order, `onlyNew`, the date filters (the form pre-fills a keyword: clear **Search keyword** to get every listing of the seller). Pasting `https://www.2dehands.be/u/<name>/<id>/q/<word>/` or `/l/<category>/` into `startUrls` works too (in `sellerIds` such a URL is refused, so that its search is never dropped) — that is the search the site itself offers inside a seller's page.

#### Exactly the listings you name

Put listing ids into `listingIds` (`m2443769185`, the bare number, or the listing URL). Each id is looked up on the site and saved with the same fields as any other listing — handy to refresh a watch list every morning. A listing that has been removed is reported in the `FAILED_REQUESTS` record instead of failing the run: it is counted apart ("1 no longer on 2dehands — 0 failed requests"), never as a failure. Listings whose id starts with `a` (Admarkt, the site's paid placements) cannot be found by id: paste their URL into `startUrls`.

#### The seller behind the listing

Tick **Seller profile** (`sellerProfile`) to add the seller's rating, number of reviews, share of messages answered, usual reply delay and profile badges to every listing. The seller's page is read **once per seller**, so a run over 500 listings of 20 sellers costs 40 extra requests, not 1,000 — but the option (event `seller-profile`) is charged **per listing** delivered with a profile. Sellers with no review get `null`, not a zero.

#### How to reduce costs

The price is per listing, so the levers are `maxItems`, `maxItemsPerQuery`, the filters of the site itself (price, condition, delivery…: a listing they drop is never read; the Actor's own filters cost a fee per listing checked) and `onlyNew` (a listing already delivered is free). Leaving `extractDetails` off (the default) keeps runs much faster (about 1 request per 100 listings) and has no `listing-details` event (except for an ad URL pasted in `startUrls`, read from its ad page and charged as an ad page; use `listingIds` for the card only); leaving **Seller profile** off (the default) has no `seller-profile` event.

### 🔌 Integrations and API

Call the Actor via the Apify API, the JavaScript or Python clients, or connect it with integrations and webhooks (Make, Zapier, n8n, Google Sheets, Slack, Airtable…). The dataset can be fetched as JSON or CSV from any tool.

### 🤖 Use with AI agents (MCP)

AI agents (Claude, ChatGPT, Cursor…) can find and run this Actor through the [Apify MCP server](https://mcp.apify.com), billed to their Apify account like any run. It returns one item per 2dehands.be or 2ememain.be classified listing. Actor id: `nice_dev/2dehands-listings-scraper`; MCP server with this Actor only: `https://mcp.apify.com/?tools=fetch-actor-details,nice_dev/2dehands-listings-scraper`.

Smallest input, for a cheap first call:

```json
{
    "query": "fiets",
    "maxItems": 10
}
```

Key output fields: `url`, `title`, `price`, `currency`, `city`, `postedAt`, `condition`, `sellerName`.

Cost: per listing saved plus a small fee per run start, options (`listing-details` with `extractDetails`, `seller-profile` with `sellerProfile`, both off by default) and the Actor's own filters on top — see the pricing section above and the **Pricing** tab. Cap each call with `maxItems` and, through the API, with the run option `maxTotalChargeUsd`.

### ❓ FAQ

#### Is it legal to scrape 2dehands.be and 2ememain.be?

The Actor only reads what the sites show publicly to any anonymous visitor: listings, seller nicknames, the ratings and reply statistics printed on a seller's page, and the contact details businesses publish themselves. It logs in to nothing. Phone numbers are returned for **business sellers only**, as on the site; private sellers appear with their public nickname. Results can contain personal data, which is protected by GDPR: do not store it without a legitimate reason, and do not use seller data for unsolicited contact. You are responsible for using the data in compliance with the sites' Terms of Use and applicable law. This Actor is not affiliated with 2dehands, 2ememain, Marktplaats or Adevinta.

#### Does it need a login or a proxy?

No login. The proxy is included in the price: leave the default setting (the residential proxy is not available). A request the sites turn away is retried at once on a new proxy session; without a proxy, after a pause of 5 seconds, doubled at each retry up to 60 seconds.

#### Is the data safe to open in Excel or to show on a web page?

Titles and descriptions are the sellers' own words, copied as they are. A text can begin with `-`, `+`, `=` or `@` (a phone number, a title such as `-20% vandaag`): Excel and Google Sheets may read such a cell of a CSV file as a formula or as a number. The Actor leaves the text as it is, so that the JSON and the API give the real value: when you open a CSV, import these columns as text. On a web page, escape every field like any text written by a stranger — `descriptionHtml` in particular holds the seller's own HTML, which the Actor does not sanitize.

#### Known limitations

- A search the site will not serve in full (more than about 2,000 listings, 5,000 sorted by price) is split automatically when you want more than that (see Tips): the listings then come piece by piece, not in one overall order, and listings without a price are reached only among the first 2,000 of each big sub-category. With `onlyNew`, a newest-first search is split only when the run asks for all of it (`maxItems` and `maxItemsPerQuery` at 0, or above the total the site shows for the search) and only on the first run: capped, its first run keeps the newest listings the site serves (about 2,000; the log says so), so that the next run stops right at them instead of returning older listings the cap left out; once the memory holds a previous run, a later run is not split: it reads what the site serves of the search (the log warns when a search has more). On the biggest searches the listings of the hour start deep in that range (about position 1,600 on all of Cars): run such a search every few hours, or narrow it by category or price, so that new listings do not slip past what the site serves.
- The exact posting time, views, favourites, seller type, business phone, all attributes and all photos come from the listing page: they are `null` (or day-precise for the date) when `extractDetails` is off.
- `condition` is empty for cars in list-only mode (the site puts it in the car attributes of the listing page).
- The site has no seller-type filter: `privateSellersOnly` / `sellerType` is applied by the Actor. Without `extractDetails` it relies on what the search result shows (paid shop listing, website link, dealer features such as call tracking or trade-in), so a professional with a plain listing can slip through private sellers only, and is missed by professional sellers only. With `extractDetails`, professional sellers only opens every listing page of the search (each one is charged as a filter check, kept or not); a run that finds 300 private listings in a row stops and says so.
- An unknown seller id is not an error for the site: the run saves nothing for it and says so in the log, instead of failing.
- `onlyNew` remembers listing ids, not their content: a listing whose price changed is not returned again. Two runs sharing the same `stateKey` at the same time may both return the same new listing.
- **Newest first** is the site's own order, not the publication time: paid listings first, then the listings of sellers with no other listing online (up to 3 days old), then the listings of the hour. A small `maxItems` on a big search therefore returns none of the listings of the hour; a scheduled **Only new ads** run reads past the others and returns them.
- `onlyNew` + newest first: listings printed before the day of your previous run are never read, older listings an earlier capped run left out included; that is what "new" means. Under a cap, a listing that comes back up the results without ever having been delivered keeps its old publication order and is not returned, and neither is a paid (promoted) listing that was never delivered and is older than the last one delivered; without a cap they are.
- **Seller profile** costs two extra requests per seller and can be empty: a seller with no review has `null`, not a zero, and a profile page that does not answer leaves the ten fields empty rather than losing the listing. Without **Extract details**, a results page waits at most 30 seconds for its sellers' pages: when they answer that slowly, its remaining listings are saved without the profile (the log says so). Those requests are not counted in the run's request budget, so a search where almost every listing has a different seller runs at up to three times the request rate — lower `maxRequestsPerMinute` if your runs start showing retries.
- Sponsored "top" listings are skipped; a listing that disappears between the search and the detail fetch is listed in the `FAILED_REQUESTS` record of the key-value store, not in the dataset — and counted as "no longer on 2dehands", not as a failed request (no warning, the run stays green).

**A run that reaches its timeout** stops itself about 45 seconds before it: no new page is asked, what it read is saved and, with `onlyNew`, remembered, and the run ends *Succeeded* with "Stopped before the run's timeout". Resurrect it to go on from there, or give the next run a longer timeout (Run options).

**A run the platform stops without warning** (out of memory)

- Resurrect it: it goes on from where it stood at most a minute before the stop. What it had read since is read again, and the ads already saved are skipped: none is delivered or charged twice, and `maxItems` still counts them.
- With `onlyNew`, the memory is saved after each write (at most once every 2 seconds): resurrect the stopped run and the ads it had saved meanwhile join the memory; leave it stopped for good, and the next run may return the ads of its last 2 seconds once more.

#### Something doesn't work?

The last line of the log counts the listings saved, filtered out, already delivered (`onlyNew`) and no longer on 2dehands (removed while the run was reading them), and the requests that failed after every retry. Those requests and the removed listings are listed, with the reason, in the `FAILED_REQUESTS` record of the run's key-value store. A run that saved nothing and had failed requests fails, and its last message gives the cause (a category slug the site does not know says so, instead of "run it again"). A run that saved some listings fails too when at least as many requests failed for good as were read (page 1 read, the next pages or the listing pages blocked): a green run with a short dataset would hide the outage. One failed request among many is only a warning.

If the site changes its pages, you are told instead of paying for blank rows. A results page that counts listings but gives none the Actor can read is an error (listed in `FAILED_REQUESTS`), never a quiet "No ads found"; so is a full first results page that no longer says how many listings the search holds (the search would otherwise stop at its first 100), a listing card without the link to its page (with `extractDetails`), and a piece of a split search that the site answers empty although it counted listings in that category. If the first 20 listings read all lack their title, publication date (with `extractDetails`, the exact time of the listing page), description, price type, price amount, city, category or seller — or, with `extractDetails`, the data of their listing page — the run saves nothing more, stops and fails, and its last message names the missing field: at most those first listings are charged. A listing that `postedAfter` / `postedBefore` drops because it has no date at all counts among those 20. A run of fewer listings (a scheduled `onlyNew` run that finds a few new ones, a small **Max items**) is checked at its end, from 5 listings: its listings are already saved, and the run fails with the missing field instead of ending green. Listings that say nothing about a field are left out of its count: no amount for "see description", no city for a listing placed at the country level.

### 🛟 Support

Open an issue in the **Issues** tab with a link to your run: the run log and the `FAILED_REQUESTS` record of the key-value store show exactly which URLs failed and why.

# Actor input Schema

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

2dehands.be or 2ememain.be URLs: keyword search (`/q/fiets/`), category (`/l/fietsen-en-brommers/fietsen-dames-damesfietsen/`), category + keyword (`/l/auto-s/q/golf/`), a seller's page (`/u/<name>/<id>/`) or a single ad (`/v/...`, read from its ad page and charged as an ad page whatever Extract details says). Filters set on the site (price, postcode, distance, sort, condition, delivery) are read from the URL and applied. When this list is not empty, the search fields below are ignored (ad ids in `listingIds` are still scraped). Max 1 000 URLs.

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

Keyword searched in ad titles (whole site or inside the chosen category). Use the language of the chosen site: `fiets` on 2dehands.be, `vélo` on 2ememain.be.

## `searchQueries` (type: `array`):

Several keywords in one run (max 100): one search per keyword, all with the same category and filters. Added to **Search keyword**; an ad found by several searches is saved once.

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

Category slug or name as shown in the site URL, optionally with a sub-category: `fietsen-en-brommers`, `fietsen-en-brommers/fietsen-dames-damesfietsen`, `Auto's`, `velos-velomoteurs` (2ememain.be). Numeric ids also work: `445` or `445/447`. Leave empty to search all categories (a keyword is then required).

## `sellerIds` (type: `array`):

Every ad of these sellers: the number at the end of a seller's page URL (`https://www.2dehands.be/u/<name>/<id>/`, also in the `sellerId` output field), or that URL. One search per seller, and the filters below apply to it like to any keyword search — a seller plus a keyword or a category is the search the site itself offers inside a seller's page. Search keyword is pre-filled: clear "Search keyword" to get every ad of the seller.

## `listingIds` (type: `array`):

Scrape these ads and nothing else (keywords, category and sellers are then ignored): the id at the end of an ad URL (`https://www.2dehands.be/v/.../m2443769185-title` → `m2443769185`), the bare number, or the URL itself. The site finds an ad from its id alone, whatever its category. Admarkt ads (ids starting with `a`) cannot be looked up this way: paste their URL in Start URLs instead.

## `language` (type: `string`):

`nl` = 2dehands.be (Dutch), `fr` = 2ememain.be (French). Same ads, same ids; category slugs, attribute labels and dates come in that language.

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

Stop after this many ads (all searches and start URLs together). 0 = no limit. The site serves about 2 000 ads of one search (5 000 sorted by price): ask for more and the Actor splits the search by category and price band on its own — the run log says how.

## `maxItemsPerQuery` (type: `integer`):

Cap for EACH search (keyword, seller, or search URL), so that the first search cannot use up the whole **Max items** budget. 0 = no per-search cap.

## `postcode` (type: `string`):

Belgian postcode (4 digits, e.g. `1000` Brussels, `2000` Antwerp, `9000` Ghent) used as the centre of the distance filter. Unknown postcodes are ignored by the site.

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

Radius around the postcode in kilometres (the site offers 3, 5, 10, 15, 25, 50, 75). 0 = whole country. Ignored without a postcode.

## `priceMin` (type: `integer`):

Lowest price in euros (inclusive).

## `priceMax` (type: `integer`):

Highest price in euros (inclusive).

## `conditions` (type: `array`):

Item condition, one or several (Nieuw / Refurbished / Zo goed als nieuw / Gebruikt / Niet werkend — Neuf / Reconditionné / Comme neuf / Utilisé / Ne fonctionne pas). Empty = any. Auto's offers New and Used only. A category without this filter ignores it and returns every ad (with several conditions, it keeps those the category has): the run log warns. A split search skips the categories that have none of them.

## `delivery` (type: `string`):

Keep only ads the seller lets you pick up (Ophalen / Enlèvement) or is ready to ship (Verzenden / Envoi).

## `offeredSince` (type: `string`):

The site's own freshness filter: ads posted today / since yesterday / in the last week. For an exact period use **Posted after**; for monitoring use **Only new ads**.

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

Order of the results (matters when maxItems cuts the list). `RELEVANCE` = the site's default ranking; with **Posted after** or **Only new ads** it becomes `Newest first`, which lets the run stop early.

## `searchInTitleAndDescription` (type: `boolean`):

Match the keyword in the description too, not only in the title (broader results).

## `listingLanguage` (type: `string`):

Keep only ads written in Dutch or in French (both sites list the same ads).

## `yearMin` (type: `integer`):

Cars and motorcycles (category `auto-s` / `autos` / 91, `motoren` / `motos` / 678): oldest construction year. Applied by the site; in other categories it is not applied.

## `yearMax` (type: `integer`):

Cars and motorcycles: newest construction year.

## `mileageMin` (type: `integer`):

Cars and motorcycles: lowest mileage in kilometres.

## `mileageMax` (type: `integer`):

Cars and motorcycles: highest mileage in kilometres.

## `fuelTypes` (type: `array`):

Cars only: needs a cars category ("auto-s", or "autos" on 2ememain.be); the site ignores it elsewhere. One or several fuels. Empty = any.

## `transmission` (type: `string`):

Cars only: needs a cars category ("auto-s", or "autos" on 2ememain.be); the site ignores it elsewhere. Automatic or manual gearbox.

## `bodyTypes` (type: `array`):

Cars only: needs a cars category ("auto-s", or "autos" on 2ememain.be); the site ignores it elsewhere. One or several body types. Empty = any.

## `attributeIds` (type: `array`):

Any other filter the site offers in a category, by its value id — the numbers after f: in a search URL (`#f:473,534` = petrol + automatic, or `473` alone). Several ids of one filter = either; of different filters = both. Easier: set the filters on the site and paste the URL in Start URLs.

## `attributeRanges` (type: `array`):

Any other range filter of a category as key:from:to (one bound may be empty): `<key>:150:` (from 150), `<key>:60:120` (between), `<key>::100` (up to 100). The keys are the ones in a search URL after the # sign (`<key>From:150`, `<key>To:100`). Year, mileage and price have their own fields.

## `postedAfter` (type: `string`):

Only ads posted on or after this date: `2026-09-01`, or a period before now such as `7 days`, `2 weeks`, `1 month` (API: `24 hours` and full ISO date-times work too). The date read is `postedAt`: exact to the second with **Extract details**, to the day without it — and none for a paid ad (Dagtopper, Topadvertentie, Admarkt: the list shows the day of its paid placement), which a list-only run leaves out.

## `postedBefore` (type: `string`):

Only ads posted on or before this date (the whole day is included), or older than a period such as `30 days`.

## `excludeKeywords` (type: `array`):

Drop the ads whose title contains one of these WHOLE words (case and accents ignored), e.g. `gezocht`, `defect`, `kinderfiets`: `kinderfiets` drops "Kinderfiets 16 inch" but `fiets` does not drop "damesfiets". Several words in one entry (`hand made`) must appear together, in that order. Chinese, Japanese, Korean, Thai, Lao, Khmer and Burmese words are found anywhere in the title (no spaces there).

## `privateSellersOnly` (type: `boolean`):

Drop the ads of professional sellers (shops, dealers). Exact with **Extract details** (the ad page tells the seller type); without it, professional = paid shop ad, ad with a website link or dealer features. Same as **Seller type** = private sellers only.

## `sellerType` (type: `string`):

Keep only private sellers, or only professional sellers (shops, dealers). The site has no such filter: the Actor applies it, and each ad it checks is charged a filter fee, kept or not. Professional sellers only + **Extract details** opens every ad page to read the exact seller type (a dealer often looks private in the search result); without **Extract details** it keeps the ads that look professional in the search result (paid shop ad, website link, dealer features).

## `onlyNew` (type: `boolean`):

Skip the ads that a previous run (same **Memory key**) already delivered: they are not saved and not charged, and their page is not even opened. First run = everything is new.

## `stateKey` (type: `string`):

Name of the memory used by **Only new ads**. Give each schedule / task its own key (e.g. `fiets-gent`) so that they do not share their memory. Letters, digits, `-` and `_`.

## `resetState` (type: `boolean`):

Forget everything remembered under this **Memory key** before the run: this run returns (and charges) every ad again. Untick it afterwards.

## `extractDetails` (type: `boolean`):

Open every ad page (one extra request per ad) to add the full description (text + HTML), exact posting date, view and favourite counts, seller type / seniority / phone and real website (professional sellers), shipping options, all attributes and every photo. Charged as a separate `listing-details` event, only for listings saved with the data of their page. Off = list data only (description cut at about 250 characters, posting date to the day), no `listing-details`. An ad URL pasted in Start URLs is read from its ad page and charged as an ad page, whatever this box says; to get the card only, put the ad id in Ad ids.

## `includeRaw` (type: `boolean`):

Add the site's own objects (search card + ad page data) to every item under `raw`, for fields this Actor does not map. Roughly doubles the size of an item.

## `sellerProfile` (type: `boolean`):

Read each seller's public profile once and add it to every ad of that seller: rating and number of reviews, share of messages answered and usual reply delay, verified-business / bank / identity badges, payment method and logo. Two extra requests per DISTINCT seller (not per ad). Charged as an option per ad delivered WITH its seller's profile (see the Pricing tab). These two requests are not counted in the run's request budget: on a search where nearly every listing has a different seller, lower `maxRequestsPerMinute` if retries appear.

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

Apify Proxy or your own proxies. Keep the default: it is included in the price. The residential Apify proxy is not available in this Actor.

## `maxConcurrency` (type: `integer`):

Maximum number of requests processed in parallel, 4 by default. Raise it step by step if the log shows no failed requests.

## `maxRequestsPerMinute` (type: `integer`):

Global request rate, 120 by default. Lower it if the log shows failed requests.

## `maxRequestRetries` (type: `integer`):

Retries per request on network errors, 5xx or blocks before it is given up and listed in the FAILED_REQUESTS record.

## `debugLog` (type: `boolean`):

Verbose log (every page and ad).

## Actor input object example

```json
{
  "query": "fiets",
  "searchQueries": [],
  "sellerIds": [],
  "listingIds": [],
  "language": "nl",
  "maxItems": 100,
  "maxItemsPerQuery": 0,
  "distanceKm": 0,
  "conditions": [],
  "delivery": "ANY",
  "offeredSince": "ANY",
  "sortBy": "RELEVANCE",
  "searchInTitleAndDescription": false,
  "listingLanguage": "ANY",
  "fuelTypes": [],
  "transmission": "ANY",
  "bodyTypes": [],
  "attributeIds": [],
  "attributeRanges": [],
  "excludeKeywords": [],
  "privateSellersOnly": false,
  "sellerType": "ANY",
  "onlyNew": false,
  "stateKey": "default",
  "resetState": false,
  "extractDetails": false,
  "includeRaw": false,
  "sellerProfile": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxConcurrency": 4,
  "maxRequestsPerMinute": 120,
  "maxRequestRetries": 5,
  "debugLog": false
}
```

# 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": "fiets",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nice_dev/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 = {
    "query": "fiets",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("nice_dev/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 '{
  "query": "fiets",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call nice_dev/2dehands-listings-scraper --silent --output-dataset

```

## MCP server setup

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