# Leboncoin Listings Scraper (`automation-lab/leboncoin-listings-scraper`) Actor

Scrape Leboncoin.fr ads: property, cars and all categories. Price, attributes, DPE, GPS location, seller and SIREN, photos, description. Monitor new ads.

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

## Pricing

from $0.72 / 1,000 ad saveds

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 Listings Scraper

Extract ads from **Leboncoin.fr**, France's biggest classifieds site: property for sale and rent, cars, motorbikes, electronics, furniture and every other category. Search by keyword, category, city or department, radius and price, paste search URLs straight from your browser, or fetch single ads. Turn on **Only new ads** and schedule it to get just the ads that appeared since the last run.

Each row is one ad with price, full description, typed property fields (surface, rooms, DPE energy class), typed car fields (brand, model, year, mileage, fuel, gearbox), every other attribute, GPS location with zip code, seller type, name and SIREN, and all photo URLs.

### What does Leboncoin Listings Scraper do?

- 🔎 **Searches Leboncoin** with the same filters as the website: keywords, category, place and radius, price range, private or professional sellers, sort order.
- 🔗 **Runs your own search URLs.** Build a search on leboncoin.fr with any filter (surface, rooms, year, mileage, fuel, brand…), copy the URL and paste it. Every filter in the URL is kept.
- 📄 **Fetches single ads** from ad URLs or ad ids.
- 🆕 **Monitors searches.** With *Only new ads* on, each run returns only ads added or bumped since the previous run of the same search.
- 🧾 **Returns full ads from the search itself**: the description, every attribute and every photo come with each result, so there is no slow second request per ad.

### Who is it for?

- 🏠 **Property investors and agents** watching new apartments and houses in a city, with surface, rooms, DPE and price per m² ready to compare.
- 🚗 **Car dealers and buyers** tracking a make and model under a price and mileage limit across a department.
- 📈 **Price analysts and resellers** following prices of phones, consoles, bikes or furniture over time.
- 🧑‍💼 **Lead generation teams** listing professional sellers (agencies, garages) with their SIREN numbers.
- 🧪 **Researchers and data teams** building datasets of the French second-hand and property markets.

### Why use this scraper?

- **One Actor for every category.** Property, vehicles and goods share one input and one output, with typed fields for the categories that need them.
- **Monitoring built in.** *Only new ads* keeps its own memory per search, so a schedule every hour gives you a clean feed of new ads with no duplicates and no extra tooling.
- **Fast and light.** It reads Leboncoin's own listing data, 100 ads per request, without a browser. A run of a few hundred ads usually takes well under a minute.
- **Clean data.** Dates are ISO 8601 in UTC, prices are numbers, attributes have readable French values.

### What data can you extract from Leboncoin?

| Field | Example | Notes |
|---|---|---|
| `adId`, `url` | `3308885836` | Ad id and link |
| `title`, `description` | `Appartement 4 pièces 85 m²` | Full ad text |
| `price` | `389000` | Euros; monthly rent for rentals |
| `categoryId`, `categoryName` | `9`, `Ventes immobilières` | |
| `publishedAt`, `updatedAt` | `2026-11-14T01:32:13.000Z` | First publication and last bump, UTC |
| `sellerType`, `sellerName` | `pro`, `NOVEA IMMOBILIER` | `private` or `pro` |
| `sellerSiren`, `sellerStoreId`, `sellerId` | `902615194` | SIREN when a professional shows it |
| `city`, `zipcode`, `district` | `Lyon`, `69007` | |
| `departmentId`, `departmentName`, `regionName` | `69`, `Rhône` | |
| `latitude`, `longitude` | `45.744`, `4.843` | Often the city or district centre |
| `surfaceM2`, `rooms`, `bedrooms`, `landSurfaceM2` | `85`, `4`, `3` | Property ads |
| `realEstateType`, `energyClass`, `gesClass` | `Appartement`, `D`, `D` | DPE and GES ratings |
| `vehicleBrand`, `vehicleModel`, `year`, `mileageKm` | `Renault`, `Clio`, `2018`, `91550` | Car and motorbike ads |
| `fuel`, `gearbox` | `Essence`, `Manuelle` | |
| `attributes` | `{ "floor_number": "2", "heating_mode": "Gaz" }` | Every other attribute |
| `imageUrls`, `imageCount`, `thumbnailUrl` | | Large photo URLs |
| `hasPhone`, `isUrgent` | `true`, `false` | Phone numbers themselves are not collected |
| `searchSource`, `scrapedAt` | | Which search returned the row, and when |

The dataset has three views: **Ads**, **Property** and **Vehicles**.

### How much does it cost to scrape Leboncoin ads?

You pay per ad saved, plus a small fee per run. There is no separate charge for descriptions, photos or attributes.

| Event | Price |
|---|---|
| Run start | $0.005 per run |
| Ad saved | $0.0009 per ad on Free and Bronze, $0.00081 on Silver, $0.00072 on Gold and above |

Examples at the Bronze price:

- **50 new ads from a monitored search:** about $0.05.
- **1,000 ads from a city-wide property search:** about $0.91.
- **Hourly monitor that finds 20 new ads per run, 24 runs a day:** about $0.55 a day.

A monitor run that finds no new ads costs only the $0.005 start fee. You can cap any run with Apify's *Maximum charge per run*; the scraper stops cleanly at that limit and keeps every ad it already saved.

### How to scrape Leboncoin, step by step

1. Open the Actor and click **Try for free**.
2. Type **Keywords**, pick a **Category** and enter a **Location** such as `Lyon`, `75011` or `69`. Or paste a **Leboncoin search URL**.
3. Set **Maximum ads per search**.
4. Optional: turn on **Only new ads** to monitor the search.
5. Click **Start**, then open the **Ads**, **Property** or **Vehicles** view, or export to JSON, CSV or Excel.
6. To monitor, save the input as a task and add a schedule, for example every hour.

### Input parameters

| Field | What it does |
|---|---|
| `keywords` | Words to search for, e.g. `appartement T3`, `clio 4`. Optional. |
| `category` | Leboncoin category id, e.g. `9` property for sale, `10` rentals, `2` cars, `0` all. |
| `location` | City name, zip code or department number. Empty = all of France. |
| `radiusKm` | Radius around the city in km. Empty = Leboncoin's default city area. |
| `priceMin`, `priceMax` | Price range in euros. |
| `sellerType` | `all`, `private` or `pro`. |
| `titleOnly` | Match keywords in titles only. |
| `sortBy` | `newest`, `relevance`, `price_asc` or `price_desc`. |
| `searchUrls` | Leboncoin search URLs; every filter in the URL is applied. |
| `adUrls` | Single ad URLs or ids. Each gives one row; a sold or removed ad is skipped and not charged. |
| `maxItems` | Maximum ads per search (up to 3,500, Leboncoin's own limit per search). |
| `onlyNew` | Monitor mode: return only ads not returned by earlier runs of the same search. |
| `monitorName` | Keeps separate monitor memories for schedules that run the same search. |

Example input, two-room flats for rent in Paris under €1,500:

```json
{
    "category": "10",
    "location": "Paris",
    "priceMax": 1500,
    "keywords": "2 pièces",
    "maxItems": 200
}
```

Example input, a search URL with car filters, monitored:

```json
{
    "searchUrls": [
        "https://www.leboncoin.fr/recherche?category=2&text=clio&price=5000-10000&regdate=2015-max&mileage=min-100000&locations=d_33"
    ],
    "onlyNew": true,
    "maxItems": 100
}
```

### Output example

A real row, shortened:

```json
{
    "adId": "3308885836",
    "url": "https://www.leboncoin.fr/ad/ventes_immobilieres/3308885836",
    "title": "Appartement 4 pièces 85 m²",
    "description": "LYON 7e - JEAN JAURÈS / LE BON LAIT - T4/T5 DE 85 M² RÉNO…",
    "price": 389000,
    "currency": "EUR",
    "categoryId": "9",
    "categoryName": "Ventes immobilières",
    "publishedAt": "2026-11-14T01:32:13.000Z",
    "updatedAt": "2026-11-19T07:20:04.000Z",
    "sellerType": "pro",
    "sellerName": "NOVEA IMMOBILIER",
    "sellerSiren": "902615194",
    "city": "Lyon",
    "zipcode": "69007",
    "district": "Place Jean Jaurès",
    "departmentId": "69",
    "latitude": 45.744038,
    "longitude": 4.8439074,
    "surfaceM2": 85,
    "rooms": 4,
    "bedrooms": 3,
    "realEstateType": "Appartement",
    "energyClass": "D",
    "gesClass": "D",
    "attributes": {
        "heating_mode": "Gaz",
        "floor_number": "2",
        "elevator": "Non",
        "building_year": "1964",
        "annual_charges": "1201 €",
        "price_per_square_meter": "4576"
    },
    "imageUrls": ["https://img.leboncoin.fr/api/v1/lbcpb1/images/20/81/6b/20816b54241f58c45e61b3107ddec9bef123618e.jpg?rule=ad-large"],
    "imageCount": 13,
    "searchSource": "\"appartement\" · Lyon · category 9"
}
```

### How monitoring with "Only new ads" works

- The first run of a search saves up to *Maximum ads per search* of the newest ads as a baseline.
- Each later run returns only ads that were added or bumped after the previous run and were never returned before for that search.
- The memory is kept per search in a named key-value store called `leboncoin-listings-monitor` in your Apify account. Changing any filter starts a new search with a new baseline.
- If a run stops early (for example at your spending limit), the ads it did not reach are still returned by the next run.
- Use `monitorName` if two schedules run the same search and each needs its own memory.

### Tips and limits

- **3,500 ads per search.** Leboncoin shows at most 3,500 results for one search. For more, split by department, city or price band, one search URL each.
- **Search URL filters.** Any filter in a `/recherche` URL works, including surface, rooms, year, mileage, fuel, brand and DPE. Category pages such as `/c/voitures` work too. SEO landing pages with places in the path (`/cl/...`) are not supported: open them, apply a filter and copy the `/recherche` URL instead.
- **Keywords also match descriptions.** Leboncoin searches the ad text too, so "peugeot 208" can return an ad that only mentions it. Turn on *Search in titles only* (`titleOnly`) for tighter matches.
- **"Newest first" follows the last re-listing.** Sellers can bump an ad, which moves it back to the top. `updatedAt` is that date; `publishedAt` is when the ad first went online, so it can be older than ads listed below it.
- **Unknown places fail fast.** A city Leboncoin does not know ends the run at once with a clear message and no charge. Use a city, a zip code or a department number such as 69.
- **Location coordinates** are where the seller placed the ad, often the city or district centre rather than the exact address.
- **Phone numbers and emails are not collected.** `hasPhone` only tells you a number exists.
- **Bad input fails fast and free.** A URL that is not a Leboncoin search, or an empty input, ends the run before any request, with no charge.
- **Removed ads.** An ad URL for a sold or removed ad is skipped with a warning.
- **If Leboncoin refuses ad URLs.** Between 2026-11-21 and 2026-11-22 Leboncoin refused single-ad lookups. If that happens again, the ad URLs are skipped with a warning and not charged, and searches in the same run still deliver.
- **Nearby places are included.** A city or zip code search uses Leboncoin's default area around that place, so results from Lyon can include Villeurbanne. Set *Radius* (`radiusKm`) to choose the area yourself.

### Integrations and workflows

- **Property alerts:** schedule a monitored search every hour and send new rows to Slack, email or Google Sheets with Apify integrations.
- **Car sourcing:** monitor several search URLs (one per model) and push new ads to your CRM through a webhook.
- **Price tracking:** run a daily full search and compare `price` by `adId` over time in your warehouse.
- **Market studies:** export property ads with `surfaceM2`, `price`, `energyClass` and coordinates to compute price per m² by district.

### Use the Leboncoin scraper through the API

cURL:

```bash
curl -X POST "https://api.apify.com/v2/acts/automation-lab~leboncoin-listings-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords":"vélo électrique","location":"Nantes","radiusKm":20,"maxItems":50}'
```

JavaScript:

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('automation-lab/leboncoin-listings-scraper').call({
    category: '2',
    location: '33',
    priceMax: 10000,
    maxItems: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, items[0]?.title);
```

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("automation-lab/leboncoin-listings-scraper").call(run_input={
    "category": "9",
    "location": "Lyon",
    "onlyNew": True,
    "maxItems": 100,
})
for ad in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(ad["price"], ad["surfaceM2"], ad["city"], ad["url"])
```

### Use with AI agents through MCP

Add the Actor to Claude Code:

```bash
claude mcp add --transport http apify \
  "https://mcp.apify.com?tools=automation-lab/leboncoin-listings-scraper"
```

JSON configuration for Claude Desktop, Cursor, VS Code and other MCP clients:

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

The Actor-specific URL also adds Apify's run and dataset tools. A good workflow for an agent:

1. Start one run, keep its run id, and if it is not finished after the call, check the same run with `get-actor-run` with short backoff (2, 4, 8 s) up to a deadline such as 120 s. Never start a second run just to poll.
2. When it succeeded, read results with `get-dataset-items` using the dataset id, an explicit `limit` (e.g. 20), `offset` and the `fields` you need, such as `title,price,city,url`.
3. Stop at a budget such as 100 rows, and report the next offset if more remain. Keep full exports outside the model's context.

Example prompts:

- "Find two-room flats for rent in Lyon under €1,000 on Leboncoin and list the 10 cheapest per m²."
- "Show Renault Clio ads in Gironde from 2016 or later under 80,000 km, with price and mileage."
- "Which professional sellers posted the most property ads in Marseille this week? Include their SIREN."

### Data handling and retention

- Ads, run logs and the `leboncoin-listings-monitor` key-value store live in your Apify account and follow your account's retention settings. Delete the store to reset every monitor.
- The monitor store keeps only ad ids and the date of the newest ad seen per search, never ad content.
- When a run fails, a sanitized error report (error message, Actor and run ids, and the input with secret fields and URL queries removed) goes to our private GlitchTip error tracker so we can fix it. Those reports are kept for 30 days and are not deleted when you delete Apify storage.
- No AI model is called, and no data is sent anywhere else besides Leboncoin (to run the search) and Apify Proxy.

### Is it legal to scrape Leboncoin?

This Actor collects only ads that anyone can see on leboncoin.fr without logging in. It does not log in, does not collect phone numbers or emails, and does not get around access controls tied to an account. Ads can include personal data such as a private seller's first name; under the GDPR you need a lawful basis to store and use it, and you should collect only what your use needs. Respect Leboncoin's terms and do not use the data for spam or unsolicited contact. If in doubt, ask a lawyer about your use case. This Actor is not affiliated with or endorsed by Leboncoin.

### FAQ

**How fresh is the data?** Each run reads Leboncoin live, so ads appear within seconds of their publication.

**Can I get more than 3,500 ads?** Not from one search; Leboncoin itself stops there. Split the search by department, city or price and pass several search URLs.

**Why did my monitor run return 0 ads?** Nothing new matched since the previous run. The run still succeeds and costs only the start fee. The first run of a new search always returns a baseline.

**Why did my run fail at once?** The input had no search, or a URL was not a Leboncoin search URL (for example an ad URL in *Search URLs*). The status message names the problem; such runs are not charged.

**Does it return phone numbers?** No. Leboncoin shows phone numbers only to logged-in users, and this Actor does not log in.

**Are prices in euros?** Yes. For rentals, the price is the monthly rent shown on the ad.

### Related scrapers

- [Vinted Scraper](https://apify.com/automation-lab/vinted-scraper) for second-hand fashion across Europe.
- [Kleinanzeigen Scraper](https://apify.com/automation-lab/kleinanzeigen-scraper) for Germany's main classifieds site.
- [Wallapop Marketplace Scraper](https://apify.com/automation-lab/wallapop-marketplace-scraper) for second-hand listings in Spain and Italy.
- [ImmoScout24 Property Listings Scraper](https://apify.com/automation-lab/immoscout24-property-scraper) for German property ads.

# Changelog

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

# Actor input Schema

## `keywords` (type: `string`):

Words to search for, as typed in the Leboncoin search box, e.g. `appartement T3` or `clio 4`. Leave empty to list every ad in the category and place.

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

Leboncoin category to search. Real estate and cars get typed fields such as surface, rooms, DPE, year and mileage.

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

City, zip code or department number, e.g. `Lyon`, `75011` or `69`. Leave empty for all of France.

## `radiusKm` (type: `integer`):

Search this many km around the city. Empty uses Leboncoin's default area for the city. Ignored for departments.

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

Only ads priced at least this much.

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

Only ads priced at most this much.

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

Private sellers, professionals, or both.

## `titleOnly` (type: `boolean`):

Match keywords in the ad title only, not the description.

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

Order of results. Only new ads always uses newest first.

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

Search result URLs copied from your browser, e.g. `https://www.leboncoin.fr/recherche?category=2&text=clio&price=5000-10000`. All URL filters are kept: location, price, surface, rooms, mileage, year, fuel and so on. Each URL is a separate search.

## `adUrls` (type: `array`):

Single Leboncoin ad pages or ad ids, e.g. `https://www.leboncoin.fr/ad/voitures/3012345678`. Each gives one record. A sold or removed ad is skipped and not charged.

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

Stop each search after this many ads. Leboncoin shows at most 3,500 ads for one search; split big searches by place or price.

## `onlyNew` (type: `boolean`):

Monitor mode. The first run saves the newest ads as a baseline; later runs return only ads not returned before for the same search. Schedule it to get new ads every few hours.

## `monitorName` (type: `string`):

Keeps separate memories of seen ads for different schedules that run the same search. Leave empty unless you need that.

## Actor input object example

```json
{
  "keywords": "appartement",
  "category": "9",
  "location": "Lyon",
  "sellerType": "all",
  "titleOnly": false,
  "sortBy": "newest",
  "maxItems": 20,
  "onlyNew": false
}
```

# Actor output Schema

## `overview` (type: `string`):

All ads with title, price, place, category, seller and link.

## `realEstate` (type: `string`):

Property ads with type, surface, rooms, DPE, GPS and seller SIREN.

## `vehicles` (type: `string`):

Vehicle ads with brand, model, year, mileage, fuel and gearbox.

# 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 = {
    "keywords": "appartement",
    "category": "9",
    "location": "Lyon",
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation-lab/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 = {
    "keywords": "appartement",
    "category": "9",
    "location": "Lyon",
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("automation-lab/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 '{
  "keywords": "appartement",
  "category": "9",
  "location": "Lyon",
  "maxItems": 20
}' |
apify call automation-lab/leboncoin-listings-scraper --silent --output-dataset

```

## MCP server setup

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