Leboncoin professional seller
A professional seller's Leboncoin shop and its ads: shop id and name, user id, slogan, description, website, SIREN and SIRET, activity sector, active since, address, city, department, region and coordinates, opening hours, logo, cover and pictures, rating (value, count, source), reply time, last activity, badges, and one page of its ads (id, title, price, category, status, publication, update and expiry dates, location, description, images, attributes, link; raw per ad). Private sellers' profiles are not offered. Pass next_page back as page (null on the last page).
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
url | string | The shop page (https://www.leboncoin.fr/boutique/<id>) or the seller's profile page (https://www.leboncoin.fr/profil/<user id>). Example: https://www.leboncoin.fr/boutique/41172 |
id | string | The shop id, instead of url. |
user_id | string | The seller's user id (owner_id of an ad from /leboncoin/v1/search), instead of url. |
page | integer | Page of the seller's ads (default 1). |
limit | integer | Ads per page, 1 to 35 (default 10). |
sort | newest | oldest | price_asc | price_desc | Order of the ads (default: the shop's own order). |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/leboncoin/v1/seller?url=https%3A%2F%2Fwww.leboncoin.fr%2Fboutique%2F41172" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/leboncoin/v1/seller",
params={"url": "https://www.leboncoin.fr/boutique/41172"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/leboncoin/v1/seller");
url.searchParams.set("url", "https://www.leboncoin.fr/boutique/41172");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).