2dehands Ads Scraper avatar

2dehands Ads Scraper

Pricing

from $1.19 / 1,000 results

Go to Apify Store
2dehands Ads Scraper

2dehands Ads Scraper

Collect classified ads from 2dehands.be or 2ememain.be using one or more search terms. Results include titles, descriptions, seller details, locations, categories, attributes, image URLs and date labels. The Actor uses the sites’ public JSON search endpoint and supports Dutch and French searches.

Pricing

from $1.19 / 1,000 results

Rating

0.0

(0)

Developer

Axiom Works

Axiom Works

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a month ago

Last modified

Categories

Features

Limited permissions

Share

Returns: one row per ad with id, sourceUrl, title, priceCents, city, sellerName, categoryId and imageUrls. Input: {"searchQueries": ["fiets"], "language": "nl", "maxItems": 30} Best for: price monitoring, scheduled new-ad feeds, resale lead lists.

{
"id": "m2431223915",
"sourceUrl": "https://www.2dehands.be/v/fietsen-en-brommers/fietsen-dames-damesfietsen/m2431223915-velo-de-femme-vintage-excelsior",
"title": "Velo de femme vintage Excelsior",
"priceCents": 13000,
"priceType": "MIN_BID",
"city": "Schaarbeek",
"sellerName": "hé",
"condition": "Gebruikt"
}

What does 2dehands Ads Scraper do?

2dehands Ads Scraper collects classified ads from 2dehands.be, the Dutch-language Belgian marketplace, and from 2ememain.be, its French-language twin. You give it one or more search keywords and it returns the matching ads as structured rows: title, description, price, city, coordinates, seller, category, attributes, image URLs and the listing date label.

The Actor reads the public JSON search endpoint that the website itself uses to display result pages. It does not log in, does not open a browser and does not touch any private data. Because it talks to a JSON endpoint instead of rendering pages, it is fast and light on resources: one request returns up to 100 ads.

The returned fields support these uses:

  • priceCents and priceType show asking prices and bidding labels.
  • id, city and searchQuery identify ads from keyword searches.
  • sourceUrl identifies the Dutch or French listing page.
  • categoryId, sellerId, condition and delivery describe category and seller listings.
  • imageUrls contains listing image links.

This Actor is an independent tool. It is not affiliated with, endorsed by or connected to 2dehands, 2ememain or their operators.

What data can you get?

Every ad becomes one dataset item with the fields below. Fields the site does not provide for a given ad are returned as null (or an empty list), never invented.

FieldTypeDescription
idstringStable ad ID from the site, for example m2397035741
sourceUrlstringFull URL of the ad page
titlestringAd title
descriptionstringAd description as shown in search results; the site may shorten long texts
priceCentsnumberPrice in euro cents as reported by the site
priceTypestringPrice type: FIXED, MIN_BID, FAST_BID, SEE_DESCRIPTION, FREE and similar
citystringCity or area of the ad
latitudenumberLatitude of the ad location, null when the site gives none
longitudenumberLongitude of the ad location, null when the site gives none
sellerNamestringName of the seller
sellerIdnumberNumeric seller ID
categoryIdnumberNumeric category ID of the ad
attributesarrayList of {key, value} pairs such as condition and delivery
imageUrlsarrayFull HTTPS image URLs
datestringListing date label exactly as the site shows it, for example Vandaag
priceEuronumberPrice in euros (priceCents / 100), null when the ad has no fixed price
conditionstringItem condition attribute, for example Nieuw
deliverystringDelivery option attribute, for example Ophalen
sellerVerifiedbooleanWhether the site marks the seller as verified
reservedbooleanWhether the ad is marked reserved
promotedstringPromotion package such as DAGTOPPER, null if none
hasVideobooleanWhether the ad has a video
countrystringCountry name of the ad location
mainImageUrlstringFirst image URL
categorySlugstringTop-level category slug from the ad URL
searchQuerystringKeywords of the search that returned the ad

A note on prices: the site reports the price in cents. When an ad has no fixed price (priceType is SEE_DESCRIPTION or FAST_BID), the reported priceCents is 0, so always read priceCents together with priceType. Ads with a minimum bid (MIN_BID) carry the minimum bid in priceCents.

A note on dates: the search endpoint returns a relative label such as "Vandaag" (today) instead of a timestamp, and the Actor passes it through unchanged. Combine it with the run time if you need an absolute date.

How to use

  1. Open the Actor in the Apify Console and go to the Input tab.
  2. Enter one or more search keywords, for example fiets. Use Dutch words on 2dehands.be and French words on 2ememain.be.
  3. Choose the site language: nl for 2dehands.be or fr for 2ememain.be.
  4. Optionally narrow the search with a category ID, a postcode, a price range or a sort order.
  5. Set the maximum number of ads you want and start the run.
  6. When the run finishes, download the dataset as JSON, CSV, Excel or HTML, or read it through the API.

The Actor fetches 100 ads per request and waits about a second between requests to stay polite to the site. A run of a few hundred ads usually completes within a minute or two. If the first attempts are blocked, the Actor retries with backoff and switches to Apify datacenter proxy by itself.

Search queries run one after another. Search URLs also accept the query parameter form, such as https://www.2ememain.be/lrp/api/search?query=velo; the URL host selects the site, while the separate input fields provide filters. By default only keywords are read from a search URL. Enable useUrlFilters to preserve supported query-string filters. Ads that appear in more than one query are saved once, so every id in the dataset is unique. The maxItems limit applies to the whole run, not per query.

Limits of the site

The endpoint caps how deep a single search can go: at 100 ads per page, at most 50 pages (5,000 ads) are available for one combination of keyword and filters. If you need more than that, split the work into several runs with different keywords, category IDs, price ranges or postcodes.

Input

Set postedAfter and/or postedBefore to inclusive YYYY-MM-DD bounds, for example {"searchQueries":["tafel"],"postedAfter":"2026-10-01","maxItems":7}. Filtering uses dateIso in Brussels time. Empty bounds disable filtering; unreadable dates are excluded when filtering. Invalid or reversed dates return no rows with a correction message. These are current search results, not a historical archive. Narrow windows may require more pages and return fewer items. A search stops if it delivers no matching ads within 75 seconds; broaden the date window or keywords.

With onlyNewListings: true, resetState: true clears remembered IDs and seeds fresh history with returned ads. Turn resetState off afterward. History is shared across enabled schedules; avoid overlapping writes. Reset has no effect with onlyNewListings disabled.

Set distanceMeters to choose the radius around postcode, instead of the existing 25000 metre radius. The default remains 25000. Without a postcode this setting has no effect.

Set useUrlFilters to true to retain supported query-string filters from pasted search URLs. Supported parameters are l1CategoryId, l2CategoryId, postcode, distanceMeters, attributeRanges[], attributesByKey[], sortBy and sortOrder. Explicit Actor filter inputs override the same URL parameter. The default is false, preserving existing keyword-only URL behavior. Category path slugs are not converted into numeric category IDs. Use query-string category IDs or the categoryId input.

FieldTypeDescription
searchQueriesarray of stringsKeywords to search. Required unless startUrls or categoryId is set.
languagestringnl for 2dehands.be (default) or fr for 2ememain.be
startUrlsarrayOptional search URLs such as https://www.2dehands.be/q/fiets/; the keywords are extracted and the host picks the site. Category-only URLs (/l/...) are not supported
onlyNewListingsbooleanSkip ads returned by earlier runs with this option on, for scheduled runs. Default false
postedAfterstringDefault empty. Inclusive earliest dateIso, in YYYY-MM-DD form.
postedBeforestringDefault empty. Inclusive latest dateIso, in YYYY-MM-DD form.
resetStatebooleanDefault false. Clear saved IDs only with onlyNewListings: true.
categoryIdintegerOptional numeric category ID; the categoryId value of an ad works, for example 447
distanceMetersintegerRadius around postcode in metres; default 25000, from 0 to 200000.
useUrlFiltersbooleanRetain supported search URL query-string filters; default false.
postcodestringOptional Belgian postcode; radius uses distanceMeters, default 25 km
minPriceintegerMinimum price in euros, 0 for no minimum
maxPriceintegerMaximum price in euros, 0 for no maximum
sortBystringRELEVANCE (default), NEWEST, PRICE_ASC or PRICE_DESC
maxItemsintegerMaximum number of ads to save in total, 1 to 5000, default 50
proxyConfigurationobjectApify Proxy settings; no proxy by default with automatic fallback

Example input:

{
"searchQueries": ["fiets"],
"language": "nl",
"postcode": "9000",
"minPrice": 50,
"maxPrice": 500,
"sortBy": "NEWEST",
"maxItems": 100
}

Bad input

If a keyword matches nothing, the run finishes with zero items and a warning in the log. If the site cannot be reached after several retries, the Actor logs a warning and ends without pushing placeholder records. Unknown sort values fall back to relevance.

Output

Each item looks like this (shortened for readability):

{
"id": "m2448557138",
"sourceUrl": "https://www.2dehands.be/v/fietsen-en-brommers/fietsen-dames-damesfietsen/m2448557138-koga-e-nova",
"title": "Koga E-Nova",
"description": "Zeer mooie electrische fiets met lage instap. Bosch motor active line. Batterij bosch 500 wh in perfecte staat...",
"priceCents": 0,
"priceType": "FAST_BID",
"city": "Hasselt",
"latitude": 50.927036969234,
"longitude": 5.3438309048303,
"sellerName": "Guy Muller",
"sellerId": 30997031,
"categoryId": 447,
"attributes": [
{ "key": "condition", "value": "Gebruikt" },
{ "key": "delivery", "value": "Ophalen" }
],
"imageUrls": [
"https://images.2dehands.com/api/v1/hz-twh-pro-listing/images/5a78bb40-4e31-4b1a-8ed3-c16b036e7498?rule=ecg_mp_eps$_82.jpg"
],
"date": "Vandaag"
}

The dataset has an overview table with the most useful columns: source URL, title, price, price type, city, seller, category, attributes, images and date. Export formats include JSON, CSV, XML, Excel and HTML.

How much does it cost?

The Actor is charged per result: you pay for each ad saved to the dataset, and nothing for ads that were skipped as duplicates. Current pricing is shown on the Pricing tab of the Actor page, so check it there before large runs. You can also cap spending by setting maxItems, which the Actor honours exactly: a run with maxItems set to 7 saves exactly 7 ads when at least 7 exist. The run also stops successfully when its maximum cost per run allows no more results; its final status identifies that stop.

Use with AI agents (MCP)

You can call this Actor from any MCP-capable assistant through the Apify MCP server. Add it with this configuration:

{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com?tools=axiomworks/2dehands-ads-scraper"
}
}
}

Example prompts:

  • "Find the 30 newest ads for 'fiets' on 2dehands.be and list title, price and city."
  • "Search 2ememain.be for 'velo' within postcode 1000 and summarise the price range."
  • "Scrape 50 ads for 'iphone 13' priced between 200 and 500 euros and tell me which cities have the most ads."

Read priceCents together with priceType.

Integrations and API

Run the Actor from code with the Apify client libraries or plain HTTP.

Python:

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("axiomworks/2dehands-ads-scraper").call(run_input={
"searchQueries": ["fiets"],
"language": "nl",
"maxItems": 50,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item["title"], item["priceCents"], item["city"])

JavaScript:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('axiomworks/2dehands-ads-scraper').call({
searchQueries: ['fiets'],
language: 'nl',
maxItems: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.info(items.length);

cURL:

curl -X POST "https://api.apify.com/v2/acts/axiomworks~2dehands-ads-scraper/run-sync-get-dataset-items" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"searchQueries": ["fiets"], "language": "nl", "maxItems": 50}'

You can also schedule runs, send results to Google Sheets, Slack or a webhook, or connect the dataset to tools such as Make and Zapier through the standard Apify integrations. A common setup is a daily scheduled run sorted by NEWEST that feeds a spreadsheet or a database, so you only have to look at fresh ads.

FAQ

What should an AI agent change after an empty run? Try broader keywords, remove price, postcode or category filters, and check that search URLs contain /q/keywords/ or a query parameter. If onlyNewListings is enabled, try false to include remembered IDs. An unavailable search contributes no rows; other targets continue. The final empty-result status gives these next steps. A returned row is an ad, never a placeholder describing a failed target.

Which sites are covered? 2dehands.be (Dutch) and 2ememain.be (French). Pick one with the language input. Both sites share the same marketplace engine and the same field layout.

Why is priceCents 0 for some ads? Those ads have no fixed price. Check priceType: SEE_DESCRIPTION means the price is in the text, and FAST_BID means the seller takes offers. The Actor reports exactly what the site sends.

Why are latitude, longitude or city empty for some ads? Some ads are placed at country level or abroad, and the site sends no coordinates for them. The Actor leaves these fields empty instead of guessing.

Why do I get fewer ads than the total the site shows? A single search can return at most 50 pages of 100 ads. Use more specific keywords, a category ID, a price range or a postcode to split the data into smaller searches.

Are results sorted by date? Only if you choose NEWEST. The default is the site's relevance ranking, which mixes in promoted ads.

Do I need a proxy? Usually not. The Actor works without one and switches to Apify Proxy when requests are blocked. You can also turn on Apify Proxy in the input from the start.

What happens with duplicate ads? Each ad is saved once per run, even if several queries match it.

Can it scrape private messages or accounts? No. It only reads public search results and never logs in.

The Actor only reads information that the site shows to any visitor without logging in. Public listings can still contain personal data, such as a seller's display name, so handle the data under the rules that apply to you, including the GDPR in the European Union. Use it for lawful purposes, respect the terms of the site and the rights of its users, and do not send unsolicited messages to sellers based on the output. If you are unsure about your use case, seek legal advice. This Actor keeps request rates modest and does not bypass logins or CAPTCHAs.

Feedback

If a field is missing, a filter does not behave as expected or the site changes its response format, open an issue from the Actor page in the Apify Console, including the input you used and a run link. Reports with a concrete example are the fastest to fix.