# Leboncoin Scraper: Listings, Prices & Seller Details (`mrdoe/leboncoin-scraper`) Actor

Scrapes listings from Leboncoin.fr, France's largest classifieds site, from your own search URL or specific ad URLs. Real estate, vehicles, electronics and more - price, location, photos, full attributes and seller details. No login or cookies needed.

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

## Pricing

from $70.00 / 1,000 ad (full description)s

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

![Leboncoin Scraper - France's largest classifieds site, every category, with price, photos and seller details.](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/leboncoin-scraper--1-search.png)

**Turn Leboncoin's listings into structured data in minutes** - no login, no browser extension, no pasting your own session cookies. Paste your own Leboncoin search URL (or a specific ad URL) and get price, photos, full attributes, location and seller details for every ad it finds, paged through automatically.

### What does the Leboncoin Scraper do?

This Leboncoin Scraper collects ads from [Leboncoin.fr](https://www.leboncoin.fr), France's largest classifieds site, covering real estate, vehicles, electronics, jobs and every other category it carries. Set up your search on leboncoin.fr exactly the way you want it - category, keywords, price, location - then paste that search's URL in. The Actor pages through the results and returns every ad as clean structured data, already including price, every photo, the complete set of listing attributes, geolocation and seller details.

Need the full, long-form description text too? Turn on **full details**, or just paste an ad's URL directly, and that one extra field is added to the result.

![Real ad cards - title, price, photo and location, exactly as returned per row.](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/leboncoin-scraper--2-listings.png)

### Why use this Leboncoin Scraper?

- **No cookies, no login required** - other Leboncoin scrapers ask you to log in to your own account and paste your session cookies into the Actor. This one doesn't need any of that.
- **Your own search, not a generic form** - paste any Leboncoin search URL and keep every filter you set up on the site itself.
- **Rich data on every result, not just a summary** - price, the full photo gallery, every listing attribute (surface, rooms, energy rating, mileage, condition and dozens more depending on category), exact coordinates and seller info all come back from a plain search, with no extra "detail" step needed.
- **Specific ad URLs work too** - scrape a handful of exact ads without running a search at all.
- **Every category** - real estate, cars and motorcycles, electronics, jobs, services, and anything else listed on Leboncoin.

### How to use the Leboncoin Scraper

1. Go to [Leboncoin.fr](https://www.leboncoin.fr) and set up a search the way you normally would - category, keywords, price, location.
2. Copy that results page's URL from your browser's address bar.
3. Paste it into **Leboncoin search URL** on the **Input** tab.
4. Optionally turn on **Scrape full details** to also get each ad's complete description text.
5. Set **Max items** and **Max pages**, click **Start**, then open the **Dataset** tab to preview, filter and export your results.

Want specific ads instead of a search? Paste their URLs into **Specific ad URLs** - the Actor scrapes exactly those, always with the full description, and skips the search entirely.

### Input

| Field | Type | Description |
| --- | --- | --- |
| `searchUrl` | String | A Leboncoin search results page URL. Ignored if `detailUrls` is set. Defaults to real estate listings in Paris. |
| `detailUrls` | Array | Specific ad URLs to scrape with their full description, instead of running a search. |
| `scrapeDetails` | Boolean | When true, also visits each search result's own page for the complete description text (default: `false`). |
| `maxItems` | Integer | Maximum number of ads to return (default: 20). |
| `maxPages` | Integer | Safety cap on how many search result pages to page through (default: 20). |
| `proxyConfiguration` | Object | Proxy settings. A residential proxy is strongly recommended - Leboncoin blocks non-residential IPs with a bot-protection challenge. |

Example input - a search:

```json
{
    "searchUrl": "https://www.leboncoin.fr/recherche?category=9&text=paris",
    "scrapeDetails": false,
    "maxItems": 100
}
```

Example input - a specific ad, full detail:

```json
{
    "detailUrls": [
        "https://www.leboncoin.fr/ad/ventes_immobilieres/3285290936"
    ]
}
```

### Output

Every run returns the rich search-result fields below; with `scrapeDetails` on (or when using `detailUrls`) the `description` field is also filled in with the ad's full text.

```json
{
    "id": 3266026515,
    "url": "https://www.leboncoin.fr/ad/ventes_immobilieres/3266026515",
    "title": "Appartement Paris",
    "description": null,
    "category": "Ventes immobilières",
    "categoryId": "9",
    "adType": "offer",
    "price": 380000,
    "currency": "EUR",
    "publishedAt": "2026-09-08 20:14:02",
    "expiresAt": "2026-11-07 19:14:02",
    "images": ["https://img.leboncoin.fr/api/v1/lbcpb1/images/...", "..."],
    "thumbnailUrl": "https://img.leboncoin.fr/api/v1/lbcpb1/images/...",
    "nbImages": 8,
    "attributes": [{ "key": "square", "key_label": "Surface habitable", "value_label": "36.5 m²", "generic": true }],
    "attributesMap": { "real_estate_type": "Appartement", "square": "36.5 m²", "rooms": "2", "bedrooms": "1 ch." },
    "city": "Paris",
    "zipcode": "75014",
    "department": "Paris",
    "region": "Ile-de-France",
    "lat": 48.83165,
    "lng": 2.33507,
    "sellerName": "michel",
    "sellerType": "private",
    "hasPhone": true,
    "favoritesCount": null,
    "isPromoted": false,
    "scrapedAt": "2026-10-28T00:00:00.000Z"
}
```

#### Data table

| Field | Description |
| --- | --- |
| `id` / `url` | Leboncoin's ad ID and its page |
| `title`, `description` | Ad title, and full description text (only with `scrapeDetails` or `detailUrls`) |
| `category`, `categoryId`, `adType` | Category name and ID, and whether it's an offer or a request |
| `price`, `currency` | Asking price and currency (always EUR) |
| `publishedAt`, `expiresAt` | When the ad was first published and when it expires |
| `images`, `thumbnailUrl`, `nbImages` | Full photo gallery, thumbnail, and photo count |
| `attributes`, `attributesMap` | Every listing attribute as the raw key/label pairs Leboncoin uses, and the same data flattened into a simple `{key: label}` object for easy use |
| `city`, `zipcode`, `department`, `region`, `lat`, `lng` | Location, down to exact coordinates |
| `sellerName`, `sellerType`, `hasPhone` | Seller's display name, whether they're a private seller or a pro, and whether a phone number is listed |
| `favoritesCount` | Number of users who favorited the ad, when shown |
| `isPromoted` | Whether the ad appeared in a promoted/boosted slot on the results page |
| `scrapedAt` | ISO timestamp when the item was scraped |

### Pricing

This Actor uses pay-per-result pricing: a small flat fee per run, then a price per ad returned, which is lower for search results and higher for ads scraped with the full description - you only pay for the mode you actually use.

### Tips for better runs

- Keep **Max items**/**Max pages** modest for daily monitoring runs, and only turn on **Scrape full details** for the ads you actually need the description text for - it's slower and costs more per ad.
- Use the Apify **Schedule** feature to re-run this Actor periodically and track new ads for a saved search over time.
- If a run finds zero results, it's most likely Leboncoin's bot-protection challenge blocking that particular proxy session - the Actor automatically retries with a fresh session before giving up.

### FAQ

**Is this legal?** This Actor only collects publicly visible ad data. You are responsible for using the data in accordance with Leboncoin's Terms of Service and any applicable laws in your jurisdiction.

**Do I need to log in or provide cookies?** No. Unlike some other Leboncoin scrapers, this Actor reads the public search and ad pages directly - no account, login or cookie export required.

**Why paste a search URL instead of filling in a category/keyword/price form?** Leboncoin's own search already supports dozens of filters - category, keywords, price, surface, rooms, mileage, location radius and more, and they vary by category. Reproducing all of that as Actor input fields would mean constantly playing catch-up with the site. Pasting the URL you already built on leboncoin.fr keeps every filter you set up, with zero translation loss.

**Why did some fields come back empty?** Not every ad fills in every attribute - a car ad won't have `square` (surface area), for example - and `description` is only populated when `scrapeDetails` is on or you used `detailUrls`. The Actor returns `null` for anything that isn't available for a given ad.

**Found a bug or have a feature request?** Please use the Issues tab on this Actor's page - feedback directly shapes future updates.

# Actor input Schema

## `searchUrl` (type: `string`):

Set up your search on leboncoin.fr (category, keywords, price, location, ...), then paste that results page's URL here. Leave the default for real estate listings in Paris.

## `detailUrls` (type: `array`):

One or more Leboncoin ad URLs to scrape with their full description. When this is set, Search URL is ignored and only these ads are scraped.

## `scrapeDetails` (type: `boolean`):

When on, every ad found by the search also has its own page visited for the complete description text. Slower and charged at the higher per-ad rate. When off (default), the search result's own data is returned, which already includes price, photos, full attributes and seller details - only the long description text requires this option.

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

Maximum number of ads to return.

## `maxPages` (type: `integer`):

Safety cap on how many search result pages to page through.

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

A residential proxy is strongly recommended - leboncoin.fr fronts every page with bot protection.

## Actor input object example

```json
{
  "searchUrl": "https://www.leboncoin.fr/recherche?category=9&text=paris",
  "detailUrls": [],
  "scrapeDetails": false,
  "maxItems": 20,
  "maxPages": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "FR"
  }
}
```

# Actor output Schema

## `ads` (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 = {
    "searchUrl": "https://www.leboncoin.fr/recherche?category=9&text=paris"
};

// Run the Actor and wait for it to finish
const run = await client.actor("mrdoe/leboncoin-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 = { "searchUrl": "https://www.leboncoin.fr/recherche?category=9&text=paris" }

# Run the Actor and wait for it to finish
run = client.actor("mrdoe/leboncoin-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 '{
  "searchUrl": "https://www.leboncoin.fr/recherche?category=9&text=paris"
}' |
apify call mrdoe/leboncoin-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mrdoe/leboncoin-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/vvQ4iBWksvgRD74wI/builds/d85Ht8ctbqkZqjbNX/openapi.json
