# Leboncoin Scraper — Listings, Prices, Sellers & SIREN (`haketa/leboncoin-scraper`) Actor

Scrape Leboncoin.fr listings by keyword or URL: price, location (city, ZIP, region, GPS), category, attributes, photos and seller type — private vs professional with store name and SIREN for B2B lead generation. Cars, real estate, electronics and more. Export to JSON, CSV, Excel.

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

## Pricing

from $1.75 / 1,000 results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Leboncoin Scraper 🇫🇷

Extract listings from **Leboncoin.fr — France's #1 classifieds marketplace** — at scale, without an account or API key. Search any keyword or paste category URLs and get clean JSON, CSV or Excel: **price, location (city, ZIP, department, region, coordinates), seller type (private vs professional), seller name, SIREN, description, attributes and photos.**

Whether you track French market prices, hunt for resale opportunities, monitor competitors, or build B2B lead lists of professional sellers (with SIREN), this scraper turns Leboncoin into a structured dataset in minutes.

***

### 🔑 What this scraper does

- 🔎 **Search by keyword** — `iphone`, `renault clio`, `canapé`, `appartement paris`, anything across every category.
- 🔗 **Or paste URLs** — copy any Leboncoin search or category page from your browser and scrape it directly, with all your on-site filters preserved.
- 💶 **Prices & location** — amount in EUR, city, ZIP code, department, region and exact GPS coordinates.
- 👤 **Seller intelligence** — **private vs professional**, professional store name and **SIREN** (French company registration ID) — ideal for B2B lead generation.
- 🗂️ **Category & ad type** — category name and offer/demand type.
- 🧩 **Structured attributes** — category-specific fields such as brand, model, mileage, fuel, year, surface area, number of rooms, condition and more.
- 🖼️ **Photos & descriptions** — thumbnail and full image gallery, plus the complete ad description when detail enrichment is enabled.
- 🏡 **Any vertical** — general marketplace, cars, motorbikes, real estate, holiday rentals, fashion, home & garden, electronics and jobs.

No login, no cookies to paste, no API key. Enter what you want, press start, export.

***

### 📋 Example output

```json
{
  "id": "3201653813",
  "url": "https://www.leboncoin.fr/ad/telephones_objets_connectes/3201653813",
  "title": "iPhone 15 Pro Max 256GB",
  "price": 680,
  "currency": "EUR",
  "description": "Excellent état, débloqué tous opérateurs, facture et garantie...",
  "category": "Téléphones & Objets connectés",
  "categoryId": "17",
  "adType": "offer",
  "sellerType": "pro",
  "sellerName": "DBC TOULOUSE",
  "sellerSiren": "929353209",
  "storeId": "80785628",
  "userId": "3321d676-7475-4e46-8c51-e46c2a30108e",
  "hasPhone": true,
  "city": "Toulouse",
  "zipcode": "31000",
  "department": "Haute-Garonne",
  "region": "Occitanie",
  "lat": 43.6047,
  "lng": 1.4442,
  "publishedDate": "2026-08-11 11:14:51",
  "isBoosted": false,
  "imageUrl": "https://img.leboncoin.fr/api/v1/lbcpb1/images/...jpg",
  "images": ["https://img.leboncoin.fr/...1.jpg", "https://img.leboncoin.fr/...2.jpg"],
  "nbImages": 8,
  "attributes": {
    "brand": "Apple",
    "model": "iPhone 15 Pro Max",
    "storage": "256 Go",
    "condition": "Très bon état"
  },
  "searchTerm": "iphone 15",
  "scrapedAt": "2026-09-08T10:00:00.000Z"
}
```

***

### 🗂️ Fields you get

| Field | Description |
|---|---|
| `id` | Unique Leboncoin listing ID |
| `url` | Direct link to the listing |
| `title` | Ad title |
| `description` | Full ad description text — populated when **Fetch full descriptions** is enabled |
| `price` | Price in euros |
| `currency` | Always `EUR` |
| `category` | Category name (e.g. *Voitures*, *Immobilier*) |
| `categoryId` | Numeric category ID |
| `adType` | `offer` or `demand` |
| `sellerType` | `private` or `pro` — the key field for B2B lead gen |
| `sellerName` | Professional store / seller name |
| `sellerSiren` | SIREN (French company registration number) for professionals |
| `storeId` | Leboncoin store ID for professional sellers |
| `userId` | Seller's Leboncoin user ID |
| `hasPhone` | Whether the seller published a phone number |
| `city` | City / town |
| `zipcode` | Postal code |
| `department` | French department name |
| `region` | French region name |
| `lat`, `lng` | GPS coordinates |
| `publishedDate` | When the ad was first published |
| `isBoosted` | Whether the ad is a paid/boosted listing |
| `imageUrl` | Main thumbnail URL |
| `images` | Full array of image URLs |
| `nbImages` | Number of photos |
| `attributes` | Category-specific structured fields (brand, model, mileage, m², rooms, fuel, year, condition…) |
| `searchTerm` | The search term that produced this result |
| `scrapedAt` | ISO timestamp of the scrape |

***

### 🚀 How to use

1. Click **Try for free**.
2. Enter one or more **Search Terms** (e.g. `iphone`, `renault clio`) — **or** paste full Leboncoin search / category URLs into **Start URLs**.
3. (Optional) Filter by **Seller Type** (private / pro) and by **price range**.
4. Set **Max Items** and **Max Pages per Search**, then click **Start**.
5. Export the results as **JSON, CSV, Excel, HTML, RSS**, or pull them through the **Apify API**.

That's it — no account and no technical setup required.

***

### 📝 Example inputs

#### 1. Simple keyword search

```json
{
  "searchTerms": ["iphone 15"],
  "maxItems": 200
}
```

#### 2. B2B lead list — professional sellers only

```json
{
  "searchTerms": ["climatisation", "pompe à chaleur"],
  "sellerType": "pro",
  "maxItems": 1000
}
```

#### 3. Price-filtered resale hunt

```json
{
  "searchTerms": ["macbook pro", "macbook air"],
  "priceMin": 300,
  "priceMax": 1200,
  "sellerType": "private",
  "maxItems": 500
}
```

#### 4. Multiple keywords at once

```json
{
  "searchTerms": ["ps5", "xbox series x", "nintendo switch"],
  "maxItems": 900,
  "maxPagesPerSearch": 10
}
```

#### 5. Scrape a category or filtered URL directly

```json
{
  "startUrls": [
    "https://www.leboncoin.fr/recherche?category=2&text=clio",
    "https://www.leboncoin.fr/recherche?category=9&locations=Paris_75000"
  ],
  "maxItems": 1000
}
```

When you use **Start URLs**, whatever filters you set on the Leboncoin website (category, location, price, brand, etc.) are already baked into the URL, so the scraper follows them exactly.

***

### 🔗 How to use Start URLs

Start URLs are the most powerful way to target exactly what you want:

1. Go to **Leboncoin.fr** in your browser.
2. Search and apply any filters you like — category, region/city, price band, brand, condition, etc.
3. Copy the URL from the address bar (it will look like `https://www.leboncoin.fr/recherche?...`).
4. Paste it into the **Start URLs** field.

You can add as many URLs as you like, and mix them with search terms. Each URL is paginated automatically up to your **Max Pages per Search** limit.

***

### 💡 Popular use cases

#### 🎯 B2B lead generation

Filter by **professional sellers** to build a list of businesses advertising on Leboncoin — complete with **store name, SIREN and location**. Perfect for:

- Wholesalers and distributors looking for retailers in a niche.
- SaaS and marketplace-tool vendors targeting French sellers.
- Service providers (logistics, photography, accounting) prospecting local businesses.
- Agencies enriching a CRM with verified company identifiers (SIREN).

Because every professional listing carries a SIREN, you can cross-reference it with official French company registries for firmographic enrichment.

#### 💰 Reselling, flipping & arbitrage

Track what phones, consoles, cars, bikes or furniture actually sell for in France. Compare **pro vs private** pricing, filter by budget, and spot underpriced items across cities. Set up repeat runs to catch new deals as they appear.

#### 📈 French market & price research

Build a price dataset for any product or category. Monitor supply and average prices across regions, track seasonal trends, and benchmark your own pricing against the live French market.

#### 🏡 Real estate intelligence

Paste real-estate category URLs to pull apartments and houses with **price, surface area, number of rooms, ZIP code and coordinates**. Ideal for property investors, agencies and proptech products mapping the French housing market.

#### 🚗 Used-car & vehicle data

Scrape the cars and motorbikes categories to capture **make, model, year, mileage, fuel type and price** — great for dealers, valuation tools and automotive market analysts.

#### 🛍️ E-commerce & competitor monitoring

Follow specific professional stores (via `storeId` and `sellerName`), watch their catalogue and pricing, and track how many listings competitors run in your category.

#### 🤖 AI, LLM & data enrichment

Feed structured Leboncoin listings into your own models, RAG pipelines, dashboards or data products. Clean JSON output plugs straight into any workflow.

***

### 👥 Who uses this

- **Sales & growth teams** building French B2B lead lists.
- **Resellers & e-commerce sellers** sourcing inventory and pricing.
- **Real-estate & automotive analysts** mapping supply and prices.
- **Market researchers & data teams** building French market datasets.
- **Developers & AI builders** who need reliable classifieds data via API.

***

### 🎛️ Filters explained

- **Search Terms** — keywords across all categories. Each term is searched separately, and results are combined and de-duplicated.
- **Start URLs** — paste any Leboncoin search or category URL. Filters embedded in the URL are respected.
- **Seller Type** — `Any`, `Private sellers`, or `Professionals / businesses`. Pro listings include SIREN, making them ideal for lead generation and company verification.
- **Min / Max Price (€)** — keep only listings inside your budget band.
- **Max Items** — cap the total number of listings collected across all searches (`0` = unlimited).
- **Max Pages per Search** — how many result pages to scrape per term / URL. Each page holds about 35 listings, so `10` pages ≈ 350 listings.
- **Fetch full descriptions** — when enabled, each listing is opened to collect its full description text and complete attributes. It is slower and uses more resources, so leave it off for fast, low-cost list scraping and turn it on when you need the full ad copy.

***

### ⚙️ Tips & best practices

- **Be specific with keywords.** `renault clio 4` returns tighter results than `voiture`.
- **Use several focused terms** instead of one broad term to widen coverage while staying relevant.
- **Combine `sellerType: pro` with a niche keyword** to build the cleanest possible B2B lead lists.
- **Use Start URLs for advanced targeting** — set location, brand and price filters on the website first, then paste the URL.
- **Schedule runs** to monitor prices or catch new listings automatically (daily, hourly, or on your own cron).
- **Start small.** Run with a low `maxItems` first to preview the data, then scale up.

***

### ❓ FAQ

**Do I need a Leboncoin account or API key?**
No. Just enter what you want and run — no login, no cookies, no key.

**Can I tell private sellers from professionals?**
Yes. Every listing has a `sellerType` (`private` / `pro`), and professionals include their `sellerName`, `sellerSiren` and `storeId`.

**What is a SIREN and why is it useful?**
SIREN is the 9-digit ID that identifies a registered French company. It lets you verify professional sellers and enrich your leads with official firmographic data.

**Can I scrape a specific city or region?**
Yes. Apply the location filter on Leboncoin, copy the URL, and paste it into **Start URLs**. City, ZIP, department and region come back on every listing.

**Can I scrape cars, real estate, motorbikes or jobs?**
Yes. Search a relevant keyword or paste the category URL from your browser into **Start URLs**. Category-specific attributes (mileage, m², rooms, etc.) are returned in `attributes`.

**How many listings can I get?**
As many as the search returns, up to your `maxItems` and `maxPagesPerSearch` limits. Set `maxItems: 0` for unlimited.

**How do I filter by price?**
Use **Min Price** and **Max Price**, or bake the price filter into a Start URL.

**Do I get the full ad description?**
Yes — enable **Fetch full descriptions** and each listing's complete description text and attributes are collected. With it off, you still get every other field (price, seller, location, photos, attributes) much faster and at lower cost.

**Does it return phone numbers?**
The `hasPhone` flag tells you whether a seller published a phone number. The scraper collects only publicly visible information.

**Can I get the full photo gallery?**
Yes. `imageUrl` is the main thumbnail and `images` is the full array of photo URLs.

**What export formats are supported?**
JSON, CSV, Excel, HTML table, RSS, and the Apify API. You can also connect to Make, Zapier, Google Sheets, Slack, webhooks or an MCP server.

**Can I automate or schedule it?**
Yes. Use the Apify Scheduler to run it on any interval, or trigger it via API/webhook from your own app.

**Is the data structured and clean?**
Yes. Every listing is normalized into a consistent, flat JSON object with typed fields, ready for spreadsheets, databases and analytics.

**Do results include duplicates?**
No. Listings are de-duplicated by their unique ID across all your search terms and URLs.

***

### 🔌 Integrations

- Export to **JSON, CSV, Excel, HTML, RSS**.
- Pull data via the **Apify API** or official client libraries (JavaScript, Python).
- Connect to **Make, Zapier, Google Sheets, Slack, webhooks** and hundreds more.
- Use it from an **MCP server** inside your AI agent / LLM workflow.
- Schedule recurring runs with the built-in **Apify Scheduler**.

***

### 📤 Output & export

Every run stores results in an Apify dataset. You can:

- Preview them in a clean table right in the console.
- Download as JSON, CSV, Excel, HTML or RSS.
- Fetch them programmatically through the dataset API endpoint.
- Push them to your warehouse, spreadsheet or app via integrations.

***

### ⚖️ Legal & responsible use

This scraper collects **publicly available** listing information only — the same data any visitor can see on Leboncoin.fr without logging in. It does not access private messages, contact details hidden behind a login, or anything requiring authentication.

You are responsible for how you use the collected data. Please:

- Respect Leboncoin's Terms of Service and all applicable laws (including the GDPR).
- Use any personal or company data lawfully and only for legitimate purposes.
- Avoid excessive request rates and scrape responsibly.

This tool is provided for lawful purposes such as price research, market analysis, lead generation and business intelligence. It is not affiliated with, endorsed by, or connected to Leboncoin.

# Actor input Schema

## `searchTerms` (type: `array`):

What to search for, e.g. 'iphone', 'renault clio', 'canapé'. Each term is searched separately. Leave empty if you use Start URLs.

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

Optional. Paste full Leboncoin search/category URLs to scrape them directly (cars, real estate, a specific location, etc.). When provided, Search Terms and filters below are ignored for these URLs.

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

Filter by private sellers or professionals/businesses (great for B2B lead generation — pros include a SIREN).

## `priceMin` (type: `integer`):

Only listings at or above this price.

## `priceMax` (type: `integer`):

Only listings at or below this price.

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

Maximum number of listings to collect across all searches. 0 = unlimited.

## `maxPagesPerSearch` (type: `integer`):

How many result pages to scrape per search term / URL. Each page has about 35 listings.

## `fetchDetails` (type: `boolean`):

Visit each listing to also collect its full description text and complete attributes. This is slower and uses more resources — leave off for fast, low-cost list scraping.

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

Leboncoin requires Residential proxy (France) — datacenter IPs are blocked. The default setting works out of the box.

## Actor input object example

```json
{
  "searchTerms": [
    "iphone"
  ],
  "startUrls": [],
  "sellerType": "",
  "maxItems": 100,
  "maxPagesPerSearch": 5,
  "fetchDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "FR"
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Open to view and export all scraped listings (JSON, CSV, Excel).

# 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 = {
    "searchTerms": [
        "iphone"
    ],
    "startUrls": [],
    "maxItems": 100,
    "maxPagesPerSearch": 5,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "FR"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("haketa/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 = {
    "searchTerms": ["iphone"],
    "startUrls": [],
    "maxItems": 100,
    "maxPagesPerSearch": 5,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "FR",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("haketa/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 '{
  "searchTerms": [
    "iphone"
  ],
  "startUrls": [],
  "maxItems": 100,
  "maxPagesPerSearch": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "FR"
  }
}' |
apify call haketa/leboncoin-scraper --silent --output-dataset

```

## MCP server setup

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