agentleFS
carabain-digitalcarabain-digital/apify-agent-skills/skills/2dehands-cars/SKILL.md

2dehands-cars

Skill1 starsChanged 10 days agoMITView on GitHub

Scrape car listings from 2dehands (2dehands.be), Belgium's biggest classifieds site: make, model, price, mileage, year, fuel, gearbox, body, Car-Pass link, seller and photos. Filter by make, model, price, year, mileage, postcode. Add-ons: full details with dealer phone, price history. Runs the Apify Actor carabain-digital/2dehands-cars. Use for tasks like: BMW diesel cars for sale on 2dehands: newest listings; Cars near Gent with price history on 2dehands.

  • Installs packages
  • Sends data out

The file

Files
SKILL.md

2dehands Car Listings Scraper

Scrape car listings from 2dehands (2dehands.be), Belgium's biggest classifieds site: make, model, price, mileage, year, fuel, gearbox, body, Car-Pass link, seller and photos. Filter by make, model, price, year, mileage, postcode. Add-ons: full details with dealer phone, price history.

Runs on Apify as the Actor carabain-digital/2dehands-cars, billed per result to the user's own Apify account.

Setup

The user needs an Apify API token in APIFY_TOKEN (console.apify.com/settings/integrations). No Apify account yet? Sign up free: no credit card needed, and the Free plan includes $5 of credit every month, enough for about 6,250 car listings with this Actor.

Run it

Apify API, waits for the run and returns the items (up to 5 minutes; for bigger runs start it with POST /v2/acts/carabain-digital~2dehands-cars/runs and read the dataset afterwards):

curl -X POST 'https://api.apify.com/v2/acts/carabain-digital~2dehands-cars/run-sync-get-dataset-items' \
  -H "Authorization: Bearer $APIFY_TOKEN" -H 'Content-Type: application/json' \
  -d '{"make": "BMW", "fuel_type": "diesel", "min_year": 2016, "limit": 200}'

Python (pip install apify-client):

import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("carabain-digital/2dehands-cars").call(run_input={"make": "BMW", "fuel_type": "diesel", "min_year": 2016, "limit": 200})
items = client.dataset(run["defaultDatasetId"]).list_items().items

MCP: add the Apify MCP server with this Actor as a tool: https://mcp.apify.com/?actors=carabain-digital/2dehands-cars.

Input

FieldTypeDescription
makestringCar make as 2dehands lists it. Example: Volkswagen, BMW, Mercedes-Benz (also VW, Mercedes); Bestelwagens en Lichte vracht for vans. Leave empty for all makes.
modelstringModel within the make (needs make); an unknown model fails with the list of the site's models. Example: Golf, 3 Reeks, A4.
min_yearintegerOldest construction year. Example: 2015.
max_yearintegerNewest construction year. Example: 2022.
min_priceintegerLowest asking price in euro. Example: 5000.
max_priceintegerHighest asking price in euro. Example: 20000.
max_mileageintegerHighest odometer reading in km. Example: 150000.
fuel_typestringFuel type. Example: diesel. Values: any, petrol, diesel, electric, hybrid, plugin_hybrid, lpg, cng, hydrogen, other. Default: "any".
transmissionstringGearbox. Example: automatic. Values: any, manual, automatic. Default: "any".
body_typestringBody type. Example: suv. Vans are a make-like section on the site: use make for them. Values: any, hatchback, sedan, wagon, suv, coupe, convertible, minivan, other. Default: "any".
conditionstringNew or used cars. Example: used. Values: any, used, new. Default: "any".
seller_typestringDealers or private sellers. Example: private. Values: any, dealer, private. Default: "any".
locationstringBelgian postcode (4 digits). Example: 9000 (Gent), 2000 (Antwerpen) or 1000 (Brussel). The site searches by postcode + distance only, so city names are rejected.
radius_kmintegerDistance around the postcode. Example: 25. Only used with a postcode. Default: 25.
start_urlsarrayCar search pages copied from 2dehands.be; they replace the filters above. Example: https://www.2dehands.be/l/auto-s/bmw/f/diesel/474/#PriceCentsTo:2500000|constructionYearFrom:2018. Filters in the path and after the # are kept; results always come newest first. Format: [{"url": "https://..."}].
limitintegerStop after this many listings (newest first). Example: 100. The site serves about 2,000 listings per search: narrow the filters (or add more search URLs) for more. Default: 100.
includeDetailsbooleanAlso open each listing's page: full description, all photos, trim/version, colour, doors, seats, engine, gears, drive, options list, seller type, dealer phone, website and postcode, exact publication date, views and favourites. Adds $1.00 per 1,000 listings on top of the base price. One extra request per listing (about 6 s per 100 listings). Default: false.
trackHistorybooleanKeep the price of every listing in a named store in your own Apify account and add first_seen_at, previous_price, price_change, price_change_pct, status_changed and price_history to each item. Run it on a schedule: the first run only starts the series. Adds $1.00 per 1,000 listings that already had history. Do not run two runs on the same store at once. Default: false.
historyStoreNamestringName of the key-value store that holds the history (letters a-z, digits, dashes). All our car Actors use cars-history by default, so history is shared between them. Use another name to keep a separate series per search, e.g. golf-watch. Default: "cars-history".

Examples

BMW diesel cars for sale on 2dehands: newest listings: Scrape the newest BMW diesel listings from 2dehands (2dehands.be): price, mileage, year, gearbox, Euro norm, Car-Pass link, city and seller. Export to JSON, CSV or Excel, or schedule it.

{
  "make": "BMW",
  "fuel_type": "diesel",
  "min_year": 2016,
  "limit": 200
}

Cars near Gent with price history on 2dehands: Scrape car listings within 25 km of Gent from 2dehands and track their price over time: asking price, price drops, mileage, year and seller. Run it daily to catch price cuts and new cars.

{
  "location": "9000",
  "radius_km": 25,
  "max_price": 15000,
  "limit": 300,
  "trackHistory": true
}

Output

One dataset item per result. Main fields: listed_at, title, price, year, mileage, fuel_type, city, url.

FieldTypeDescription
idstringStable listing ID, <source>:<site id>
sourcestringShort site name
urlstringPublic listing URL
titlestringListing title as the seller wrote it
makestringMake, e.g. Volkswagen (null for the site's vans/trucks/oldtimer sections when the seller set none)
modelstringModel as the site names it, e.g. Golf, 3-Serie
variantstringDetails add-on: trim/version, e.g. 1.5 TSI R-Line
conditionstringnew, used or classic (oldtimer section); null when the seller did not say
pricenumberAsking price in EUR; for bid listings the minimum bid. Null when the price is on request
price_currencystringEUR
price_typestringfixed, negotiable (bids accepted) or on_request
mileageintegerOdometer reading
mileage_unitstringkm
yearintegerConstruction year (bouwjaar)
first_registrationstringYYYY (the construction year; the site does not give a registration month)
fuel_typestringpetrol, diesel, electric, hybrid, lpg, cng, hydrogen or other
transmissionstringmanual or automatic
body_typestringsedan, hatchback, wagon, suv, coupe, convertible, van, minivan or other
power_kwintegerEngine power in kW
power_hpintegerEngine power in hp
engine_ccintegerEngine displacement in cc
colorstringExterior colour (Dutch, as on the site)
doorsintegerNumber of doors
seatsintegerNumber of seats
vinstringDetails add-on: VIN when the seller put one in the description
seller_typestringdealer or private (always set with the details add-on or a seller_type filter)
seller_namestringSeller or dealer name
seller_phonestringDetails add-on: phone number (dealers mostly)
seller_urlstringDetails add-on: seller profile page
addressstringPostcode and city
citystringCity
postcodestringDetails add-on: postcode (dealers)
regionstringNot given by the site
countrystringCountry code
latnumberLatitude
lonnumberLongitude
listed_atstringSearch: date of the listing or of its latest paid bump (YYYY-MM-DD); details add-on: exact first publication timestamp
image_urlsarrayPhoto URLs (search: up to 4; details add-on: all)
descriptionstringSearch: first ~300 characters; details add-on: full text
seller_idintegerSeller account id
promotedbooleanPaid 'Dagtopper' ad (bumped to the top daily)
reservedbooleanMarked as reserved
energy_labelstringEnergy label (NL)
emission_classstringEuro norm (BE)
car_pass_urlstringPublic Car-Pass mileage certificate link (2dehands)
equipmentarrayOptions list, e.g. Cruise Control, Navigatiesysteem
fuel_type_originalstringFuel as the site writes it
body_type_originalstringBody type as the site writes it
categorystringThe site's car section (make, or Bestelauto's/Vrachtwagens/Oldtimers)
license_platestringDetails add-on: licence plate (NL)
apk_untilstringDetails add-on: APK (MOT) expiry date (NL)
previous_ownersintegerDetails add-on: number of previous owners (NL)
importedbooleanDetails add-on: imported car (NL)
gearsintegerDetails add-on: number of gears
drivestringDetails add-on: driven wheels
seller_websitestringDetails add-on: dealer website
seller_active_yearsintegerDetails add-on: years the seller has been on the site
cylindersintegerDetails add-on: number of cylinders
interior_colorstringDetails add-on: interior colour
upholsterystringDetails add-on: upholstery, e.g. Leder
service_historystringDetails add-on: maintenance history, e.g. Dealer onderhouden
new_price_textstringDetails add-on: list price when new, as the site shows it (NL)
co2_g_kmintegerDetails add-on: CO2 emission in g/km
empty_weight_kgintegerDetails add-on: empty weight in kg
nap_statusbooleanDetails add-on: NAP odometer check available (NL)
view_countintegerDetails add-on: page views
favorite_countintegerDetails add-on: times saved as favourite
details_fetchedbooleanTrue when the details add-on enriched this item
first_seen_atstringPrice-history add-on: first time this listing was seen
previous_pricenumberPrice-history add-on: price at the previous run
price_changenumberPrice-history add-on: change since the previous run
price_change_pctnumberPrice-history add-on: change in percent
status_changedbooleanPrice-history add-on: status changed since the previous run
price_historyarrayPrice-history add-on: last 20 price points
scraped_atstringWhen it was scraped (UTC)

Price

Pay per result: $0.80 per 1,000 car listings on the Apify Free plan, less on paid plans. No subscription; Apify bills the run to the user's account.

  • Full details: $1.00 per 1,000. One listing enriched with its page: full description, all photos, trim, colour, doors, seats, engine, gears, options, seller type, dealer phone, website and postcode, exact publication date, views and favourites.
  • Price history: $1.00 per 1,000. One listing that already had history in your named history store, enriched with first_seen_at, previous_price, price_change, price_change_pct, status_changed and price_history. The first run of a listing is free.

Store page, reviews and full documentation: 2dehands Car Listings Scraper

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.