# Leboncoin Monitoring Scraper (`saswave/advanced-leboncoin-scraper`) Actor

$0.8 / 1000 results. Leboncoin scraper. Collect product from any search website leboncoin.fr Advanced Web crawler for ecommerce leboncoin. For market research, price monitoring, competitive analysis, business intelligence. Efficient data extraction and reduced runtime costs.

- **URL**: https://apify.com/saswave/advanced-leboncoin-scraper.md
- **Developed by:** [SASWAVE](https://apify.com/saswave) (community)
- **Categories:** E-commerce, Automation, Real estate
- **Features:** Limited permissions
- **Stats:** 818 total users, 29 monthly users, 90.4% runs succeeded, 20 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.80 / 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?

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 – Web Scraper for French Classifieds

**Leboncoin Scraper** is a powerful **web scraping tool** that extracts product and listing details from [leboncoin.fr](https://www.leboncoin.fr), including **prices, locations, and images**. Ideal for **ecommerce analytics, and market research**.

For real estate, go to https://apify.com/saswave/leboncoin-real-estate-scraper

### 🔹 Features

- Collect detailed product and listing information from Leboncoin.fr

- Supports **ecommerce** and **car** or any category except real estate

- Advanced crawler handles **pagination and multiple listings** efficiently

- Output data is ready for **analytics, databases, or CSV export**

### Ouput example

Output object

```json
{
  "list_id": 2968756440,
  "first_publication_date": "2025-04-08 10:53:00",
  "index_date": "2025-04-24 08:43:25",
  "status": "active",
  "category_id": "9",
  "category_name": "Ventes immobilières",
  "subject": "Appartement 4 pièces 73 m²",
  "body": "Appartement 4 pièces 73 m²\n\nLE CABINET LOUIS-PORCHERET vous propose en exclusivité\n\nRare sur le marché, découvrez ce superbe appartement de 4 pièces, une combinaison unique de deux appartements réunis, offrant un espace de vie généreux de 73,18 m² au coeur du quartier animé de la rue de Belleville.\n\nLaissez-vous séduire par son double séjour lumineux, baigné de lumière grâce à une multitude de fenêtres, créant une atmosphère aérée et agréable. Idéal pour recevoir vos invités ou profiter de moments de détente, cet espace spacieux et modulable s'adapte à toutes vos envies.\n\nLa cuisine séparée vous invite à laisser libre cours à vos talents culinaires, tandis que les deux chambres confortables vous offrent un véritable cocon de tranquillité. \nLa salle de bains et le WC séparé complètent cet ensemble parfaitement agencé, avec de nombreux rangements astucieux.\n\nL'emplacement de cet appartement est tout simplement exceptionnel : à seulement quelques pas du métro, vous bénéficiez d'une accessibilité idéale aux transports en commun, commerces, restaurants et services de proximité.\n\nDe plus, cet appartement dispose de 2 caves, offrant des espaces de stockage supplémentaires, un atout majeur dans un quartier recherché comme celui-ci.\n\nVéritable coup de coeur, cet appartement réunit charme, confort et praticité dans un cadre de vie privilégié. \n\nNe manquez pas cette opportunité rare ! Contactez nous dès maintenant pour organiser votre visite et découvrir tout le potentiel de cet appartement d'exception. Alexandre FRISE (EI) Agent Commercial - Numéro RSAC :  - .\n\nSurface : 73 m²\nPrix du bien : 525000 €\nHonoraires à la charge du vendeur\n\nA propos de la copropriété :\nPas de procédure en cours\nStatut provisoire du syndicat : Pas de procédure en cours\nNombre de lots : 80\nCharges prévisionnelles annuelles : 2673 €\nDate de réalisation du diagnostic énergétique : 17/02/2025\n\nConsommation énergie primaire : 274 kWh/m²/an\nConsommation énergie finale : Non communiqué\n\nLes informations sur les risques auxquels ce bien est exposé sont disponibles sur le site Géorisques : www.georisques.gouv.fr",
  "brand": "leboncoin",
  "ad_type": "offer",
  "url": "https://www.leboncoin.fr/ad/ventes_immobilieres/2968756440",
  "price": [
    525000
  ],
  "price_cents": 52500000,
  "owner": {
    "store_id": "81846902",
    "user_id": "84bfe040-8b72-4ab0-adec-cdfdb52ce96f",
    "type": "pro",
    "name": "CABINET LOUIS PORCHERET",
    "siren": "562035840",
    "pro_rates_link": "https://media.immo-facile.com/segments/immo/catalog/images/manufacturers_bareme/21578.pdf",
    "no_salesmen": false,
    "activity_sector": "2"
  },
  "options": {
    "has_option": true,
    "booster": false,
    "photosup": false,
    "urgent": false,
    "gallery": true,
    "sub_toplist": false,
    "continuous_top_ads": true,
    "highlight": false
  },
  "has_phone": true,
  "attributes_listing": [
    {
      "key": "specificities",
      "value": "cellar",
      "key_label": "Caractéristiques",
      "value_label": "Cave",
      "value_label_reader": "Cave",
      "generic": false
    }
  ],
  "similar": null,
  "counters": {
    "favorites": 16
  },
  "attributes": {
    "activity_sector": "2",
    "external_ad_id": "ac3_430419_57984669",
    "real_estate_type": "2",
    "square": "73",
    "rooms": "4",
    "bedrooms": "2",
    "nb_bathrooms": "1",
    "energy_rate": "e",
    "ges": "e",
    "specificities": "",
    "heating_type": "individual",
    "heating_mode": "gas",
    "floor_number": "1",
    "nb_floors_building": "6",
    "floor_property": "",
    "elevator": "2",
    "building_year": "1900",
    "fees_at_the_expanse_of": "seller",
    "annual_charges": "2673",
    "pro_rates_link": "https://media.immo-facile.com/segments/immo/catalog/images/manufacturers_bareme/21578.pdf",
    "district_id": "3000229",
    "district_visibility": "true",
    "district_type_id": "9",
    "district_resolution_type": "integration",
    "mandate_type": "exclusive",
    "has_visibility_option": "true",
    "store_logo": "https://img.leboncoin.fr/api/v1/lbcpb1/images/c8/90/9b/c8909b56-acc1-4ac2-b2ea-714082932532?rule=bo-thumb",
    "store_name": "Cabinet LOUIS-PORCHERET Montreuil - Transactions",
    "online_store_id": "6959857",
    "price_per_square_meter": "7192",
    "custom_ref": "6605",
    "immo_sell_type": "old",
    "is_import": "true",
    "lease_type": "sell"
  },
  "country_id": "FR",
  "region_id": "12",
  "region_name": "Ile-de-France",
  "department_id": "75",
  "department_name": "Paris",
  "city_label": "Paris 75020",
  "city": "Paris",
  "zipcode": "75020",
  "lat": 48.876996462350036,
  "lng": 2.4095308158885547,
  "source": "city",
  "provider": "here",
  "is_shape": true,
  "images": [
    "https://img.leboncoin.fr/api/v1/lbcpb1/images/92/83/47/928347abf52ee9593ddd940eb4aad861953aaec6.jpg?rule=ad-image",
    "https://img.leboncoin.fr/api/v1/lbcpb1/images/68/f8/fa/68f8faf0ba3a31311eb77fb10c5a94280b6dc5a6.jpg?rule=ad-image",
    "https://img.leboncoin.fr/api/v1/lbcpb1/images/5d/25/8c/5d258c9013cd74cbc2cb429b638b237dabf5babc.jpg?rule=ad-image",
    "https://img.leboncoin.fr/api/v1/lbcpb1/images/cd/8e/38/cd8e38c631bd095a5a17f4be53f8221c40b18bde.jpg?rule=ad-image",
    "https://img.leboncoin.fr/api/v1/lbcpb1/images/4c/c0/8d/4cc08dd9dfcad2f71cec6fd083b227053b59a34f.jpg?rule=ad-image",
    "https://img.leboncoin.fr/api/v1/lbcpb1/images/97/11/c2/9711c22876ca76c2126d60257ee1fb07d1651a82.jpg?rule=ad-image"
  ],
  "nb_images": 6,
  "thumb_image": "https://img.leboncoin.fr/api/v1/lbcpb1/images/92/83/47/928347abf52ee9593ddd940eb4aad861953aaec6.jpg?rule=ad-thumb",
  "search_url": "https://www.leboncoin.fr/ad/ventes_immobilieres/2968756440",
  "transport": [
    {
      "lng": 2.4068045,
      "lat": 48.876966,
      "category_id": "60.003",
      "name": "Porte des Lilas",
      "score": 1,
      "lines": [
        {
          "label": "Métro",
          "lines": [
            "11",
            "3b"
          ]
        },
        {
          "label": "Tramway",
          "lines": [
            "T3b"
          ]
        }
      ],
      "category_name": "Transport en commun"
    },
    // truncated for example
  ],
  "point_of_interests": [
    {
      "lng": 2.41299,
      "lat": 48.87647,
      "category_id": "70.002",
      "name": "Épicerie",
      "score": 1,
      "lines": [],
      "category_name": "Supermarchés"
    },
    // truncated for example
  ],
  "caractéristiques":"",
  "seller_infos": {
    "name": "AKShop",
    "registered_at": "2017-08-03",
    "location": "Hérault",
    "feedback": {
      "overall_score": 0.98,
      "category_scores": {
        "COMMUNICATION": 1,
        "PACKAGE": 0.8,
        "PRODUCT": 1,
        "RECOMMENDATION": 1
      },
      "segment_scores": {
        "leboncoin-generalist": 0.95
      },
      "segment_counts": {
        "leboncoin-generalist": 1
      },
      "received_count": 2
    },
    "reply": {
      "in_minutes": 60,
      "text": "Répond en moyenne en 1 heure",
      "rate_text": "Répond à 100 % des messages",
      "rate": 100,
      "reply_time_text": "1 heure"
    },
    "presence": {
      "status": "OFFLINE",
      "presence_text": "Dernière activité il y a 1 jour",
      "last_activity": "2026-04-18T06:38:29Z",
      "enabled": true
    },
    "profile_picture": {
      "is_default": true,
      "default": true,
      "small_url": "https://img.leboncoin.fr/api/v1/tenants/9a6387a1-6259-4f2c-a887-7e67f23dd4cb/domains/20bda58f-d650-462e-a72a-a5a7ecf2bf88/buckets/21d2b0bc-e54c-4b64-a30b-89127b18b785/images/profile/pictures/default/feb5f26c-a72a-5859-aceb-4cb999cc6958?rule=pp-small",
      "medium_url": "https://img.leboncoin.fr/api/v1/tenants/9a6387a1-6259-4f2c-a887-7e67f23dd4cb/domains/20bda58f-d650-462e-a72a-a5a7ecf2bf88/buckets/21d2b0bc-e54c-4b64-a30b-89127b18b785/images/profile/pictures/default/feb5f26c-a72a-5859-aceb-4cb999cc6958?rule=pp-medium",
      "large_url": "https://img.leboncoin.fr/api/v1/tenants/9a6387a1-6259-4f2c-a887-7e67f23dd4cb/domains/20bda58f-d650-462e-a72a-a5a7ecf2bf88/buckets/21d2b0bc-e54c-4b64-a30b-89127b18b785/images/profile/pictures/default/feb5f26c-a72a-5859-aceb-4cb999cc6958?rule=pp-large",
      "extra_large_url": "https://img.leboncoin.fr/api/v1/tenants/9a6387a1-6259-4f2c-a887-7e67f23dd4cb/domains/20bda58f-d650-462e-a72a-a5a7ecf2bf88/buckets/21d2b0bc-e54c-4b64-a30b-89127b18b785/images/profile/pictures/default/feb5f26c-a72a-5859-aceb-4cb999cc6958?rule=pp-extra-large"
    },
    "badges": [
      {
        "type": "global",
        "name": "Responsiveness3"
      },
      {
        "type": "global",
        "name": "VerifiedPhoneNumber"
      }
    ],
    "total_ads": 1,
    "store_id": 30064418,
    "account_type": "private",
    "user_id": "a1157efa-f97b-4772-8b68-eac66970a8d6",
    "description": ""
  }
}
```

### 🔹 Use Cases

Ecommerce Analytics: Extract product information and trends

Product Trends: List and Track

Data Research: Build datasets for machine learning or reporting

### 🛟 SUPPORT

Share your runs with the developer team and create issues on error to help us improve actor quality.

You might discover edge case we didn't test yet

We stay available anytime

# Actor input Schema

## `search_urls` (type: `array`):

Search url to extract products from. Enter a URL or string that does not contain /c/ventes_immobilieres, /c/locations, category=10, category=9, /ad/locations/, or /ad/ventes_immobilieres/ , real estate not supported yet

## `always_body` (type: `boolean`):

Allows to collect more data about products but makes the run slower (Usefull if you always want to get body content)

## `limit_date_today` (type: `boolean`):

Select to use today date when the actor starts (without the need to provide the date manually below). Input limit_date needs to be empty to use limit_date_today

## `limit_date` (type: `string`):

Provide a max date. The scraper will return all items with a publication date newer or equal. For example if 2026-03-15 provide, all items published between today and 2026-03-15 will be returned. After that the actor will stop and not return the older items.

## `max_page` (type: `integer`):

provide max page from 1 to 19

## `products_url` (type: `array`):

1 product url per line (search url input needs to be empty or it will take priority over this variable)

## Actor input object example

```json
{
  "search_urls": [
    "https://www.leboncoin.fr/recherche?category=2&loc ations=Perpignan_66000__42.69818_2.88747_5000_5000"
  ],
  "always_body": false,
  "limit_date_today": false,
  "limit_date": "",
  "max_page": 1,
  "products_url": []
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "search_urls": [
        "https://www.leboncoin.fr/recherche?category=2&loc ations=Perpignan_66000__42.69818_2.88747_5000_5000"
    ],
    "products_url": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("saswave/advanced-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 = {
    "search_urls": ["https://www.leboncoin.fr/recherche?category=2&loc ations=Perpignan_66000__42.69818_2.88747_5000_5000"],
    "products_url": [],
}

# Run the Actor and wait for it to finish
run = client.actor("saswave/advanced-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 '{
  "search_urls": [
    "https://www.leboncoin.fr/recherche?category=2&loc ations=Perpignan_66000__42.69818_2.88747_5000_5000"
  ],
  "products_url": []
}' |
apify call saswave/advanced-leboncoin-scraper --silent --output-dataset

```

## MCP server setup

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