Marktplaats
Marktplaats Categories API
The category tree of marktplaats.nl, 2dehands.be or 2ememain.be: without category_id the top-level categories with id, key and name; with a top-level category_id its subcategories with their live listing counts. Ids are the input of search; keys are the input of browse. Costs 1 credit per request.
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonsitestringdefault:marktplaats.nlmarktplaats.nl (Netherlands, Dutch), 2dehands.be (Belgium, Dutch) or 2ememain.be (Belgium, French). All EUR.
marktplaats.nl— Marktplaats, Netherlands, Dutch2dehands.be— 2dehands, Belgium, Dutch2ememain.be— 2ememain, Belgium, French
category_idstring | integerA top-level category id: its subcategories with live listing counts. Without it: the top-level categories.
Example: 445
Notes
Marktplaats. Marktplaats (marktplaats.nl) is the Netherlands' largest classifieds marketplace; 2dehands.be (Dutch) and 2ememain.be (French) are its Belgian sites. Scavio fetches the public page on request and returns what the page shows as JSON. site picks the site: marktplaats.nl (default), 2dehands.be or 2ememain.be; prices are euros on all three. Marktplaats has a partner API that needs registration and approval; this is a separate option on one Scavio key, with the same key and response envelope as every other Scavio platform. Ids are the same on all three sites; keys and names are in each site's language (keys differ between marktplaats.nl / 2dehands.be and 2ememain.be). count is the number of live listings in each subcategory as the site counts them (null when the site does not count it); total is the parent's total. An id that is not a top-level category is a charged 404.
Private sellers' names, bidder names, contact details (phone, email, address, chamber-of-commerce number), coordinates and licence plates are never returned. Ad descriptions come with phone numbers, email addresses and licence plates removed. seller.id is the site's public seller id; business_name is given for business sellers only.
| Endpoint | What it returns | Credits per call |
|---|---|---|
search | Live ads for keywords and / or a top-level category, 30 a page, with condition, facet values, an asking-price range, a postcode with a radius and five sorts; the paid block apart, facets and categories with counts | 1 |
browse | A subcategory's listing page by its keys, with one facet value and keywords, plus the page's stats (total, average asking price) | 1 |
listing | One ad by id or link: description, asking price, bids as amounts and times, views, favorites, attributes, vehicle details, shipping options, city and the seller's id and type | 1 |
seller | One seller by id or link: private or business, business name (business only), member since, rating, review count, city, verified, live listing count | 1 |
seller-listings | One seller's live ads, 30 a page, in the search card shape | 1; page 2+ 2 (see notes) |
categories | The top-level categories, or one top-level category's subcategories with live listing counts | 1 |
suggestions | The search box's suggestions for typed text, each with the category the site pairs it with | 1 |
price-guide | The asking-price bands (low, mid, high) of similar live ads on marktplaats.nl: lowest, highest and average asking price and the number of ads. Not sold prices | 1 |
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key", timeout=120)
top = client.marktplaats.categories()["data"]["categories"]
print([(c["id"], c["name"]) for c in top])
d = client.marktplaats.categories(category_id=445)["data"]
for c in d["categories"][:10]:
print(c["id"], c["key"], c["name"], c["count"])Response