# leboncoin.listing

A listing on Leboncoin: title, price, place, date, category, details, text, photos and the kind of seller.

Leboncoin listing, one of the Leboncoin scrapers.

| | |
| --- | --- |
| 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](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `listing` | string | yes | 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, … |
| `attributes[].key` | string or null | Leboncoin's own name for the detail, e.g. `mileage` or `condition`. |
| `attributes[].name` | string | The detail's label as the page shows it, e.g. `Kilométrage` or `État`. |
| `attributes[].value` | 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

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
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"}}'
```

## 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`.

```json
{
  "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.

```json
{
  "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](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the Leboncoin scrapers](https://docs.enrichednow.com/results-and-statuses.md#leboncoin) are in their own section there.
