# Leboncoin Scraper - Scrape Listings & Prices (`logiover/leboncoin-scraper`) Actor

Scrape Leboncoin search results: title, price, category, brand, images, attributes, location (city/zipcode/GPS) & seller. Hundreds-to-thousands per search. No login.

- **URL**: https://apify.com/logiover/leboncoin-scraper.md
- **Developed by:** [Logiover](https://apify.com/logiover) (community)
- **Categories:** E-commerce, Business, Marketing
- **Stats:** 22 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 - scrape Leboncoin listings, prices & sellers

Scrape Leboncoin annonces from any keyword search and export clean, structured data - prices, locations, sellers and more. This **Leboncoin scraper** turns leboncoin.fr search results into a ready-to-use dataset, with no login, no cookies and no API key.

Point it at a keyword like `voiture`, `iphone 15` or `appartement paris` and it paginates the whole search, pulling **hundreds to thousands of classified ads** per query. Broad categories such as cars or real estate expose well over a million results to walk through.

### What you get

Every Leboncoin ad is returned as one flat record. Fields include:

- **title** - ad title
- **description** - full ad body text
- **price** - price in euros (also `priceCents` and `currency`)
- **categoryId / categoryName** - Leboncoin category of the item
- **brand** - item brand when present
- **adType / status** - offer vs. demand, active/expired
- **hasPhone** - whether the seller exposed a phone number (the number itself is not collected)
- **firstPublicationDate / expirationDate** - when the ad was posted and when it expires
- **imageCount / thumbnail / images** - image count, thumbnail and all image URLs
- **attributes** - structured key/value pairs (year, mileage, surface, size, ...)
- **location** - region, department, city, **zipcode**, and **GPS** latitude/longitude
- **seller** - id, store id, name, private-vs-pro flag and activity sector
- **url** - direct listing URL
- **searchQuery / scrapedAt** - the query that produced the row and the scrape timestamp

Export the dataset to **CSV, JSON, Excel**, HTML, or pull it via the Apify API and webhooks.

### Use cases

- **Reselling & arbitrage** - track second-hand prices and spot underpriced ads across categories and regions.
- **Price & market analysis** - benchmark used prices for cars, phones, furniture or real estate over time.
- **Lead generation** - build lists of professional (pro) sellers filtered by category and location.
- **Real estate & auto research** - monitor new `appartement`, `maison` or `voiture` listings in a target area.
- **Datasets & ML** - assemble labelled French marketplace data for pricing and trend models.

### How to use

1. Click **Try for free** / **Start**.
2. In **Search queries** add one or more keywords (for example `voiture`, `iphone`, `appartement paris`). Each query is paginated independently.
3. Optional: set a Leboncoin **category ID** (e.g. `2` = Voitures), a **location** filter (region/department/city), and a **sort order** (most recent, price low-to-high, price high-to-low).
4. Set **Max items per search** and **Max results** to cap volume, or leave at `0` to pull everything.
5. Leave the **proxy** on the default (Apify Residential, country France) - this is required (see FAQ).
6. Run it, then download the results as CSV, JSON or Excel from the **Storage / Dataset** tab.

#### Example input

```json
{
  "searchText": ["voiture", "iphone"],
  "sortBy": "time",
  "maxItemsPerSearch": 350,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "FR"
  }
}
````

#### Example output

```json
{
  "title": "Peugeot 208 1.2 PureTech - faible kilometrage",
  "price": 12490,
  "currency": "EUR",
  "categoryName": "Voitures",
  "brand": "Peugeot",
  "firstPublicationDate": "2026-05-30 13:05:25",
  "images": ["https://img.leboncoin.fr/api/v1/.../...jpg"],
  "attributes": [{ "key": "regdate", "value": "2019", "label": "2019" }],
  "location": {
    "region": "Ile-de-France",
    "department": "75",
    "city": "Paris",
    "zipcode": "75011",
    "lat": 48.8619,
    "lng": 2.3784
  },
  "seller": { "name": "Garage Centre Auto", "type": "pro", "isPro": true },
  "url": "https://www.leboncoin.fr/ad/voitures/3121812923",
  "searchQuery": "voiture",
  "scrapedAt": "2026-06-04T10:00:00.000Z"
}
```

### How it works

The actor requests each public Leboncoin search page over a French residential proxy, parses the embedded `__NEXT_DATA__` JSON, and extracts every ad on the page (35 per page). It paginates until your limit is reached or results run out, streaming de-duplicated records to the dataset. There is **no headless browser**, so it stays fast and cheap at scale; when a request is challenged it simply retries with a fresh proxy session.

### FAQ

#### Do I need a Leboncoin login or API key?

No. The Leboncoin scraper reads only the public website search page - no account, no cookies and no developer API key. There is no official Leboncoin API for bulk listings, so this is the practical way to export annonces.

#### Why does it require a France residential proxy?

Leboncoin uses DataDome IP-reputation filtering. A clean French residential IP passes, while datacenter or non-FR IPs get blocked. The proxy is pre-set to `RESIDENTIAL` + country `FR` - just leave the default.

#### How many ads can I scrape per search?

Hundreds to thousands. Each page holds 35 ads and Leboncoin allows up to ~100 pages per query, so a broad search yields up to ~3,500 ads. Add more keywords to scale wider in one run.

#### Can I filter by category, location or price?

Yes. Pass a Leboncoin `category` ID and/or a `location` value, and choose a `sortBy` order (most recent, price low-to-high, or price high-to-low) to target exactly the annonces you need.

#### Can I export to CSV or Excel?

Yes. Every run can be downloaded as CSV, JSON, Excel or HTML, or pulled programmatically through the Apify API and webhooks.

***

*Collects publicly available listing data only. You are responsible for compliance with Leboncoin's Terms and applicable laws, including bulk-access and personal-data limits.*

### Changelog

#### 2026-06-05

- Reliability fix: results are no longer dropped by strict output validation - runs complete cleanly at high volume.
- Stability & performance hardening; fresh rebuild.

#### 2026-06-04

- Verified live & refreshed build - reliability/maintenance pass.

# Actor input Schema

## `searchText` (type: `array`):

One or more keywords to search on Leboncoin. Examples: 'voiture', 'iphone 15', 'appartement paris'. Each query is paginated independently.

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

Restrict results to a Leboncoin category ID (the `category` URL param). E.g. '2' = Voitures, '9' = Immobilier. Leave empty to search all categories.

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

Leboncoin `locations` URL value to restrict by region/department/city, e.g. 'Paris\_\_48.85\_2.34\_10000' or a region slug. Leave empty for all of France.

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

Result ordering: 'time' (most recent), 'price-asc' (cheapest first) or 'price-desc' (most expensive first). Default is Leboncoin relevance.

## `maxItemsPerSearch` (type: `integer`):

Cap on ads collected per query (paginated, 35 per page). 0 = until results run out (Leboncoin caps at ~100 pages).

## `maxResults` (type: `integer`):

Global cap on ads saved across all queries. 0 = unlimited.

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

Leboncoin requires Apify Residential proxies in France (DataDome IP filtering). Leave the default (Apify Proxy · RESIDENTIAL · country FR).

## Actor input object example

```json
{
  "searchText": [
    "voiture",
    "iphone"
  ],
  "maxItemsPerSearch": 0,
  "maxResults": 0,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "FR"
  }
}
```

# Actor output Schema

## `title` (type: `string`):

Ad title

## `price` (type: `string`):

Price in euros

## `categoryName` (type: `string`):

Category

## `city` (type: `string`):

City

## `url` (type: `string`):

Listing URL

# 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 = {
    "searchText": [
        "voiture"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "FR"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("logiover/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 = {
    "searchText": ["voiture"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "FR",
    },
}

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

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

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

```

## CLI example

```bash
echo '{
  "searchText": [
    "voiture"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "FR"
  }
}' |
apify call logiover/leboncoin-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=logiover/leboncoin-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Leboncoin Scraper - Scrape Listings & Prices",
        "description": "Scrape Leboncoin search results: title, price, category, brand, images, attributes, location (city/zipcode/GPS) & seller. Hundreds-to-thousands per search. No login.",
        "version": "1.0",
        "x-build-id": "ueMWdnZtcOudXqADn"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/logiover~leboncoin-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-logiover-leboncoin-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/logiover~leboncoin-scraper/runs": {
            "post": {
                "operationId": "runs-sync-logiover-leboncoin-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/logiover~leboncoin-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-logiover-leboncoin-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "searchText"
                ],
                "properties": {
                    "searchText": {
                        "title": "Search queries",
                        "type": "array",
                        "description": "One or more keywords to search on Leboncoin. Examples: 'voiture', 'iphone 15', 'appartement paris'. Each query is paginated independently.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "category": {
                        "title": "Category ID (optional)",
                        "type": "string",
                        "description": "Restrict results to a Leboncoin category ID (the `category` URL param). E.g. '2' = Voitures, '9' = Immobilier. Leave empty to search all categories."
                    },
                    "location": {
                        "title": "Location filter (optional)",
                        "type": "string",
                        "description": "Leboncoin `locations` URL value to restrict by region/department/city, e.g. 'Paris__48.85_2.34_10000' or a region slug. Leave empty for all of France."
                    },
                    "sortBy": {
                        "title": "Sort order (optional)",
                        "enum": [
                            "time",
                            "price-asc",
                            "price-desc"
                        ],
                        "type": "string",
                        "description": "Result ordering: 'time' (most recent), 'price-asc' (cheapest first) or 'price-desc' (most expensive first). Default is Leboncoin relevance."
                    },
                    "maxItemsPerSearch": {
                        "title": "Max items per search",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Cap on ads collected per query (paginated, 35 per page). 0 = until results run out (Leboncoin caps at ~100 pages).",
                        "default": 0
                    },
                    "maxResults": {
                        "title": "Max results",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Global cap on ads saved across all queries. 0 = unlimited.",
                        "default": 0
                    },
                    "proxyConfiguration": {
                        "title": "Proxy",
                        "type": "object",
                        "description": "Leboncoin requires Apify Residential proxies in France (DataDome IP filtering). Leave the default (Apify Proxy · RESIDENTIAL · country FR).",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "FR"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
