Fast JSON API for Leboncoin classified ads in France - ad search by category, keywords, city, postal code, department, region or radius with seller type, price, real estate (property type, surface, rooms, bedrooms, furnished) and vehicle (mileage, year) filters, ad details with photos and attributes, similar ads, categories, location lookup, seller profiles and seller ads.
Includes 100 free calls per month
After the free quota, standard per-request pricing applies via x402 (USDC on Base).
Returns an ad with its title, full description, price, status, publication and expiration dates, category, all photos, attributes (property type, surface, rooms, energy rating, mileage, brand…), location with coordinates and seller.
Request schema
Ad id, as returned by the /search endpoint (the number at the end of a leboncoin.fr ad URL).
Response schema
Returns the ads similar to an ad, each with the same fields as the /search endpoint.
Request schema
Ad id, as returned by the /search endpoint.
Response schema
{
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"category": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"price": {
"type": "integer"
},
"status": {
"type": "string"
},
"published_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"expires_at": {
"type": "null"
},
"images": {
"type": "array",
"items": {
"type": "string"
}
},
"attributes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"label": {
"type": "string"
},
"value": {
"type": "string"
},
"value_label": {
"type": "string"
}
}
}
},
"features": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"label": {
"type": [
"string",
"null"
]
},
"value": {
"type": "string"
},
"value_label": {
"type": "string"
}
}
}
},
"location": {
"type": "object",
"properties": {
"city": {
"type": "string"
},
"zipcode": {
"type": "string"
},
"district": {
"type": "string"
},
"department_id": {
"type": "string"
},
"department": {
"type": "string"
},
"region_id": {
"type": "string"
},
"region": {
"type": "string"
},
"latitude": {
"type": "number"
},
"longitude": {
"type": "number"
}
}
},
"seller": {
"type": "object",
"properties": {
"user_id": {
"type": "string"
},
"type": {
"type": "string"
},
"name": {
"type": "string"
},
"store_id": {
"type": "string"
},
"siren": {
"type": "string"
}
}
},
"has_phone": {
"type": "boolean"
},
"urgent": {
"type": "boolean"
},
"shippable": {
"type": "boolean"
}
}
}
}Lists the ad categories (real estate, vehicles, multimedia, home, fashion, jobs, services…) with their subcategories. The ids are the values accepted by the "category" parameter of the /search endpoint.
Request schema
{
"type": "object",
"properties": {}
}Response schema
{
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"subcategories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"subcategories": {
"type": "array"
}
}
}
}
}
}
}Searches the classified ads by category, keywords, location, seller type and price, with real estate (property type, surface, rooms, bedrooms, furnished) and vehicle (mileage, year) filters. Each ad comes with its id, title, full description, price, category, photos, attributes, location with coordinates and seller. Returns the total number of matches and up to 100 pages of 35 ads.
Request schema
Optional category id (e.g. "9" for real estate sales, "10" for rentals, "2" for cars). Use the /categories endpoint to list valid values.
Optional keywords (e.g. "vélo électrique").
Optional, "true" to match the keywords in the ad title only (defaults to "false").
Optional city name (e.g. "Lyon"). Use the /search/locations endpoint to list valid values.
Optional postal code narrowing the city (e.g. "69003"), used together with "city".
Optional department number instead of a city (e.g. "69").
Optional region id instead of a city (e.g. "22"). Use the /search/locations endpoint to find it.
Optional latitude of a point to search around instead of a city, used together with "longitude".
Optional longitude of a point to search around, used together with "latitude".
Optional search radius around "latitude"/"longitude" in kilometers, 1 to 200 (defaults to 10).
Optional seller type: "private" or "pro" (defaults to both).
Optional minimum price in euros.
Optional maximum price in euros.
Optional comma-separated list of property types (e.g. "house,apartment"). Use the /search/real-estate-types endpoint to list valid values.
Optional minimum living area in square meters.
Optional maximum living area in square meters.
Optional minimum number of rooms.
Optional maximum number of rooms.
Optional minimum number of bedrooms.
Optional maximum number of bedrooms.
Optional, "true" to keep furnished rentals only (defaults to "false").
Optional minimum vehicle mileage in kilometers.
Optional maximum vehicle mileage in kilometers.
Optional earliest vehicle year (e.g. 2018).
Optional latest vehicle year.
Optional sort order (defaults to "newest"). Use the /search/sort-orders endpoint to list valid values.
Optional page number, 35 ads per page and at most 100 pages (defaults to 1).
Response schema
Returns the French cities, postal codes, departments and regions matching a partially typed location, with the values to pass to the location parameters of the /search endpoint and their coordinates.
Request schema
Text typed so far (e.g. "lyon" or "69003").
Response schema
{
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"label": {
"type": "string"
},
"city": {
"type": "string"
},
"zipcode": {
"type": [
"string",
"null"
]
},
"department_id": {
"type": "string"
},
"region_id": {
"type": "string"
},
"latitude": {
"type": "number"
},
"longitude": {
"type": "number"
},
"radius": {
"type": "integer"
}
}
}
}Lists the values accepted by the "real_estate_types" parameter of the /search endpoint.
Request schema
{
"type": "object",
"properties": {}
}Response schema
{
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": "string"
},
"label": {
"type": "string"
}
}
}
}Lists the values accepted by the "sort" parameter of the /search endpoint.
Request schema
{
"type": "object",
"properties": {}
}Response schema
{
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": "string"
},
"label": {
"type": "string"
}
}
}
}Lists the ads currently published by a seller, newest first, each with the same fields as the /search endpoint. Returns the total number of ads and up to 100 pages of 35.
Request schema
Seller id, as returned in the "seller" of an ad.
Optional page number, 35 ads per page and at most 100 pages (defaults to 1).
Response schema
Returns a seller profile: name, registration date, location, last activity, reply time, rating, badges and, for professionals, their store with company numbers (SIREN, SIRET).
Request schema
Seller id, as returned in the "seller" of an ad.
Response schema
Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.
# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10
# call this service
npx @apihubio/cli call -X GET "https://proxy.apihub.io/leboncoin/v1/ad/details" \
-d '{"ad_id":"3312734760"}'Or call the proxy directly (curl / any HTTP client):
curl https://proxy.apihub.io/leboncoin/v1/ad/details \
-H "Authorization: Bearer ahk_your_key"
# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)Estimate your monthly cost for Leboncoin.