curl --request POST \
--url https://api.scrapeunblocker.com/marketplace/leboncoin-search \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/marketplace/leboncoin-search"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/marketplace/leboncoin-search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Scrape Leboncoin search
Searches Leboncoin (France) for query and returns the ads as JSON: id, title, price and currency, location (city + postcode), category, publication date, image, listing url, sellerType (pro/private) and the ad’s attributes. Narrow with category, location and min_price/max_price, order with sort, and collect up to max_results across pages. Paid ‘a la une’ placements (sponsored: true) are left out unless include_sponsored=true.
curl --request POST \
--url https://api.scrapeunblocker.com/marketplace/leboncoin-search \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/marketplace/leboncoin-search"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/marketplace/leboncoin-search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Your ScrapeUnblocker API key. Apply on every request.
Query Parameters
What to search, e.g. 'velo electrique' or 'iphone 13'.
Category: vehicles, cars, motorcycles, vans, car_parts, real_estate, real_estate_sale, rentals, flatshare, holiday_rentals, commercial_property, electronics, computers, photo_audio_video, phones, consoles, video_games, computer_accessories, home_garden, furniture, appliances, diy, decoration, garden, fashion, clothing, shoes, bags_accessories, watches_jewelry, baby_equipment, leisure, books, sports, bikes, toys, music_instruments, collectibles, antiques, animals, jobs, job_offers, or a numeric Leboncoin category id.
Where to search: a city ('Bordeaux'), a city with postcode ('Toulouse 31000'), a department code ('75') or a region ('Ile-de-France').
Lowest price to include (EUR).
x >= 0Highest price to include (EUR).
x >= 0Ordering: relevance, newest, price_low, price_high.
How many listings to collect across pages.
1 <= x <= 5001-based page to start from (35 per page).
1 <= x <= 100Exit-IP country (ISO-2). Optional.
Also return Leboncoin's paid 'a la une' placements (sponsored: true). Off by default: they ignore the query, category and sort.
Response
JSON with a listings array plus totalResults.

