Scraper APILeboncoin
leboncoin.listing
A listing on Leboncoin: title, price, place, date, category, details, text, photos and the kind of seller.
- Id
leboncoin.listing- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/leboncoin.listing/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
listingrequired | string | The listing's id (3308727647), or the address of its page (https://www.leboncoin.fr/ad/velos/3308727647).Limit: at least 6 characters, at most 500 characters. |
Record fields
Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.
| Field | Type | Notes |
|---|---|---|
id | string | Leboncoin's id of the listing, the digits at the end of its address. |
title | string | The listing's title. |
url | string | The listing's page on leboncoin.fr. |
category | string or null | The category it is listed in, e.g. Vélos or Voitures. |
category_id | string or null | Leboncoin's number of that category. |
price | number or null | The price asked, in euros. Null where the listing states none. |
posted_at | string (date-time) or null | When the listing was first published, with Paris's offset. |
city | string or null | The town the listing is in. |
zipcode | string or null | Its postcode. |
department | string or null | Its département, e.g. Gironde. |
region | string or null | Its region, e.g. Aquitaine. |
latitude | number or null | The latitude of the place Leboncoin shows on the listing's map (the town, or the area the seller chose). |
longitude | number or null | Its longitude. |
seller_type | string or null | private for a private person, pro for a business. |
shop_name | string or null | The business's name, for a pro seller. Always null for a private seller: a person's name is not returned. |
image | string or null | The listing's first photo. |
image_count | integer | How many photos the listing has. |
shippable | boolean or null | True when the seller offers to send the item; null where the listing does not say. |
attributes | array of object | The details the listing shows with a label, in the page's order: brand, model, mileage, size, condition, rooms, surface, … |
key (in attributes[]) | string or null | Leboncoin's own name for the detail, e.g. mileage or condition. |
name (in attributes[]) | string | The detail's label as the page shows it, e.g. Kilométrage or État. |
value (in attributes[]) | string | Its value as the page shows it, e.g. 128300 km or Bon état. |
fetched_at | string (date-time) | When the page was read, in UTC. |
description | string or null | The listing's text as the seller wrote it, with its line breaks. |
images | array of string | Every photo of the listing, largest size, in order. |
status | string or null | The listing's state as Leboncoin states it, e.g. active. |
favorites | integer or null | How many visitors have saved the listing, as the page counts them at the time of the run. |
Example request
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/leboncoin.listing/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"listing":"3285720958"}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("leboncoin.listing", {"listing": "3285720958"})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("leboncoin.listing", { listing: "3285720958" });
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "leboncoin.listing", map[string]any{"listing": "3285720958"})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("leboncoin.listing", Map.of("listing", "3285720958"));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run leboncoin.listing --input-json '{"listing":"3285720958"}'Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"input": {
"listing": "3285720958"
}
}Example response
The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.
{
"id": "run_841742f37553189ff9c27ba1",
"scraper_id": "leboncoin.listing",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"listing": "3285720958"
},
"record_count": 1,
"units": 1,
"units_per_request": 1,
"units_per_record": null,
"units_per_page": null,
"diagnostics": {
"requests": 1,
"bytes": 259214,
"wall_ms": 885,
"facts": {}
},
"created_at": "2026-11-16T22:37:50.170950Z",
"started_at": "2026-11-16T22:37:50.178331Z",
"finished_at": "2026-11-16T22:37:51.066313Z"
}Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.
{
"records": [
{
"id": "3285720958",
"title": "Chaise haute bébé",
"url": "https://www.leboncoin.fr/ad/equipement_bebe/3285720958",
"category": "Équipement bébé",
"category_id": "23",
"price": 10,
"posted_at": "2026-10-10T14:41:13+02:00",
"city": "Montesson",
"zipcode": "78360",
"department": "Yvelines",
"region": "Ile-de-France",
"latitude": 48.907,
"longitude": 2.149,
"seller_type": "private",
"shop_name": null,
"image": "https://img.leboncoin.fr/api/v1/lbcpb1/images/a0/68/33/a068338bdea62ac1a62c7a2073e28bebe954214b.jpg?rule=ad-image",
"image_count": 1,
"shippable": false,
"attributes": [
{
"key": "condition",
"name": "État",
"value": "Bon état"
},
{
"key": "baby_equipment_universe",
"name": "Univers",
"value": "Alimentation"
}
],
"fetched_at": "2026-11-19T18:10:59.748650Z",
"description": "Je vends cette chaise haute pour bébé avec sa table amovible.\n- Type de produit : Chaise haute\n- Univers : Alimentation\n- Couleur : Bleu\n\nN'hésitez pas à me contacter pour plus d'informations ou de photos.",
"images": [
"https://img.leboncoin.fr/api/v1/lbcpb1/images/a0/68/33/a068338bdea62ac1a62c7a2073e28bebe954214b.jpg?rule=ad-large"
],
"status": "active",
"favorites": 9
}
],
"next_cursor": null
}What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].
- Shortened:
attributes: 4 items, the first 2 shown.
A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the Leboncoin scrapers are in their own section there.