# Leboncoin Listings Scraper (no personal data) (`brimming_placket/leboncoin-scraper`) Actor

Scrape leboncoin.fr search results: price, category, town, attributes and photos. Paste a search URL. No seller names or phone numbers. $1.50 per 1,000 listings.

- **URL**: https://apify.com/brimming_placket/leboncoin-scraper.md
- **Developed by:** [Keaton Anderson](https://apify.com/brimming_placket) (community)
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 listings

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

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 Listings Scraper (no personal data)

Get leboncoin.fr search results as clean JSON, CSV or Excel: title, price, category, town and postcode, listing attributes (mileage, fuel, surface, rooms...), photos and dates. Set your filters on leboncoin, paste the search URL, and the actor walks the result pages for you.

**Built for price and market analysis, not lead lists.** Seller names, user ids, SIREN numbers, phone numbers and exact coordinates are never collected. Phone numbers and email addresses that sellers type into a title, description or attribute are masked. You still get the seller type (private or pro).

### What you can use it for

- Track used-car, property or second-hand prices by region
- Watch a category for new listings and price drops
- Build datasets for pricing models and market reports

### Pricing

**$1.50 per 1,000 listings** (pay per result). You pay only for listings returned. A listing that matches two of your searches is charged once. Set **Max results** to cap the cost of any run.

### Input

| Field | What it does |
|---|---|
| Leboncoin search URLs | Run a search on leboncoin.fr with your filters, then paste the address from your browser. One per line. |
| Max results | Stop after this many listings across all searches. |
| Max pages per search | About 35 listings a page. Leboncoin stops near 100 pages per search, so split big searches by price range or region. |
| Include descriptions | Listing text, with contact details masked. |
| Proxy | French residential proxy, on by default. Leboncoin blocks datacenter and non-French IPs, so keep it on. |

Example input:

```json
{
  "searchUrls": ["https://www.leboncoin.fr/recherche?category=2&text=clio"],
  "maxItems": 100,
  "maxPagesPerSearch": 3
}
```

### Output

One row per listing:

```json
{
  "id": 2900000001,
  "url": "https://www.leboncoin.fr/ad/voitures/2900000001",
  "title": "Renault Clio IV 1.5 dCi",
  "description": "Très bon état. Appelez-moi au [phone removed]",
  "price": 7500,
  "currency": "EUR",
  "category": "Voitures",
  "adType": "offer",
  "publishedAt": "2026-10-28 18:02:11",
  "updatedAt": "2026-10-29 09:15:40",
  "city": "Lyon 69003",
  "zipcode": "69003",
  "department": "Rhône",
  "region": "Auvergne-Rhône-Alpes",
  "sellerType": "private",
  "isUrgent": true,
  "imageCount": 2,
  "imageUrls": ["https://..."],
  "attributes": {"mileage": "120000 km", "fuel": "Diesel"},
  "searchUrl": "https://www.leboncoin.fr/recherche?category=2&text=clio",
  "scrapedAt": "2026-10-30T05:33:02+00:00"
}
```

(Example values are illustrative.)

### Reliability

- A run that finds nothing **fails** with a clear message instead of "succeeding" empty, so a site change never hands you a silent blank dataset.
- If leboncoin blocks a request, the actor switches to a fresh proxy session and retries with backoff.
- Tested daily against a live search.
- Issues are answered within 14 days.

### Notes

- Collects only publicly visible search pages. No login, no account.
- Not affiliated with leboncoin.

# Actor input Schema

## `searchUrls` (type: `array`):

Run a search on leboncoin.fr with the filters you want, then paste the address from your browser. One URL per line.

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

Stop after this many listings across all searches. You are charged per listing, so this caps the cost of a run.

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

About 35 listings per page. Leboncoin stops at around 100 pages per search; narrow the filters (price range, region) to reach more.

## `includeDescription` (type: `boolean`):

The listing text, with any phone numbers or email addresses masked.

## `requestDelaySecs` (type: `number`):

Polite pause between page requests.

## `failOnZeroItems` (type: `boolean`):

On by default, so a blocked or changed site shows up as a failed run instead of a silent empty one.

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

Leboncoin blocks datacenter and non-French IPs. Keep the French residential proxy on.

## Actor input object example

```json
{
  "searchUrls": [
    "https://www.leboncoin.fr/recherche?category=2&text=clio"
  ],
  "maxItems": 100,
  "maxPagesPerSearch": 10,
  "includeDescription": true,
  "requestDelaySecs": 1.5,
  "failOnZeroItems": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "FR"
  }
}
```

# Actor output Schema

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

Dataset containing all listings

# 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 = {
    "searchUrls": [
        "https://www.leboncoin.fr/recherche?category=2&text=clio"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("brimming_placket/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 = { "searchUrls": ["https://www.leboncoin.fr/recherche?category=2&text=clio"] }

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

```

## MCP server setup

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