# Leboncoin France Classified Ads Extractor (`vexaloom-labs/leboncoin-france-classified-ads-extractor`) Actor

Scrape Leboncoin search results by URL, category or keyword across real estate, vehicles, jobs and more, with price, location, photos, owner type and category-specific attributes.

- **URL**: https://apify.com/vexaloom-labs/leboncoin-france-classified-ads-extractor.md
- **Developed by:** [vexaloom-labs](https://apify.com/vexaloom-labs) (community)
- **Categories:** Automation, Lead generation, Real estate
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 France Classified Ads Extractor

Leboncoin is France's largest classifieds marketplace: rentals and property sales, cars and motorbikes, jobs, phones, furniture, and almost everything else. This actor turns any public Leboncoin search into structured records you can filter, join, and chart. It needs no Leboncoin account, no cookies, and no proxy setup.

### What it does

- **Search URLs** — paste one or more `leboncoin.fr/recherche` links; filters already in the URL (location, price, category, sort, property or vehicle facets) are kept.
- **Search builder** — choose a category, keywords, locations, price range, seller type, ad type, and the property, vehicle, goods, or job filters you need.
- **Pagination** — reads Leboncoin's own 35-ad result pages until your `maxItems` is reached or the source runs out, and deduplicates across pages.
- **Rich records** — price, location and coordinates, seller details, photo gallery, publication dates, and every category-specific attribute (surface, rooms, DPE, mileage, fuel, gearbox, contract type, and more).
- **Legacy inputs** — saved tasks that still send `category`, `search`, `startUrls`, or `maxItems` keep working; old keys are mapped in code.

### Inputs

| Field | Purpose |
| --- | --- |
| `startUrls` | Public Leboncoin search URLs. Any filters in the URL are preserved. |
| `category` | Category ID when you are not pasting a URL (9 property sales, 10 rentals, 2 cars, 33 jobs, and so on). |
| `search` | Keywords, for example `peugeot 208` or `studio paris`. |
| `locations` | Places in Leboncoin's own syntax: `Paris`, `75015`, `d_75`, `r_12`, or a full city code. |
| `priceMin` / `priceMax` | Price band in euros. |
| `sort` | Relevance, newest, oldest, price low-to-high, or price high-to-low. |
| `ownerType` | All sellers, private individuals only, or professionals only. |
| `adType` | Offers, wanted ads, or both. |
| `shippable` | Only ads where the seller offers shipping. |
| `searchInTitle` | Match keywords in titles only. |
| `roomsMin` / `roomsMax` | Real-estate room count. |
| `surfaceMin` / `surfaceMax` | Real-estate living area in m². |
| `realEstateType` | House, apartment, land, parking, or other. |
| `mileageMin` / `mileageMax` | Vehicle odometer range in km. |
| `yearMin` / `yearMax` | Vehicle model-year range. |
| `condition` | New, refurbished, very good, good, fair, or for parts. |
| `contractType` | Fixed-term, permanent, temporary, freelance, apprenticeship, internship, or volunteering. |
| `maxItems` | Stop after this many ads (maximum 1,000). |

#### Examples

Rentals in Paris under €2,000, newest first:

```json
{
  "startUrls": ["https://www.leboncoin.fr/recherche?category=10&locations=Paris&price=min-2000&sort=time&order=desc"],
  "maxItems": 100
}
```

Used Peugeot 208s with a mileage cap:

```json
{
  "category": 2,
  "search": "Peugeot 208",
  "priceMax": 12000,
  "mileageMax": 120000,
  "sort": "price_low",
  "maxItems": 50
}
```

Three-room apartments for sale in Lyon:

```json
{
  "category": 9,
  "locations": ["Lyon"],
  "roomsMin": 3,
  "roomsMax": 3,
  "realEstateType": ["2"],
  "maxItems": 100
}
```

### Output

Each row is one ad. Empty values are omitted, never sent as `null` or a sentinel.

| Field | Description |
| --- | --- |
| `id` | Leboncoin ad ID. |
| `url` | Direct link to the ad. |
| `subject` | Ad title. |
| `body` | Description text, truncated to 2,000 characters. |
| `categoryId` / `categoryName` | Category ID and label. |
| `adType` / `status` | Offer or demand; active, sold, or expired. |
| `price` / `priceCents` / `priceCurrency` | Asking price in euros and cents. |
| `publishedDate` / `expirationDate` / `indexDate` | Publication, expiry, and last-index timestamps. |
| `city` / `zipcode` / `cityLabel` | City, postal code, and full location label. |
| `department` / `departmentId` / `region` / `regionId` / `country` | Administrative location. |
| `latitude` / `longitude` | GPS coordinates. |
| `ownerName` / `ownerType` / `ownerId` / `ownerStoreId` / `ownerSiren` | Seller identity and seller type. |
| `hasPhone` | Whether the seller published a phone number. |
| `imageCount` / `thumbnail` / `imageUrls` | Gallery size, thumbnail, and full-size photos. |
| `attributes` | Generic category attributes as key/value pairs. |
| `attributesDetailed` | Every published attribute with key, label, value, and generic flag. |
| `isUrgent` / `isHighlighted` / `isBoosted` / `isGallery` / `isPhotosup` / `isSubToplist` | Ad promotion flags. |
| `favorites` | Favourite count when Leboncoin publishes it. |
| `position` / `pageNumber` / `searchUrl` | Where the ad appeared in your search. |
| `scrapedAt` | ISO 8601 scrape time. |

#### Example record

```json
{
  "id": 3311246700,
  "url": "https://www.leboncoin.fr/ad/locations/3311246700",
  "subject": "Appartement 3 pièces 62 m²",
  "categoryId": "10",
  "categoryName": "Locations",
  "adType": "offer",
  "status": "active",
  "price": 1200,
  "priceCents": 120000,
  "priceCurrency": "EUR",
  "publishedDate": "2026-11-17 09:15:32",
  "city": "Paris",
  "zipcode": "75011",
  "department": "Paris",
  "departmentId": "75",
  "region": "Île-de-France",
  "regionId": "12",
  "country": "FR",
  "latitude": 48.8566,
  "longitude": 2.3522,
  "ownerType": "private",
  "hasPhone": false,
  "imageCount": 18,
  "imageUrls": ["https://img.leboncoin.fr/api/v1/lbcpb1/images/3d/8e/fb/3d8efb8ddf7925e72a532dd4616782b0bda7fd37.jpg?rule=ad-image"],
  "attributes": {"rooms": "3", "square": "62 m²"},
  "position": 1,
  "pageNumber": 1,
  "searchUrl": "https://www.leboncoin.fr/recherche?category=10",
  "scrapedAt": "2026-11-20T10:30:00+00:00"
}
```

### Use cases

- Lettings and estate agents tracking new listings and price cuts in a city.
- Car dealers and buyers comparing mileage, year, and price for one model.
- Job boards monitoring offer volume by contract type and department.
- Market researchers following resale prices for phones, furniture, or tools.
- Lead-generation teams separating professional sellers from private ones.

### FAQ

**Do I need a Leboncoin account, cookies, or a proxy?**
No. The actor reads the same public pages any visitor sees and picks a working network path on its own.

**What is the difference between `startUrls` and the builder fields?**
`startUrls` reproduces a search you built on leboncoin.fr, including every filter in the address bar. The builder fields create a search from scratch. When `startUrls` is set, the builder fields are ignored.

**Why is a field missing from some records?**
Leboncoin only publishes some fields for some ads, categories, or sellers. Missing values are omitted. Legacy numeric fields such as `price`, `latitude`, `longitude`, and `imageCount` keep `0` when the source has no value.

**How many ads are on a page?**
Leboncoin serves 35 ads per result page. The actor follows the site's own pagination until `maxItems`, the source's page limit, or the end of the results.

**Does it handle every category?**
Yes. Category-specific details are returned in `attributes` and `attributesDetailed`, so property, vehicle, job, and goods listings keep their own facets.

**Are images included?**
Yes, as direct `img.leboncoin.fr` URLs. They are public and do not need a login.

### Data source and limitations

Data comes from the public search pages on `leboncoin.fr` and their embedded Next.js payload. The actor does not log in, does not use a private API, and does not bypass a login wall. Leboncoin's bot protection can occasionally challenge a request; the actor retries across its network paths and stops with a clear status message if every path is blocked. Search results are capped by Leboncoin's own page limit (shown as `max_pages` upstream, usually 100 pages); split a very broad search by price, location, or category to go deeper.

This is an independent tool. It is not affiliated with, endorsed by, or sponsored by Leboncoin.

# Actor input Schema

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

Paste one or more leboncoin.fr search URLs. Every filter already in the URL is preserved (location, price, category, sort, property or vehicle filters). When you use this, the search filters below are ignored.

## `category` (type: `integer`):

Leboncoin category ID used when no search URL is pasted. Common IDs: 9 = property sales, 10 = rentals, 2 = cars, 6 = car parts, 17 = phones, 33 = jobs. You can find any other ID in a leboncoin.fr search URL after ?category=.

## `search` (type: `string`):

Free-text keywords, for example a model, a neighbourhood, or a job title. Combine with a category and location for a narrower search.

## `locations` (type: `array`):

French places to search in. Paste the values Leboncoin uses in its own URL, for example Paris, Lyon, 75015, d_75 (department), r_12 (region), or a full city code such as Paris__48.8566_2.3522_75056. Separate multiple places with one entry each.

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

Smallest price to include. Leave empty for no lower bound.

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

Largest price to include. Leave empty for no upper bound.

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

How Leboncoin should order the results.

## `ownerType` (type: `string`):

Keep every seller, only private individuals, or only professionals.

## `adType` (type: `string`):

Offers are listings for sale or rent; demands are wanted ads.

## `shippable` (type: `boolean`):

Return only ads where the seller offers shipping.

## `searchInTitle` (type: `boolean`):

Restrict the keyword match to ad titles instead of titles and descriptions.

## `roomsMin` (type: `integer`):

Real-estate filter: smallest number of rooms.

## `roomsMax` (type: `integer`):

Real-estate filter: largest number of rooms.

## `surfaceMin` (type: `integer`):

Real-estate filter: smallest living area in square metres.

## `surfaceMax` (type: `integer`):

Real-estate filter: largest living area in square metres.

## `realEstateType` (type: `array`):

Real-estate filter. Values: 1 = house, 2 = apartment, 3 = land, 4 = parking, 5 = other.

## `mileageMin` (type: `integer`):

Vehicle filter: smallest odometer reading in kilometres.

## `mileageMax` (type: `integer`):

Vehicle filter: largest odometer reading in kilometres.

## `yearMin` (type: `integer`):

Vehicle filter: oldest registration year.

## `yearMax` (type: `integer`):

Vehicle filter: newest registration year.

## `condition` (type: `array`):

Goods filter. Values: 1 = new, 6 = refurbished, 2 = very good, 3 = good, 7 = fair, 5 = for parts.

## `contractType` (type: `array`):

Jobs filter. Values: 1 = fixed-term, 2 = permanent, 3 = temporary, 4 = freelance, 5 = apprenticeship, 6 = internship, 7 = volunteering.

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

Stop after this many ads. The actor stops sooner when Leboncoin runs out of matching results.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.leboncoin.fr/recherche?category=10"
  ],
  "sort": "relevance",
  "ownerType": "all",
  "adType": "offer",
  "shippable": false,
  "searchInTitle": false,
  "maxItems": 3
}
```

# Actor output Schema

## `ads` (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 = {
    "startUrls": [
        "https://www.leboncoin.fr/recherche?category=10"
    ],
    "sort": "relevance",
    "ownerType": "all",
    "adType": "offer",
    "shippable": false,
    "searchInTitle": false,
    "maxItems": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("vexaloom-labs/leboncoin-france-classified-ads-extractor").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 = {
    "startUrls": ["https://www.leboncoin.fr/recherche?category=10"],
    "sort": "relevance",
    "ownerType": "all",
    "adType": "offer",
    "shippable": False,
    "searchInTitle": False,
    "maxItems": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("vexaloom-labs/leboncoin-france-classified-ads-extractor").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 '{
  "startUrls": [
    "https://www.leboncoin.fr/recherche?category=10"
  ],
  "sort": "relevance",
  "ownerType": "all",
  "adType": "offer",
  "shippable": false,
  "searchInTitle": false,
  "maxItems": 3
}' |
apify call vexaloom-labs/leboncoin-france-classified-ads-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vexaloom-labs/leboncoin-france-classified-ads-extractor"
        }
    }
}
```

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/i3dVPriISATN9IzPG/builds/0xKFZXAZYv6IqnAgi/openapi.json
