# Leboncoin Scraper - Listings, Sellers & SIREN (`nice_dev/leboncoin-listings-scraper`) Actor

Scrape leboncoin.fr listings by keyword, category, location or search URL: price, GPS, date, seller, SIREN, real-estate and car details. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/nice_dev/leboncoin-listings-scraper.md
- **Developed by:** [Nice Dev](https://apify.com/nice_dev) (community)
- **Categories:** Real estate, E-commerce, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.54 / 1,000 listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### 🔎 What is Leboncoin Scraper?

**Leboncoin Scraper** extracts **listings from [leboncoin.fr](https://www.leboncoin.fr)**: **title, price, previous price, photos, town with its GPS position, publication date, seller and the SIREN of professional sellers**, plus the real-estate and car characteristics, for any keyword, category, location, seller or search URL. It works as a **Leboncoin API alternative**: run it on a schedule, call it from your code, or plug it into Make, Zapier or n8n.

Type a **keyword** (`vélo électrique`), pick a category and a place, or paste any leboncoin.fr search URL, click **Start**, and download the listings in JSON, CSV or Excel. No login, nothing to set up, and the options you do not need stay unticked: you pay for what you use.

### 📋 What data can you extract from Leboncoin?

One item per listing, 124 fields:

| Category | What you get |
| --- | --- |
| 🏷️ **Listing** | title, link, Leboncoin number, category, offer or request, « Urgent » and paid visibility options — `RENAULT Mégane IV Estate 1.6 TCe 205 GT EDC` |
| 💰 **Price** | price in euros, the previous price when the seller lowered it and the drop in % — `12490 EUR`, was `13490` (−7.4 %) |
| 🕒 **Dates** | first publication (what the date filters read), last time pushed back to the top, expiry date, days online |
| 📍 **Location** | town, postal code, department, region, GPS position, and whether it is the seller's address or the town centre |
| 👤 **Seller** | name, private or professional, seller page, rating out of 5, phone number shown or not, refuses salespeople's calls; for professionals the **SIREN**, shop name and logo |
| 🏠 **Real estate** | property type, living and land area, rooms, bedrooms, price per m², energy and greenhouse-gas classes, furnished |
| 🚗 **Vehicles and goods** | make, model, year, mileage, fuel, gearbox, item condition |
| 📝 **Full listing details** (option) | full description, every photo, every characteristic: floor, heating, energy budget, notary fees, charges, deposit, doors, seats, power, version, Crit'Air, features list, and **Leboncoin's market price range for cars** — `13870` to `15330`, « Bonne affaire » |
| ❤️ **Favorites** (option) | how many users saved the listing |
| 🪪 **Seller profile** (option) | member since, area, response time and rate, last activity, badges, number of listings, rating by category |
| 🏢 **Pro company file** (option) | SIRET, street address with GPS, opening hours, website, presentation, services, team, Google rating and latest Google reviews |
| ⭐ **Seller reviews** (option) | the written reviews a private seller received: first name of the author, bought or sold, rating out of 5, text, date, item traded, seller's reply, and how many reviews in all |
| 🔗 **Search** | the search that found the listing, the same search as a leboncoin.fr link, rank, price range |

Every field, with an example, is listed in the **Output** section below.

The five options are unticked by default and charged only for the listings delivered with them. Without them, their fields are `null` (or empty lists).

### ✅ Why use Leboncoin Scraper?

- 🚀 **Complete listings, fast**: Leboncoin's results come up to 100 full listings at a time, and **Full listing details** opens no extra page.
- 🏢 **SIREN, GPS and price drops in every row**: the SIREN of each professional seller, the GPS position of each listing, its previous price, the drop in % and its days online, all in the base price.
- 🚗 **Car market price**: with **Full listing details**, Leboncoin's market price range for each car and its verdict (« Bonne affaire », « Prix équitable »…).
- 🔎 **More than 3,500 listings per search**: Leboncoin stops at 3,500; the Actor cuts a bigger search into price ranges by itself and saves each listing once.
- 🧭 **Every Leboncoin filter**: category, seller type, price, real estate (type, rooms, area, energy class…), cars (make, year, mileage, fuel, gearbox), delivery — and **any other filter of the site by its own name**.
- 📍 **Search where you want**: a town with a radius, a postal code, a department, a region or a GPS point, several in one run.
- 👤 **All the listings of a seller**: give a seller id or a profile URL.
- ⭐ **What buyers say about a seller**: with **Seller reviews**, the written reviews of each private seller (rating, text, date, item traded), not only a score.
- 🔔 **Monitoring built in**: tick **Only new listings**, schedule the Actor, and each run returns (and charges) only what it has never delivered before.
- 🧾 **Pay only for the options you tick**: full details, favorites, seller profile, seller reviews, pro company file (SIRET, address, opening hours, Google rating).
- 🔌 API, scheduling, integrations (Make, Zapier, n8n, Google Sheets…), proxy rotation and JSON/CSV/Excel export via the Apify platform.

### 🚀 How to scrape Leboncoin

1. Create a free Apify account.
2. Open **Leboncoin Scraper** and type a **Search keyword** (e.g. `vélo électrique`); pick a **Category** and a **Location** (town, postal code, department or region), or leave them empty for all of France.
3. Or paste your own leboncoin.fr URLs into **Start URLs**: any search results page (all filters set on the site are kept, pagination is automatic), listing pages or seller profile pages.
4. Set **Max listings** (100 by default, 0 = no limit) — and **Max listings per search** when you run several searches — tick the options you need, then click **Start**.
5. Download the dataset in JSON, CSV, Excel or via API.

### 💰 How much does it cost to scrape Leboncoin?

This Actor uses **pay per event** pricing: you pay for each listing saved to the dataset, plus a small fee per run start. The prices for each Apify plan are shown in the **Pricing** tab. Platform usage (compute, proxy) is included in the price.

- **Each listing saved**: every field of the base, SIREN, GPS and price drop included.
- **Options**, only for the listings delivered with them: **Full listing details** (`ad-details`), **Favorites count** (`ad-favorites`), **Seller profile** (`seller-profile`) **Pro company file** (`business-seller-info`: professional sellers with a Leboncoin shop only, a private seller is never charged) and **Seller reviews** (`seller-reviews`: private sellers only, charged per listing delivered with at least one review).
- **Filters**: the Leboncoin filters (seller type, price, real estate, cars, delivery, other filters) are applied by Leboncoin itself and cost nothing. A listing that one of the Actor's own filters drops (dates, excluded words, phone, urgent, the other department of Corsica) is not saved and costs only the `filter-check` fee.
- **Monitoring**: with **Only new listings**, a listing already delivered is neither saved nor charged.

### ⚙️ Input

```json
{
    "query": "vélo électrique",
    "location": "Lyon",
    "radiusKm": 20,
    "maxItems": 200
}
```

Flats for sale in the Rhône department, 3 rooms or more, energy class A to C, with the full details:

```json
{
    "category": "9",
    "location": "69",
    "realEstateTypes": ["2"],
    "minRooms": 3,
    "maxPrice": 350000,
    "energyRates": ["a", "b", "c"],
    "extractDetails": true,
    "maxItems": 500
}
```

Several searches, a cap per search, only recent listings, only the ones not delivered before:

```json
{
    "searchQueries": ["clio", "208"],
    "category": "2",
    "locations": ["Lyon", "Marseille"],
    "maxItemsPerQuery": 50,
    "postedAfter": "7 days",
    "onlyNew": true,
    "stateKey": "cars-lyon-marseille"
}
```

Or with your own URLs, and all the listings of a seller with their profile and company file:

```json
{
    "startUrls": [
        { "url": "https://www.leboncoin.fr/recherche?category=9&locations=Lyon__45.758_4.8351_10000_10000&price=100000-300000" },
        { "url": "https://www.leboncoin.fr/c/voitures?price=5000-8000" },
        { "url": "https://www.leboncoin.fr/ad/ventes_immobilieres/3300998510" }
    ],
    "maxItems": 500
}
```

```json
{
    "sellerIds": ["ebd029d5-5688-4e39-927d-56d0c4856d0e"],
    "includeSellerDetails": true,
    "includeBusinessInfo": true
}
```

| Field | Notes |
| --- | --- |
| `query`, `searchQueries` | Free-text search, as typed on leboncoin.fr (`canapé cuir`, `golf 7`); `searchQueries` adds more keywords (one search each, up to 100). Empty = every listing of the category and location. Ignored when `startUrls` is set. |
| `searchInTitleOnly` | Match the keywords in the listing title only (Leboncoin's « Rechercher dans le titre uniquement »), not in the description. |
| `category` | One Leboncoin category, or a group such as « Immobilier (all) » that covers its sub-categories. Empty = all categories. |
| `location`, `locations` | Where to search: a town (`Lyon`, `Saint-Denis 93200`), a postal code (`69003`), a department number (`69`, `2A`, `974`), a region (`Bretagne`, `Île-de-France`) or a GPS point (`45.764,4.8357`). Empty = all of France. A name several towns share is the most populated town of that exact name: add the postal code to choose another one. Corsica: `2A` or `2B` keeps the listings of that department only, `20` = all of Corsica. `locations` adds more places (up to 100): every keyword is searched in every location (max 500 searches per run). |
| `radiusKm` | Distance around a town, a postal code or a GPS point, in km (10 by default, up to 200). 0 = the town itself only (for a postal code: that postal code only); a GPS point needs a radius of 1 km or more. Ignored for departments and regions. |
| `startUrls` | leboncoin.fr search pages (`https://www.leboncoin.fr/recherche?category=9&locations=Lyon__45.758_4.8351_10000_10000&price=100000-300000`: every filter set on the site is kept, tracking keys such as utm_source, kst or from are dropped, pagination is automatic; a filter name Leboncoin does not know finds no listing, and the log then names it), category pages (`https://www.leboncoin.fr/c/voitures?price=5000-8000`, `https://www.leboncoin.fr/c/ventes_immobilieres/real_estate_type:2`: the same search, with the same filters), listing pages (`https://www.leboncoin.fr/ad/ventes_immobilieres/3300998510`) or seller profile pages (`/profile/<id>`: all their listings), up to 1,000 URLs. A URL keeps its own filters: the keyword, location and filter fields are then ignored (the log says so). For a pro, paste its profile page or one of its listings, not its shop page. |
| `sellerIds` | All the listings of these sellers: Leboncoin user id (`ebd029d5-5688-4e39-927d-56d0c4856d0e`) or profile URL, up to 500. Each seller is a search of its own; the filters still apply. |
| `adIds` | Leboncoin listing numbers (`3300998510`), up to 10,000, read one by one. A listing that no longer exists is reported in the log. |
| `maxItems`, `maxItemsPerQuery` | `maxItems`: stop after this many listings for the whole run, after deduplication and filters (`0` = no limit). `maxItemsPerQuery`: cap for EACH search (keyword × location, search URL or seller), so that the first search cannot use up the whole budget (`0` = no per-search cap). |
| `sellerType` | `private` sellers, `pro` professionals, or `all` (default). Sent to Leboncoin with the search: no listing is read for nothing. |
| `adType` | `offer` (default: things for sale or rent) or `demand` (people looking for something). |
| `minPrice`, `maxPrice` | Price range, in euros. |
| `sortBy` | `newest` (default, the best with `onlyNew`), `oldest`, `price_asc`, `price_desc` or `relevance`. Sorting by price puts the listings without a price first unless `minPrice` is set. |
| `splitByPrice` | Leboncoin shows at most 3,500 listings for one search. Ticked (default): when a search has more and your caps ask for more, the Actor cuts it into price ranges, each read on its own, duplicates saved once. Untick to stop at 3,500 per search. |
| `shippableOnly` | Only the listings that can be sent by post (« livraison possible »). |
| `realEstateTypes`, `energyRates`, `furnished` | Real estate: property type (house, flat, land, parking, other), energy class (DPE, A to G), furnished or unfurnished (rentals). |
| `minRooms`, `maxRooms`, `minBedrooms`, `maxBedrooms` | Number of rooms (« pièces ») and of bedrooms, from / to. |
| `minSurface`, `maxSurface`, `minLandSurface` | Living area and land area, in m². |
| `carBrands` | Car makes as written on Leboncoin (`Renault`, `Peugeot`, `Mercedes-Benz`; case ignored), up to 50. Voitures category. |
| `minYear`, `maxYear`, `minMileage`, `maxMileage` | First registration year and mileage in km, from / to. |
| `fuels`, `gearboxes` | Fuel (petrol, diesel, LPG, electric, hybrid, plug-in hybrid, natural gas, other) and gearbox (manual, automatic). |
| `customFilters` | Any other filter of the site, with Leboncoin's own names and values, as seen in the address bar of a leboncoin.fr search: a range such as {"square": "50-100"} or a list such as {"vehicle_type": "berline,suv"}, up to 30. Added to the filters above. A name Leboncoin does not know finds no listing: copy it exactly. |
| `postedAfter`, `postedBefore` | Publication date range (Leboncoin's first publication date, Paris time): a date (`2026-09-01`, the whole day is included) or a period before now (`7 days`, `24 hours`, `2 weeks`, `30 days`). A listing pushed back to the top keeps its first date. |
| `excludeKeywords` | Drop the listings whose title contains one of these WHOLE words (case and accents ignored), up to 50: `pièces` drops « Golf pour pièces ». Several words in one entry (`hors service`) must appear together, in that order. |
| `requirePhone`, `urgentOnly` | Keep only the listings whose seller shows a phone number on Leboncoin (the number itself is not extracted), or only those marked « Urgent ». |
| `stateKey`, `onlyNew`, `resetState` | Monitoring: `onlyNew` skips the listings that a previous run with the same memory key (`stateKey`, e.g. `lyon-apartments`) already delivered: not saved, not charged. `resetState` forgets that memory before the run. |
| `extractDetails` | Option: the full description, every photo and every characteristic of the listing. No extra page is read. Charged per listing delivered with its details. |
| `includeFavorites` | Option: how many users saved each listing. One extra request per listing (slower). Charged per listing delivered with its count. |
| `includeSellerDetails` | Option: the seller's public profile. One extra request per distinct seller, shared by all their listings. Charged per listing delivered with a profile. |
| `includeBusinessInfo` | Option, for professional sellers with a Leboncoin shop: their company file. One extra request per distinct shop. Charged per listing of a pro delivered with it; private sellers are never charged. |
| `includeSellerReviews` | Option: the written reviews each private seller received (author's first name, bought or sold, rating, text, date, item traded, seller's reply) and their totals. One extra request per distinct private seller, shared by all their listings; professional sellers have no Leboncoin reviews. Charged per listing delivered with at least one review. |
| `maxReviewsPerSeller` | With **Seller reviews**: how many of each seller's latest reviews to include, 1 to 300 (20 by default). The totals always count all of them. |
| Advanced | `proxyConfiguration` (keep the default Apify proxy, included in the price; Apify's residential proxy is not available), `maxConcurrency` (4 by default), `maxRequestsPerMinute` (60 by default; one request = up to 100 listings), `minRequestIntervalMs` (0 by default), `maxRequestRetries` (5 by default), `debugLog`. |

### 📦 Output

A car listing of a professional seller, with **Full listing details** on (shortened: 46 of the 124 columns, 2 of the 5 photos, 4 of the characteristics, 3 of the features, the description cut):

```json
{
    "id": "3259923299",
    "url": "https://www.leboncoin.fr/ad/voitures/3259923299",
    "title": "RENAULT Mégane IV Estate 1.6 TCe 205 GT EDC",
    "category": "Voitures",
    "categoryId": "2",
    "price": 12490,
    "currency": "EUR",
    "oldPrice": 13490,
    "priceDropPercent": 7.4,
    "publishedAt": "2026-10-31T18:44:16.000Z",
    "city": "Chuzelles",
    "zipcode": "38200",
    "departmentCode": "38",
    "region": "Rhône-Alpes",
    "latitude": 45.56899,
    "longitude": 4.8823,
    "locationPrecision": "address",
    "sellerType": "pro",
    "sellerName": "MAZENS AUTO PASSION",
    "siren": "990706491",
    "hasPhone": true,
    "isUrgent": false,
    "visibilityOptions": [],
    "daysOnline": 6,
    "brand": "Renault",
    "model": "Megane",
    "year": 2016,
    "mileage": 115500,
    "fuel": "Essence",
    "gearbox": "Automatique",
    "description": "MAZENS AUTO PASSION vous propose :\n\nRENAULT Mégane 4 Estate 1.6 TCe 205 GT EDC break, 5 portes. Essence.\n\nGarantie 12 mois, extension de garantie possible jusqu'à 60 mois.…",
    "images": [
        "https://img.leboncoin.fr/api/v1/lbcpb1/images/7e/50/7c/7e507c10c49389d025fc8ac13da2bb2120e987ef.jpg?rule=ad-large",
        "https://img.leboncoin.fr/api/v1/lbcpb1/images/19/29/44/1929448441f4519febae03f131651eb6d8b0ae31.jpg?rule=ad-large"
    ],
    "attributes": {
        "u_car_finition": "GT",
        "vehicle_type": "Break",
        "vehicle_technical_inspection_a": "2028",
        "vehicle_commercial_warranty_duration": "12 mois"
    },
    "features": ["Aide au stationnement", "Alerte de franchissement involontaire de ligne (AFIL)", "Allumage automatique des phares"],
    "marketPriceMin": 13870,
    "marketPriceMax": 15330,
    "marketPricePosition": "Bonne affaire",
    "sellerBadges": [],
    "businessServices": [],
    "businessTeam": [],
    "businessGoogleReviews": [],
    "sellerReviews": [],
    "searchQuery": "all listings",
    "searchUrl": "https://www.leboncoin.fr/recherche?category=2&sort=time&order=desc&page=1",
    "position": 10,
    "scrapedAt": "2026-11-07T15:46:00.000Z"
}
```

Every column is always there: `null` (or an empty list) when Leboncoin gives nothing or the option is off. The Output tab has four views: Overview, Real estate, Vehicles and Seller. You can download the dataset in various formats such as JSON, HTML, CSV or Excel.

#### All 124 fields

| Fields | What you get |
| --- | --- |
| `id`, `url`, `title` | **Listing**: Leboncoin number `3259923299`, the listing page, the title as written by the seller |
| `category`, `categoryId`, `adType`, `status` | `Voitures`, `2` (the ids of the Category input), `offer` or `demand`, `active` |
| `price`, `currency`, `oldPrice`, `priceDropPercent` | **Price**: `12490`, `EUR` (null without a price), the crossed-out previous price `13490`, the drop `7.4` (%) |
| `publishedAt`, `republishedAt`, `expiresAt`, `daysOnline` | **Dates** (ISO 8601, UTC): first publication (what the date filters read), last push back to the top, expiry if not renewed, whole days since the first publication `6` |
| `city`, `zipcode`, `department`, `departmentCode`, `country`, `region` | **Location**: `Chuzelles`, `38200`, `Isère`, `38`, `FR` (overseas departments included), `Rhône-Alpes` |
| `latitude`, `longitude`, `locationPrecision` | GPS position `45.56899`, `4.8823`; `address` = the street address given by the seller, `city` = the town centre |
| `sellerType`, `sellerName`, `sellerId`, `sellerUrl` | **Seller**: `private` or `pro`, display name (company name for a pro), Leboncoin user id (use it in `sellerIds`), profile or shop page |
| `storeId`, `storeName`, `storeLogo`, `siren` | Professionals: shop id, shop name and logo, SIREN `990706491` (9 digits); null for private sellers |
| `sellerRating`, `sellerRatingCount`, `hasPhone`, `noCanvassing` | rating out of 5 shown on the listing and its number of ratings, phone number shown on Leboncoin (the number itself is not extracted), refuses salespeople's calls |
| `isUrgent`, `isBoosted`, `visibilityOptions` | « Urgent », paid boost active, paid visibility options active (`urgent`, `booster`, `gallery`…) |
| `shippable`, `condition`, `thumbnail`, `imagesCount` | can be sent by post, item condition (`Excellent état (proche du neuf)`), first photo, number of photos |
| `realEstateType`, `surface`, `landSurface`, `rooms`, `bedrooms`, `pricePerSquareMeter`, `energyRate`, `ghgRate`, `furnished` | **Real estate**: house, flat, land, parking or other; living and land area in m²; rooms; bedrooms; price per m² computed by Leboncoin; energy and greenhouse-gas classes A-G (`Vierge` when no diagnosis was made); furnished rental |
| `brand`, `model`, `year`, `mileage`, `fuel`, `gearbox` | **Vehicles**: `Renault`, `Megane`, `2016`, `115500` km, `Essence`, `Automatique` (brand also for goods that have one) |
| `description`, `images`, `attributes`, `features` | **Full listing details** option: full text, every photo in large size, every characteristic as `name: shown value`, listed features (« Balcon », car equipment…) |
| `floor`, `elevator`, `buildingYear`, `heating`, `annualEnergyCost`, `notaryFees`, `agencyFeesPaidBy`, `monthlyCharges`, `securityDeposit` | details option, real estate: floor, elevator, year built, heating, annual energy budget (`1000-1400 €`), estimated notary fees, agency fees paid by `seller`, `buyer` or `buyer_and_seller`, monthly charges, deposit |
| `doors`, `seats`, `color`, `horsepower`, `fiscalHorsepower`, `vehicleVersion`, `critAir`, `vehicleHistoryUrl` | details option, cars: doors, seats, colour, power in hp, French fiscal horsepower, version, Crit'Air class, vehicle history report link |
| `marketPriceMin`, `marketPriceMax`, `marketPricePosition` | details option, cars: Leboncoin's market price range `13870` to `15330` and its verdict `Bonne affaire` |
| `customRef`, `proWebsite` | details option: the seller's own reference, the pro's own page for this listing |
| `favoritesCount` | **Favorites** option: number of users who saved the listing |
| `sellerRegisteredAt`, `sellerLocation`, `sellerResponseTime`, `sellerLastActiveAt`, `sellerBadges`, `sellerTotalAds` | **Seller profile** option: member since, area, usual response time, last activity, badges (`VerifiedPhoneNumber`…), number of listings online |
| `sellerDescription`, `sellerSector`, `sellerReplyRate`, `sellerReplyMinutes`, `sellerRatingsReceived`, `sellerRatingDetails`, `sellerPicture` | profile option: profile text, business sector of a pro (`CarDealer`…), reply rate in %, response time in minutes, number of ratings, rating out of 5 by category, profile picture |
| `businessSiret`, `businessAddress`, `businessZipcode`, `businessCity`, `businessLatitude`, `businessLongitude` | **Pro company file** option (pros with a Leboncoin shop): SIRET (14 digits), street address, postal code, town, GPS position of the shop |
| `businessWebsite`, `businessOpeningHours`, `businessDescription`, `businessSlogan`, `businessActiveSince`, `businessServices`, `businessTeam` | company file option: website, opening hours, presentation, slogan, shop opened on Leboncoin since, services (« Reprise de véhicules »…), team as `name — position` |
| `businessGoogleRating`, `businessGoogleRatingCount`, `businessGoogleReviews` | company file option: Google Maps rating out of 5, number of ratings, latest reviews (author, rating, text, date) |
| `sellerReviews`, `sellerReviewsTotal`, `sellerReviewsWithText`, `sellerReviewsFromBuyers`, `sellerReviewsFromSellers` | **Seller reviews** option (private sellers): the latest written reviews, newest first (`author` first name, `authorRole` `buyer` or `seller`, `rating` out of 5, `text`, `date`, `itemTitle`, `automatic`, `reply`), the number of reviews in all `46`, with a text `13`, from buyers `36`, from sellers `10` |
| `searchQuery`, `searchUrl`, `position`, `priceRange`, `scrapedAt` | **Search**: the search that found the listing (`all listings`, or the keyword and place, such as "vélo" in Lyon), the same search as a leboncoin.fr link, rank in the results (1 = first), the price range it was read in when the search was cut, time of the extraction |

### 💡 Tips

#### How to get more results

Set `maxItems` to `0`, keep **Get more than 3 500 per search** (`splitByPrice`) ticked and use a broad search (a category for all of France, no keyword). Leboncoin shows at most 3,500 listings for one search; past that, the Actor cuts the search into price ranges (up to 1,000 per search, the listings without a price being one of them), reads each on its own and saves a listing found twice once. The `priceRange` column tells which range a listing came from (`position` is then empty). The cut only happens when your caps ask for more than 3,500.

#### How to reduce costs

The price is per listing, so the levers are `maxItems`, `maxItemsPerQuery`, the Leboncoin filters (applied by Leboncoin: a listing they leave out is never read nor charged), the Actor's own filters (a listing they drop costs only the filter fee) and `onlyNew` for recurring runs (you never pay twice for the same listing). Tick an option only when you need its fields.

#### Several searches in one run

Fill `searchQueries` and / or `locations`: the Actor runs one search per keyword × location (3 keywords × 4 cities = 12 searches, up to 500 per run, sellers of `sellerIds` multiplying them too). The single `query` and `location` fields still work and are added to the lists. A listing found by several searches is saved — and charged — once. Set `maxItemsPerQuery` to give every search its own cap: without it the first searches can use up the whole `maxItems` budget. You can also paste several search URLs into `startUrls`: each one is a search of its own, with the same cap.

#### Any Leboncoin filter, by its name

Set the filter on a leboncoin.fr search and read its name and value in the address bar: `...&vehicle_type=berline,suv&square=50-100` becomes `"customFilters": {"vehicle_type": "berline,suv", "square": "50-100"}`. Or paste the whole URL into `startUrls`: every filter it carries is kept. A name Leboncoin does not know finds no listing (Leboncoin reads it as a filter nothing matches): copy the names exactly as the address bar shows them. When such a search finds nothing, the log names its `customFilters` to check — and, for a pasted URL, the filters it carries that this Actor has no field for.

#### Monitoring: only the new listings

Tick **Only new listings** (`onlyNew`) and schedule the Actor. The first run returns everything; each later run skips the listings already delivered: they are not saved and not charged. The memory lives in a named key-value store of your account (`leboncoin-listings-scraper-seen`, up to 150,000 listings per key) and is only updated with listings that really reached the dataset, so a failed run never hides anything. Give each schedule its own `stateKey` (two schedules sharing a key would hide each other's listings), and tick `resetState` once to start over. A listing its seller pushes back to the top is not new: it is skipped, not charged. With the default sort (newest first), a search stops once it meets a long run of listings you already have (500 in a row, fewer under a small **Max listings**), so a daily run reads little more than the new listings; a search cut into price ranges stops range by range.

#### Filter by publication date

`postedAfter` and `postedBefore` take a date (`2026-09-01`, the whole day is included, Paris time) or a period before now (`7 days`, `2 weeks`, `1 month`, `24 hours`; via the API also a full ISO date-time). The filter reads `publishedAt`, Leboncoin's first publication date: a listing pushed back to the top keeps its first date. A listing without a publication date is dropped as soon as a date bound is set. Filtered-out listings are not saved and do not count in `maxItems` (each listing dropped costs the filter fee, see Pricing); the run summary tells how many were filtered. With the default sort (newest first), a search stops at the first page that is entirely too old.

### 🔌 Integrations and API

Call the Actor via the Apify API, the JavaScript or Python clients, or connect it with integrations and webhooks (Make, Zapier, n8n, Google Sheets, Slack, Airtable…). The dataset can be fetched as JSON or CSV from any tool.

### 🤖 Use with AI agents (MCP)

AI agents (Claude, ChatGPT, Cursor…) can find and run this Actor through the [Apify MCP server](https://mcp.apify.com), billed to their Apify account like any run. It returns one item per Leboncoin listing. Actor id: `nice_dev/leboncoin-listings-scraper`; MCP server with this Actor only: `https://mcp.apify.com/?tools=fetch-actor-details,nice_dev/leboncoin-listings-scraper`.

Smallest input, for a cheap first call:

```json
{
    "query": "vélo électrique",
    "location": "Lyon",
    "maxItems": 10
}
```

Key output fields: `url`, `title`, `price`, `city`, `latitude`, `longitude`, `publishedAt`, `sellerType` and `siren`.

Cost: pay per event, for each listing saved plus a small fee per run start; the options are charged only when ticked. The prices are in the Pricing tab, see the pricing section above. Cap each call with `maxItems` and, through the API, with the run option `maxTotalChargeUsd`.

### ❓ FAQ

#### Is it legal to scrape Leboncoin?

The Actor only reads what Leboncoin shows publicly to any anonymous visitor. It logs in to nothing and extracts no phone number. Results can contain personal data (a seller's display name, the town and GPS position of a listing, the profile of a seller and the reviews they received, with the first names of their authors, when you tick these options), which is protected by GDPR: do not store it without a legitimate reason. You are responsible for using the data in compliance with Leboncoin's Terms of Use and applicable law. This Actor is not affiliated with Leboncoin.

#### Does it need a login or a proxy?

No login. The proxy is included in the price: leave the default setting (Apify's residential proxy is not available in the input, the run refuses it). A request Leboncoin turns away is retried at once on a new proxy session, up to 10 times on top of the retries (without a proxy, after a pause of 5 seconds, doubled at each retry up to 150 seconds). A request turned away on 3 sessions in a row is retried through a residential proxy that the Actor brings itself, at no extra cost to you (on paid Apify plans; with your own proxy URLs, only yours are used).

#### Does it give the sellers' phone numbers?

No. Leboncoin shows a phone number only to a visitor logged in to an account. Each listing says whether its seller shows one (`hasPhone`), and **With a phone number only** (`requirePhone`) keeps only those listings.

#### Is the data safe to open in Excel or to show on a web page?

Titles and descriptions are the sellers' own words, copied as they are. In our test runs no title began with `-`, `+`, `=` or `@` (535 listings), but 2 descriptions in 235 did: Excel and Google Sheets may read such a cell of a CSV file as a formula or as a number. The Actor leaves the text as it is, so that the JSON and the API give the real value: when you open a CSV, import these columns as text. On a web page, escape every field like any text written by a stranger.

#### Known limitations

- Leboncoin shows at most 3,500 listings for one search: with **Get more than 3 500 per search** unticked, a search stops there.
- Site filters that are not in the input can still be used through `customFilters`, or by pasting a filtered search URL into `startUrls`.
- A shop page (leboncoin.fr/boutique/…) is not accepted as a start URL: paste the pro's profile page or one of its listings.
- The Mayotte department has no area on Leboncoin: give a town or a GPS point instead.
- Leboncoin does not split Corsica into departments: `2A` (Corse-du-Sud) or `2B` (Haute-Corse) searches all of Corsica, then keeps only the listings of that department (by their postal code). The others are filtered out and cost only the `filter-check` fee, like any filter of the Actor. `20` is all of Corsica.
- `description`, `images`, `attributes` and the other fields of the details option are empty when `extractDetails` is off.
- `onlyNew` remembers listing ids, not their content: a listing whose price changed is not returned again.
- Two runs sharing the same `stateKey` at the same time may both return the same new listing.

**A run that reaches its timeout** stops itself about 45 seconds before it: no new page is asked, what it read is saved and, with `onlyNew`, remembered, and the run ends *Succeeded* with "Stopped before the run's timeout". Resurrect it to go on from there, or give the next run a longer timeout (Run options).

**A run the platform stops without warning** (out of memory)

- Resurrect it: it goes on from where it stood at most a minute before the stop. What it had read since is read again, and the listings already saved are skipped: none is delivered or charged twice, and `maxItems` still counts them.
- With `onlyNew`, the memory is saved every 5 listings written (at most once every 2 seconds): resurrect the stopped run and the listings it had saved meanwhile join the memory; leave it stopped for good, and the next run may return its last few listings (up to 4, or those of its last 2 seconds) once more.

#### Something doesn't work?

The last line of the log counts the listings saved, filtered out and no longer on Leboncoin (removed while the run was reading them), and the requests that failed after every retry. Those requests and the removed listings are listed, with the reason, in the `FAILED_REQUESTS` record of the run's key-value store. A run that saved nothing and had failed requests fails, and its last message gives the cause (a search URL that does not exist says so, instead of "run it again").

If Leboncoin changes its pages, you are told instead of paying for blank rows. A results page that counts listings but gives none the Actor can read is an error (listed in `FAILED_REQUESTS`), never a quiet "No listings found". If the first 20 listings read all lack one of the fields every Leboncoin listing has (title, category, publication date, town, GPS position, seller, phone flag… and, with `extractDetails`, the description), the run saves nothing more, stops and fails, and its last message names the missing field: at most those first listings are charged. A listing that `postedAfter` / `postedBefore` drops because it has no date at all counts among those 20. A run of fewer listings (a scheduled `onlyNew` run that finds a few new ones, a small **Max listings**) is checked at its end, from 5 listings: its listings are already saved, and the run fails with the missing field instead of ending green.

### 🛟 Support

Open an issue in the **Issues** tab with a link to your run: the run log and the `FAILED_REQUESTS` record of the key-value store show exactly which URLs failed and why.

# Actor input Schema

## `startUrls` (type: `array`):

leboncoin.fr URLs: search pages (`https://www.leboncoin.fr/recherche?category=9&locations=Lyon__45.758_4.8351_10000_10000&price=100000-300000`, every filter set on the site is kept, tracking keys such as utm_source, kst or from dropped; a filter name Leboncoin does not know finds no listing, and the log then names it), category pages (`https://www.leboncoin.fr/c/voitures?price=5000-8000`, `https://www.leboncoin.fr/c/ventes_immobilieres/real_estate_type:2`: the same search, its filters read the same way), listing pages (`https://www.leboncoin.fr/ad/ventes_immobilieres/3300998510`) or seller profile pages (`/profile/<id>`: all their listings; for a pro, paste its profile page or one of its listings, not its shop page). When this list is not empty, the keyword, location and filter fields below are ignored (the URL's own filters win); caps, Actor filters and monitoring still apply. Max 1 000 URLs.

## `query` (type: `string`):

Free-text search, as typed on leboncoin.fr (e.g. `canapé cuir`, `golf 7`). Empty = every listing of the category / location below.

## `searchQueries` (type: `array`):

Several keywords in one run: one search per keyword (times each location below). Added to **Search keyword**; listings found by several searches are saved once.

## `searchInTitleOnly` (type: `boolean`):

Match the keywords in the listing title only (Leboncoin's « Rechercher dans le titre uniquement »), not in the description.

## `category` (type: `string`):

Leboncoin category (a group such as « Immobilier (all) » covers its sub-categories). All categories = no category filter.

## `location` (type: `string`):

Where to search: a town (`Lyon`, `Saint-Denis 93200`), a postal code (`69003`), a department number (`69`, `2A`, `974`), a region (`Bretagne`, `Île-de-France`) or a GPS point (`45.764,4.8357`). Towns and postal codes are placed on the map by the French government's open address base (geo.api.gouv.fr); the radius below applies to them and to a GPS point. A name several towns share is the most populated town of that exact name: add the postal code to choose another one. Corsica: `2A` or `2B` keeps the listings of that department only, `20` = all of Corsica. Empty = all of France.

## `locations` (type: `array`):

Several locations in one run: every keyword is searched in every location (3 keywords × 4 locations = 12 searches, max 500). Added to **Location**; same formats.

## `radiusKm` (type: `integer`):

Distance around a town, a postal code or a GPS point, in km (like the radius slider of the site). 0 = the town itself only (for a postal code: that postal code only); a GPS point needs a radius of 1 km or more. Ignored for departments and regions.

## `maxItems` (type: `integer`):

Maximum number of listings to save for the whole run (after deduplication and filters). 0 = no limit.

## `maxItemsPerQuery` (type: `integer`):

Cap for EACH search (keyword × location, search URL or seller), so that the first search cannot use up the whole **Max listings** budget. 0 = no per-search cap.

## `sellerType` (type: `string`):

Private sellers (« particuliers »), professionals (« pros ») or both. Sent to Leboncoin as a search filter (no listing read for nothing).

## `adType` (type: `string`):

Offers (« offres », things for sale or rent) or requests (« demandes », people looking for something).

## `minPrice` (type: `integer`):

Lowest price, in euros. Empty = no minimum.

## `maxPrice` (type: `integer`):

Highest price, in euros. Empty = no maximum.

## `sortBy` (type: `string`):

Order of the results. Newest first is the default of the site and the best one with **Only new listings**. Sorting by price puts the listings without a price first unless **Min price** is set.

## `splitByPrice` (type: `boolean`):

Leboncoin shows at most 3 500 listings for one search. When a search has more and your caps ask for more, the Actor cuts it into price ranges automatically (each range read on its own, duplicates saved once). Untick to stop at 3 500 per search.

## `shippableOnly` (type: `boolean`):

Only listings that can be sent by post (« livraison possible »).

## `sellerIds` (type: `array`):

All the listings of these sellers: Leboncoin user id (`ebd029d5-5688-4e39-927d-56d0c4856d0e`) or profile URL. Each seller = one search; the filters above still apply.

## `adIds` (type: `array`):

Leboncoin listing numbers (`3300998510`), read one by one. A listing that no longer exists is reported in the log.

## `realEstateTypes` (type: `array`):

House, flat, land, parking, other. Real-estate categories only.

## `minRooms` (type: `integer`):

Lowest number of rooms (« pièces »).

## `maxRooms` (type: `integer`):

Highest number of rooms.

## `minBedrooms` (type: `integer`):

Lowest number of bedrooms.

## `maxBedrooms` (type: `integer`):

Highest number of bedrooms.

## `minSurface` (type: `integer`):

Lowest living area, in m².

## `maxSurface` (type: `integer`):

Highest living area, in m².

## `minLandSurface` (type: `integer`):

Lowest land / plot area, in m².

## `energyRates` (type: `array`):

Energy performance classes, A (best) to G.

## `furnished` (type: `string`):

Rentals: furnished, unfurnished or both.

## `carBrands` (type: `array`):

Car makes as written on Leboncoin, e.g. `Renault`, `Peugeot`, `Mercedes-Benz` (case ignored). Voitures category.

## `minYear` (type: `integer`):

Oldest first registration year.

## `maxYear` (type: `integer`):

Newest first registration year.

## `minMileage` (type: `integer`):

Lowest mileage, in km.

## `maxMileage` (type: `integer`):

Highest mileage, in km.

## `fuels` (type: `array`):

Fuel / energy of the vehicle.

## `gearboxes` (type: `array`):

Manual or automatic.

## `customFilters` (type: `object`):

Any other filter of the site, with Leboncoin's own names: a range `{"square": "50-100"}` or a list `{"vehicle_type": "berline,suv"}` (the names and values you see in the address bar of a leboncoin.fr search). Added to the filters above. A name Leboncoin does not know finds no listing: copy it exactly.

## `postedAfter` (type: `string`):

Only listings first published on or after this date (Leboncoin's first publication date, Paris time; a listing pushed back to the top keeps its first date): `2026-09-01`, or a period before now such as `7 days`, `24 hours`, `2 weeks`.

## `postedBefore` (type: `string`):

Only listings first published on or before this date (the whole day is included), or older than a period such as `30 days`.

## `excludeKeywords` (type: `array`):

Drop the listings whose title contains one of these WHOLE words (case and accents ignored): `pièces` drops « Golf pour pièces » but keeps « 3 pièces » only if you did not list it. Several words in one entry (`hors service`) must appear together, in that order.

## `requirePhone` (type: `boolean`):

Keep only the listings whose seller shows a phone number on Leboncoin (the number itself is not extracted).

## `urgentOnly` (type: `boolean`):

Keep only the listings marked « Urgent » by their seller.

## `onlyNew` (type: `boolean`):

Skip the listings that a previous run (same **Memory key**) already delivered: they are not saved and not charged. First run = everything is new. A listing pushed back to the top by its seller is not new.

## `stateKey` (type: `string`):

Name of the memory used by **Only new listings**. Give each schedule / task its own key (e.g. `lyon-apartments`) so that they do not share their memory. Letters, digits, `-` and `_`.

## `resetState` (type: `boolean`):

Forget everything remembered under this **Memory key** before the run: this run returns (and charges) every listing again. Untick it afterwards.

## `extractDetails` (type: `boolean`):

Add the full description, every photo and every characteristic of the listing (all Leboncoin attributes: energy budget, notary fees, floor, heating, car version, options, market price range…). No extra page is read. Charged per listing delivered with its details (see Pricing).

## `includeFavorites` (type: `boolean`):

Add how many users saved each listing (popularity). One extra request per listing (slower). Charged per listing delivered with its count.

## `includeSellerDetails` (type: `boolean`):

Add the seller's public profile: member since, area, response time and rate, last activity, badges (verified phone, responsiveness…), number of listings, rating by category. One extra request per distinct seller, shared by all their listings. Charged per listing delivered with a profile.

## `includeBusinessInfo` (type: `boolean`):

For professional sellers with a Leboncoin shop: SIRET, street address with GPS, opening hours, website, description, services, team, Google rating and latest Google reviews (the SIREN and shop name are always included). One extra request per distinct shop. Charged per listing of a pro delivered with its company file; private sellers are never charged.

## `includeSellerReviews` (type: `boolean`):

Add the written reviews private sellers received on Leboncoin: reviewer's first name, buyer or seller in the trade, rating out of 5, text, date, item traded, seller's reply, plus the totals (all, with text, from buyers, from sellers). One extra request per distinct private seller, shared by all their listings; professional sellers have none on Leboncoin. Charged per listing delivered with at least one review.

## `maxReviewsPerSeller` (type: `integer`):

With Seller reviews ticked: how many of each seller's latest reviews to include (1-300). The totals always count all of them.

## `proxyConfiguration` (type: `object`):

Apify Proxy or your own proxies. Keep the default: it is included in the price. The residential Apify proxy is not available in this Actor.

## `maxConcurrency` (type: `integer`):

Maximum number of requests processed in parallel.

## `maxRequestsPerMinute` (type: `integer`):

Most requests to Leboncoin in any 60 seconds (one request = up to 100 listings). A budget, not an even pace. Lower it if the log shows many HTTP 403.

## `minRequestIntervalMs` (type: `integer`):

Smallest gap between two requests, in milliseconds. 0 = no gap.

## `maxRequestRetries` (type: `integer`):

Retries per request before it is marked as failed. A request Leboncoin turns away is also retried on a new proxy session up to 10 times without using up these retries.

## `debugLog` (type: `boolean`):

Include debug messages in the run log.

## Actor input object example

```json
{
  "startUrls": [],
  "query": "vélo électrique",
  "searchQueries": [],
  "searchInTitleOnly": false,
  "category": "",
  "locations": [],
  "radiusKm": 10,
  "maxItems": 100,
  "maxItemsPerQuery": 0,
  "sellerType": "all",
  "adType": "offer",
  "sortBy": "newest",
  "splitByPrice": true,
  "shippableOnly": false,
  "sellerIds": [],
  "adIds": [],
  "realEstateTypes": [],
  "energyRates": [],
  "furnished": "any",
  "carBrands": [],
  "fuels": [],
  "gearboxes": [],
  "customFilters": {},
  "excludeKeywords": [],
  "requirePhone": false,
  "urgentOnly": false,
  "onlyNew": false,
  "stateKey": "default",
  "resetState": false,
  "extractDetails": false,
  "includeFavorites": false,
  "includeSellerDetails": false,
  "includeBusinessInfo": false,
  "includeSellerReviews": false,
  "maxReviewsPerSeller": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxConcurrency": 4,
  "maxRequestsPerMinute": 60,
  "minRequestIntervalMs": 0,
  "maxRequestRetries": 5,
  "debugLog": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "query": "vélo électrique",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nice_dev/leboncoin-listings-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "query": "vélo électrique",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("nice_dev/leboncoin-listings-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "vélo électrique",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call nice_dev/leboncoin-listings-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nice_dev/leboncoin-listings-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/xcyyPWafvMEHUtcmA/builds/jFgqtUV5WTWMWYVRs/openapi.json
