# Leboncoin Scraper: Every Ad, Past 3,500 (`luzivanlt/leboncoin-listings-scraper`) Actor

Every ad of a Leboncoin search, past the 3,500 the site shows, checked against its count. $1.50 per 1,000 ads. Prices, places, sellers, details; ad pages optional.

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

## Pricing

from $1.05 / 1,000 ads

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?

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: Every Ad, Past 3,500

Get every ad of a Leboncoin search, not just the 3,500 the site shows you:
by search words, or from any results link with your own category, place,
price and filters. The run's last message checks the ads saved against
Leboncoin's own count for each search. No Leboncoin account, login or
cookies needed.

Tested daily. Latest check: MEASURED_LINE

### What does this Actor do?

You give it search words (searched across France, or in the departments you
pick) or links to Leboncoin results pages. For each search it saves one row
per ad, until it has every ad Leboncoin counts for that search or reaches
your limit.

Leboncoin's own site stops at 100 pages of 35 ads (3,500) for any search,
and each page shows two paid "à la une" ads in place of two results. This
Actor reads past both: a bigger search is read region by region (and by
price where needed), the paid ads from other searches are left out, and the
results they hid are picked up, so its final message says, per search,
whether it got all of Leboncoin's count ("605 of 605").

Each row comes with:

- the ad id, link, title, category, offer or wanted, and status
- the price in euros (and in cents), and an earlier price when the seller
  cut it
- when it was published, last updated and when it expires
- the condition, whether it can be shipped, the shipping options and the
  buyer protection fee
- the city, postcode, district, department, region and map point
- the seller's id, store id, name, private or professional, a business's
  SIREN number and activity sector, the "no canvassing" flag, and the
  seller's rating and number of ratings
- whether it has a phone number, the urgent and boosted badges and the paid
  options
- every picture (normal and large), floor plans for property, and every
  detail the seller filled in (mileage, fuel, rooms, surface, energy class…)
  with its name and value
- the search it came from and Leboncoin's counts for the search (all,
  professional, private)

With **Include ad pages** on, each row also gets the ad's own page: the full
description and how many people saved the ad to their favourites.

### Why use it?

- **Every ad, not 3,500.** A search with more ads than the site shows is read
  to its end; the run tells you for each search how many of the count it
  saved.
- **No ads lost to paid placements.** The two "à la une" ads on every page
  are not saved, and the results they hide are still read.
- **Any search**, from search words with departments, price, seller and order,
  or a results link with every filter the site offers.
- **Every field Leboncoin lists for an ad**, details and seller rating
  included, and the full description when you want it.
- **$1.50 per 1,000 ads**, ad pages included, and nothing per search.

### How to use it

1. Type search words under **Search words**, or paste Leboncoin results links
   under **Search links**.
2. Set **Max ads per search** (1,000 by default). To get a whole search, set
   it above the number Leboncoin shows for it.
3. Turn on **Include ad pages** if you need the descriptions.
4. Start the run, then download the ads as JSON, CSV or Excel.

Run it with no input to see a sample: up to 50 ads for "velo electrique",
charged as usual.

### Input

| Field              | What it is                                                                   |
| ------------------ | ---------------------------------------------------------------------------- |
| `searchQueries`    | Search words, one search per line, across France                             |
| `startUrls`        | Leboncoin results links or category pages, with your filters                 |
| `departments`      | Mainland department numbers, for the search words (all of France when empty) |
| `minPrice`         | Lowest price in euros, for the search words                                  |
| `maxPrice`         | Highest price in euros, for the search words                                 |
| `sellerType`       | `all` (default), `private` or `pro`, for the search words                    |
| `sort`             | `newest` (default), `oldest`, `price_low` or `price_high`                    |
| `maxAdsPerSearch`  | 1 to 100,000, default 1,000                                                  |
| `includeAdDetails` | `true` to read each ad's own page too (default `false`)                      |

Example:

```json
{
  "startUrls": ["https://www.leboncoin.fr/recherche?category=2&text=clio"],
  "searchQueries": ["velo electrique"],
  "departments": ["75", "92"],
  "maxPrice": 2000,
  "sellerType": "private",
  "maxAdsPerSearch": 5000,
  "includeAdDetails": false
}
```

A link to a single ad, or a link to another site, is refused before the run
starts, with the link named.

### Output

One row per ad. Fields the site does not show for an ad are `null` or an
empty list.

| Field                                                                                                                                          | What it is                                                      |
| ---------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| `ad_id`, `url`, `title`, `category_id`, `category_name`, `ad_type`, `status`                                                                   | The ad                                                          |
| `price`, `currency`, `old_price`, `price_cents`                                                                                                | The price in euros, an earlier price, the price in cents        |
| `published_at`, `updated_at`, `expires_at`                                                                                                     | Dates, in French time with their offset                         |
| `condition`, `condition_code`, `shippable`, `shipping_options`, `buyer_fee`                                                                    | Condition, shipping and the buyer protection fee                |
| `city`, `zipcode`, `district`, `location_text`, `department_id`, `department_name`, `region_id`, `region_name`, `country`                      | Where it is                                                     |
| `latitude`, `longitude`, `location_is_area`                                                                                                    | The map point, and whether it marks an area rather than a spot  |
| `seller_id`, `seller_store_id`, `seller_name`, `seller_type`, `seller_siren`, `seller_activity_sector`, `seller_no_salesmen`                    | The seller                                                      |
| `seller_rating`, `seller_rating_count`, `seller_picture_url`                                                                                   | The seller's rating out of 5, its number of ratings, picture    |
| `has_phone`, `is_urgent`, `is_boosted`, `promotions`                                                                                           | Phone number shown, urgent and boosted badges, paid options     |
| `image_url`, `images`, `images_large`, `image_count`, `floor_plans`                                                                            | Pictures and floor plans                                        |
| `attributes`                                                                                                                                   | Every detail: `key`, `label`, `value`, `values`, `value_label`  |
| `search_url`, `search_total`, `search_total_pro`, `search_total_private`                                                                       | The search the row came from and Leboncoin's counts for it      |
| `details_read`, `description`, `favorites`                                                                                                     | With ad pages: whether the page was read, the text, favourites  |

Sellers' names and ids are personal data: check that your use is allowed
where you are (in the EU, the GDPR applies).

### How much does it cost?

No surcharges and no paid options; an item that fails is not charged.

This Actor is priced per ad saved:

- **$1.50 per 1,000 ads** ($0.0015 an ad), with or without ad pages. Each ad
  is charged once per run.
- No start fee, and nothing per search.

So 1,000 ads cost $1.50. If you set a maximum cost for a run, the Actor stops
when it reaches it and keeps every ad saved so far.

### How long does a run take?

TIMING_LINE

### Good to know

- **Leboncoin's count.** The final message compares the ads saved with the
  site's count for each search. The count moves while a big search is read,
  as ads come and go.
- **Reading a whole search costs more pages.** To get the results the paid ads
  hide, a search is read a second time in the other order once the first
  pass ends short of the count. A run with a limit below the count stops at
  the limit and is read once.
- **Ads with no price.** A region that holds more than 3,500 ads is split by
  price, and an ad with no price at all can then be missed.
- **An ad in two of your searches** is saved once, under the first search
  that reached it.
- **Order.** Rows come in the order you chose; a search over 3,500 ads comes
  back region by region. A link sorted by relevance is read newest first.
- **Ad pages.** A taken-down ad keeps the row from the results page, marked
  `details_read: false`. Phone numbers are not read: Leboncoin shows them only
  to signed-in users.
- **France only**, as Leboncoin.

### More Actors from us

- [Airbnb Scraper: Every Stay, Past the 15-Page Limit](https://apify.com/luzivanlt/airbnb-listings-scraper): Every stay of an Airbnb search, past the 15 pages Airbnb shows, checked against its count.
- [Alibaba Products Scraper: Price Tiers & Suppliers](https://apify.com/luzivanlt/alibaba-products-scraper): Alibaba.com products by keyword or link, with price tiers in US dollars on every row.
- [AliExpress Product Scraper: Search Results & Prices](https://apify.com/luzivanlt/aliexpress-products-scraper): Every product of an AliExpress search to its last page, with exact sold counts and ratings.
- [Amazon Product Scraper: Search Results & Prices](https://apify.com/luzivanlt/amazon-products-scraper): Every product on Amazon's search pages to the last page, sponsored marked, with monthly sales.
- [App Store Reviews Scraper: All Reviews, Not 500](https://apify.com/luzivanlt/app-store-reviews-scraper): Every written App Store review of an app, not just the newest 500.
- [Woolworths Coles ALDI Scraper: AU Grocery Prices](https://apify.com/luzivanlt/au-supermarkets-scraper): Woolworths, Coles and ALDI products for any search in one run, every results page to the end.

### Use it from an AI agent or the API

One call starts a run and returns its items (Apify waits up to 300 seconds; for a
longer run, start it with `POST /v2/acts/…/runs` and read its dataset):

```text
POST https://api.apify.com/v2/acts/luzivanlt~leboncoin-listings-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>
```

With the sample input as its JSON body:

```json
{
  "searchQueries": ["velo electrique"],
  "sellerType": "all",
  "sort": "newest",
  "maxAdsPerSearch": 50,
  "includeAdDetails": false
}
```

Its inputs, in the order of the input form:

| Input                                  | What it takes                                                                                                                                                                                                                           | Default    |
| -------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- |
| `searchQueries` (Search words)         | What to search for across France, one search per line, as you would type it in Leboncoin's search box (up to 100 characters each).                                                                                                      | —          |
| `startUrls` (Search links)             | Leboncoin results links, copied from your browser after you set the category, place, price and other filters you want (https://www.leboncoin.fr/recherche?category=2\&text=clio), or a category page (https://www.leboncoin.fr/c/velos). | —          |
| `departments` (Departments)            | Only ads in these mainland departments, by number, for the search words above (all of France when empty).                                                                                                                               | —          |
| `minPrice` (Lowest price (€))          | Only ads priced at or above this many euros, for the search words above.                                                                                                                                                                | —          |
| `maxPrice` (Highest price (€))         | Only ads priced at or below this many euros, for the search words above.                                                                                                                                                                | —          |
| `sellerType` (Seller)                  | Private sellers, professionals (dealers, shops and agencies), or both (the default), for the search words above.                                                                                                                        | `"all"`    |
| `sort` (Order)                         | Which ads come first, which decides the ones you get when a search holds more than your limit: newest (the default), oldest, cheapest or dearest.                                                                                       | `"newest"` |
| `maxAdsPerSearch` (Max ads per search) | Stop each search after this many ads, from 1 to 100,000 (1,000 by default).                                                                                                                                                             | `1000`     |
| `includeAdDetails` (Include ad pages)  | Also open each ad's own page for its full description and how many people saved it to their favourites.                                                                                                                                 | `false`    |

Apify's MCP server, `https://mcp.apify.com`, lists it as `luzivanlt/leboncoin-listings-scraper`. To give an
AI agent this Actor as a tool, add the server to the agent's MCP config:

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?tools=luzivanlt/leboncoin-listings-scraper"
    }
  }
}
```

The client signs in with OAuth, or add `"headers": { "Authorization": "Bearer <APIFY_TOKEN>" }`.

Charged per ad delivered; the sample input above costs at most $0.08.

### FAQ

**Can I get every ad of a big search?** Yes. Set **Max ads per search** above
the site's count; the final message tells you how many of the count were
saved.

**Can I use my own filters?** Yes. Set them on Leboncoin, copy the link from
your browser and paste it under **Search links**.

**Can I get sellers' phone numbers?** No. Leboncoin shows them only to
signed-in users, and this Actor never signs in. Each row says whether the ad
has one (`has_phone`).

### Is it legal to scrape Leboncoin?

This Actor reads pages anyone can open without an account. Check Leboncoin's
terms and the laws where you are before you use the data, especially the
personal data of sellers.

### Support

Open an issue on the Actor's page and describe the search and what you
expected.

# Changelog

This Actor's version history is a separate document: https://apify.com/luzivanlt/leboncoin-listings-scraper/changelog.md

# Actor input Schema

## `searchQueries` (type: `array`):

What to search for across France, one search per line, as you would type it in Leboncoin's search box (up to 100 characters each). The department, price, seller and sort settings below apply to these. For a category, a city with a radius or other filters, paste a results link under Search links instead. Example: velo electrique

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

Leboncoin results links, copied from your browser after you set the category, place, price and other filters you want (https://www.leboncoin.fr/recherche?category=2\&text=clio), or a category page (https://www.leboncoin.fr/c/velos). Each link keeps all its filters and is read from its first page. A link to one ad is refused. Example: https://www.leboncoin.fr/recherche?category=10\&locations=d_69

## `departments` (type: `array`):

Only ads in these mainland departments, by number, for the search words above (all of France when empty). Corsica and the overseas departments have no number on Leboncoin: pick them on the site and paste the link. Search links keep their own place. Example: 75

## `minPrice` (type: `integer`):

Only ads priced at or above this many euros, for the search words above. Ads with no price at all are left out once a price is set. Search links keep their own price filter. Example: 100

## `maxPrice` (type: `integer`):

Only ads priced at or below this many euros, for the search words above. Ads with no price at all are left out once a price is set. Search links keep their own price filter. Example: 2000

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

Private sellers, professionals (dealers, shops and agencies), or both (the default), for the search words above. Search links keep their own seller filter. Example: private

## `sort` (type: `string`):

Which ads come first, which decides the ones you get when a search holds more than your limit: newest (the default), oldest, cheapest or dearest. A search link sorted by date or price keeps its own order; one sorted by relevance is read in this order, because Leboncoin's relevance order changes from page to page. Example: price_low

## `maxAdsPerSearch` (type: `integer`):

Stop each search after this many ads, from 1 to 100,000 (1,000 by default). Leboncoin's own site shows at most 3,500 ads for one search; this Actor goes past that to the ads Leboncoin counts, so set this above the search's count to get them all. You pay per ad saved, so this also caps what each search costs. Example: 5000

## `includeAdDetails` (type: `boolean`):

Also open each ad's own page for its full description and how many people saved it to their favourites. One more page per ad, so a run takes longer. Off by default. Example: true

## Actor input object example

```json
{
  "searchQueries": [
    "velo electrique"
  ],
  "sellerType": "all",
  "sort": "newest",
  "maxAdsPerSearch": 50,
  "includeAdDetails": false
}
```

# Actor output Schema

## `ads` (type: `string`):

Every ad the run saved, one row each.

## `allFields` (type: `string`):

The same rows with every field.

## `runReport` (type: `string`):

What happened to each input: items saved, nothing found, refused by the site, stopped at your limit, or the error.

# 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 = {
    "searchQueries": [
        "velo electrique"
    ],
    "maxAdsPerSearch": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("luzivanlt/leboncoin-listings-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 = {
    "searchQueries": ["velo electrique"],
    "maxAdsPerSearch": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("luzivanlt/leboncoin-listings-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 '{
  "searchQueries": [
    "velo electrique"
  ],
  "maxAdsPerSearch": 50
}' |
apify call luzivanlt/leboncoin-listings-scraper --silent --output-dataset

```

## MCP server setup

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