Leboncoin Scraper - Listings, Sellers & SIREN avatar

Leboncoin Scraper - Listings, Sellers & SIREN

Pricing

from $0.54 / 1,000 listings

Go to Apify Store
Leboncoin Scraper - Listings, Sellers & SIREN

Leboncoin Scraper - Listings, Sellers & SIREN

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.

Pricing

from $0.54 / 1,000 listings

Rating

0.0

(0)

Developer

Nice Dev

Nice Dev

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

16 days ago

Last modified

Features

Limited permissions

Share

🔎 What is Leboncoin Scraper?

Leboncoin Scraper extracts listings from 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:

CategoryWhat you get
🏷️ Listingtitle, link, Leboncoin number, category, offer or request, « Urgent » and paid visibility options — RENAULT Mégane IV Estate 1.6 TCe 205 GT EDC
💰 Priceprice in euros, the previous price when the seller lowered it and the drop in % — 12490 EUR, was 13490 (−7.4 %)
🕒 Datesfirst publication (what the date filters read), last time pushed back to the top, expiry date, days online
📍 Locationtown, postal code, department, region, GPS position, and whether it is the seller's address or the town centre
👤 Sellername, 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 estateproperty type, living and land area, rooms, bedrooms, price per m², energy and greenhouse-gas classes, furnished
🚗 Vehicles and goodsmake, 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
🔗 Searchthe 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

{
"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:

{
"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:

{
"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:

{
"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
}
{
"sellerIds": ["ebd029d5-5688-4e39-927d-56d0c4856d0e"],
"includeSellerDetails": true,
"includeBusinessInfo": true
}
FieldNotes
query, searchQueriesFree-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.
searchInTitleOnlyMatch the keywords in the listing title only (Leboncoin's « Rechercher dans le titre uniquement »), not in the description.
categoryOne Leboncoin category, or a group such as « Immobilier (all) » that covers its sub-categories. Empty = all categories.
location, locationsWhere 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).
radiusKmDistance 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.
startUrlsleboncoin.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.
sellerIdsAll 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.
adIdsLeboncoin listing numbers (3300998510), up to 10,000, read one by one. A listing that no longer exists is reported in the log.
maxItems, maxItemsPerQuerymaxItems: 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).
sellerTypeprivate sellers, pro professionals, or all (default). Sent to Leboncoin with the search: no listing is read for nothing.
adTypeoffer (default: things for sale or rent) or demand (people looking for something).
minPrice, maxPricePrice range, in euros.
sortBynewest (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.
splitByPriceLeboncoin 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.
shippableOnlyOnly the listings that can be sent by post (« livraison possible »).
realEstateTypes, energyRates, furnishedReal estate: property type (house, flat, land, parking, other), energy class (DPE, A to G), furnished or unfurnished (rentals).
minRooms, maxRooms, minBedrooms, maxBedroomsNumber of rooms (« pièces ») and of bedrooms, from / to.
minSurface, maxSurface, minLandSurfaceLiving area and land area, in m².
carBrandsCar makes as written on Leboncoin (Renault, Peugeot, Mercedes-Benz; case ignored), up to 50. Voitures category.
minYear, maxYear, minMileage, maxMileageFirst registration year and mileage in km, from / to.
fuels, gearboxesFuel (petrol, diesel, LPG, electric, hybrid, plug-in hybrid, natural gas, other) and gearbox (manual, automatic).
customFiltersAny 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, postedBeforePublication 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.
excludeKeywordsDrop 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, urgentOnlyKeep only the listings whose seller shows a phone number on Leboncoin (the number itself is not extracted), or only those marked « Urgent ».
stateKey, onlyNew, resetStateMonitoring: 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.
extractDetailsOption: the full description, every photo and every characteristic of the listing. No extra page is read. Charged per listing delivered with its details.
includeFavoritesOption: how many users saved each listing. One extra request per listing (slower). Charged per listing delivered with its count.
includeSellerDetailsOption: the seller's public profile. One extra request per distinct seller, shared by all their listings. Charged per listing delivered with a profile.
includeBusinessInfoOption, 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.
includeSellerReviewsOption: 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.
maxReviewsPerSellerWith 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.
AdvancedproxyConfiguration (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):

{
"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

FieldsWhat you get
id, url, titleListing: Leboncoin number 3259923299, the listing page, the title as written by the seller
category, categoryId, adType, statusVoitures, 2 (the ids of the Category input), offer or demand, active
price, currency, oldPrice, priceDropPercentPrice: 12490, EUR (null without a price), the crossed-out previous price 13490, the drop 7.4 (%)
publishedAt, republishedAt, expiresAt, daysOnlineDates (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, regionLocation: Chuzelles, 38200, Isère, 38, FR (overseas departments included), Rhône-Alpes
latitude, longitude, locationPrecisionGPS position 45.56899, 4.8823; address = the street address given by the seller, city = the town centre
sellerType, sellerName, sellerId, sellerUrlSeller: private or pro, display name (company name for a pro), Leboncoin user id (use it in sellerIds), profile or shop page
storeId, storeName, storeLogo, sirenProfessionals: shop id, shop name and logo, SIREN 990706491 (9 digits); null for private sellers
sellerRating, sellerRatingCount, hasPhone, noCanvassingrating 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, imagesCountcan be sent by post, item condition (Excellent état (proche du neuf)), first photo, number of photos
realEstateType, surface, landSurface, rooms, bedrooms, pricePerSquareMeter, energyRate, ghgRate, furnishedReal 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, gearboxVehicles: Renault, Megane, 2016, 115500 km, Essence, Automatique (brand also for goods that have one)
description, images, attributes, featuresFull 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, securityDepositdetails 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, vehicleHistoryUrldetails option, cars: doors, seats, colour, power in hp, French fiscal horsepower, version, Crit'Air class, vehicle history report link
marketPriceMin, marketPriceMax, marketPricePositiondetails option, cars: Leboncoin's market price range 13870 to 15330 and its verdict Bonne affaire
customRef, proWebsitedetails option: the seller's own reference, the pro's own page for this listing
favoritesCountFavorites option: number of users who saved the listing
sellerRegisteredAt, sellerLocation, sellerResponseTime, sellerLastActiveAt, sellerBadges, sellerTotalAdsSeller profile option: member since, area, usual response time, last activity, badges (VerifiedPhoneNumber…), number of listings online
sellerDescription, sellerSector, sellerReplyRate, sellerReplyMinutes, sellerRatingsReceived, sellerRatingDetails, sellerPictureprofile 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, businessLongitudePro 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, businessTeamcompany file option: website, opening hours, presentation, slogan, shop opened on Leboncoin since, services (« Reprise de véhicules »…), team as name — position
businessGoogleRating, businessGoogleRatingCount, businessGoogleReviewscompany file option: Google Maps rating out of 5, number of ratings, latest reviews (author, rating, text, date)
sellerReviews, sellerReviewsTotal, sellerReviewsWithText, sellerReviewsFromBuyers, sellerReviewsFromSellersSeller 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, scrapedAtSearch: 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, 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:

{
"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

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.