# 🔍🚚 Leboncoin Vehicle Scraper (PPE) (`3x1t/leboncoin-vehicle-scraper-ppe`) Actor

Effortlessly scrape vehicle listings from France’s largest classifieds platform, Leboncoin, in a formatted manner using this unofficial API. Fast, cheap & reliable. Pay-per-event version.

- **URL**: https://apify.com/3x1t/leboncoin-vehicle-scraper-ppe.md
- **Developed by:** [3x1t](https://apify.com/3x1t) (community)
- **Categories:** Developer tools, Automation, E-commerce
- **Features:** Limited permissions
- **Stats:** 163 total users, 7 monthly users, 96.5% runs succeeded, 4 bookmarks
- **User rating**: No ratings yet

## 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

## 🔍 What does *Leboncoin Vehicle Scraper* do?

**Leboncoin Vehicle Scraper** is a tool (i.e. *unofficial API*) for extracting **vehicle listings** from France’s largest classifieds platform [Leboncoin.fr](https://www.leboncoin.fr). Returns well-structured output similar to our other scrapers  (e.g. [Mobile.de](https://apify.com/3x1t/mobile-de-scraper-ppr), [Autoscout24](https://apify.com/3x1t/autoscout24-scraper-ppr)).

This version is configured as Pay-per-event (i.e. pay per result). If you prefer fixed price per month, visit [🔍🚚 Leboncoin Vehicle Scraper (Rental)](https://apify.com/3x1t/leboncoin-vehicle-scraper).

## 🚀 Features

1. 🎯 *Search for vehicle listings using __search URLs__*
   1. Configure your search directly on the [leboncoin.fr](https://www.leboncoin.fr/c/voitures) search page and use it here
   2. Limit the number of results to your liking
2. ✅ Works for all vehicle types (*cars*, *motorbikes*, *caravans*, *trucks*...even *bikes* and *ships*)
3. 🧾 Returns well-structured, clean & consistent output
4. 🔥 Blazingly fast (up to ~20 results per second)
5. 📤 Export data in CSV, JSON, or Excel formats

## 📊 What is being extracted?

<table>
  <tr>
    <td>📰 Offer title</td>
    <td>📝 Description</td>
    <td>💰 Price</td>
  </tr>
  <tr>
    <td>🏭 Brand</td>
    <td>🚙 Model</td>
    <td>🏷️ Model version</td>
  </tr>
  <tr>
    <td>🖼️ Images</td>
    <td>🔗 Offer URL</td>
    <td>🏪 Dealer Info</td>
  </tr>
  <tr>
    <td>📅 Dates</td>
    <td>🔖 Attributes</td>
    <td>⭐ Equipment</td>
  </tr>
</table>

And more! For more detailed output, please refer to the output example section of this readme.

## ❓ How to use

To use this scraper, follow these instructions:

1. Go to [Leboncoin.fr](https://www.leboncoin.fr/)
2. Go to the [vehicles section](https://www.leboncoin.fr/c/voitures) of your choice (cars/motos/etc.)
3. Setup your search parameters (e.g. car model, price, etc.)
4. Click to **see the results** - the URL will change
5. On the **search result page** (and see the car listings), **copy the URL** and paste it into the Actor's `🔎 Start URL(s)` input field
6. Click *Start* to see your results!

### Example input URLs

Here are some examples of the format:

```
https://www.leboncoin.fr/c/voitures
```

```
https://www.leboncoin.fr/recherche?category=2&u_car_brand=BMW&sort=price&order=desc&price=10000-max
```

```
https://www.leboncoin.fr/c/motos/u_moto_brand:SUZUKI
```

## 📑 Example input JSON

This example contains 3 start URLs, and there is a result limit equal to 250 for every start URL:

```json
{
    "resultLimitPerThread": 250,
    "startUrls": [
        "https://www.leboncoin.fr/c/voitures",
        "https://www.leboncoin.fr/recherche?category=2&u_car_brand=BMW&sort=price&order=desc&price=10000-max",
        "https://www.leboncoin.fr/c/motos/u_moto_brand:SUZUKI"
    ]
}
```

This input will yield up to *250 \* 3 = __750__* results.

## 🖼️ Example output

These samples are in JSON format. Apify enables you by default to choose other formats, such as `JSON`, `CSV`, `XML`, `Excel`, `HTML Table`, `RSS` or `JSONL`.

```json
{
	"title": "BMW X5 G05 xDrive30d 265 ch BVA8 M Sport TVA RECUPERABLE",
	"previewImage": "https://img.leboncoin.fr/api/v1/lbcpb1/images/4f/4e/54/4f4e54e5846c8452196763087e711e085162084a.jpg?rule=ad-large",
	"vehicleType": "Car",
	"bodyType": "SUV",
	"brand": "BMW",
	"model": "X5",
	"modelVersion": "5 xDrive30d 265ch M Sport",
	"url": "https://www.leboncoin.fr/ad/voitures/3047516677",
	"price": {
		"amount": 49990,
		"currency": "EUR"
	},
	"argusPriceRating": {
		"lowPriceBoundary": 38270,
		"highPriceBoundary": 42300,
		"rating": "High price",
		"priceRanges": {
			"Low price": {
				"start": null,
				"end": 38270
			},
			"Fair price": {
				"start": 38270,
				"end": 42300
			},
			"High price": {
				"start": 42300,
				"end": null
			}
		}
	},
	"createdDate": "2025-08-29 11:12:00",
	"modifiedDate": "2025-11-10 16:11:44",
	"expirationDate": null,
	"description": "BMW X5 G05 xDrive30d 265 ch BVA8 M Sport TVA RECUPERABLE tout-terrain, bleu fonce, ...",
	"attributes": {
		"Vehicle condition": null,
		"Category": "SUV",
		"Mileage (km)": 126000,
		"Cubic Capacity (cc)": null,
		"Power (HP)": 265,
		"Power (kW)": 198,
		"Fuel": "Diesel",
		"Number of Seats": 2,
		"Door Count": 5,
		"Transmission": "Automatic",
		"Emission Class": null,
		"First Registration": "06/2019",
		"Climatisation": "Air conditioning",
		"Parking sensors": "Yes",
		"Colour": "Blue",
		"Upholstery": "All leather"
	},
	"equipment": [
		"Four-wheel drive",
		"Parking assistance",
		"Automatic headlights",
		"Air conditioning",
		"Alloy wheels",
		"Fog lights",
		"Cruise control"
	],
	"images": [
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/4f/4e/54/4f4e54e5846c8452196763087e711e085162084a.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/5d/4e/7e/5d4e7eb187affe9a456167ce8cd55f969d791332.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/cb/e7/1a/cbe71adadd603606081c3487213ae0230e5b82d6.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/a9/d6/f6/a9d6f64a4e34217e96f18a6ec22c31b82d666a3a.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/e9/fb/8b/e9fb8b263cd61d3bf8d4b7f203e3db0fe0308a36.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/f8/c3/96/f8c396877bf750344bce3bf3d268bc5cf15ef7c7.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/4a/29/32/4a2932b9ed77b7291f6022d32af66fa6a74592e6.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/cb/b4/76/cbb4760e732a9ba06763acfce0858f67ecfa6619.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/4a/27/8f/4a278f4678af08d16b0391889541b573b674c0c4.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/aa/5e/e2/aa5ee2c1824de043053d9068c45212d158e02b83.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/5f/7f/d5/5f7fd585e4fc5f2cdded1aa47aa6f892ccb6f765.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/6a/54/8a/6a548a244a941b39ce927c36c638936361247bc1.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/7a/bb/ea/7abbeadeb71215853e005fbd1803f7c79bd1b3f5.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/38/21/4f/38214f44079069cd2219d4d230ca7406fc689b88.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/82/90/3b/82903bad564e06f1b98412a4a91989f731ffd69f.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/31/66/3b/31663bc86b7f4f218f2bad4af11fd9971a515f2d.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/91/e4/a1/91e4a14fe00b4ca32502ecfb1d854923c425cd89.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/d8/13/d0/d813d050c34bb539c38e4ab385704e1b16b92c78.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/11/66/0e/11660ea8ae9dd156965316605d9375eff1935d5a.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/bd/4a/00/bd4a00f7086234c66e51c44b9a489e7426f66019.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/08/f7/05/08f7054308eb8bd38067366205d4bfd93a13d537.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/04/6d/42/046d42bb62ca2bb0a3af7ce3eb2273842b7f74ce.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/b5/f9/57/b5f957ce7db9d3bb4d4d502bf2f414496bcfef46.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/5f/73/c5/5f73c5302727929d3641a3f8eb9cf186e3307013.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/7a/f1/e6/7af1e613e4323ad8cf83cba7ed24f68d60b9cc95.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/60/44/91/604491bfa6718c9dcd4223daac273f4eaa7f61eb.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/fa/2f/2f/fa2f2f9b0a65b47e10fe640f2b1bd308b021b0af.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/a7/19/96/a71996ea33a29640415c7aff6acbebf9b36838ca.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/bc/04/7a/bc047a4cb0af37664d8ffd357d1efe0b8c4d90f7.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/6c/12/8c/6c128ca7596ed84040565f6c479e37148adb03f6.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/cf/bc/1f/cfbc1f0b90af1826f71c89d80ae290103def14f2.jpg?rule=ad-large",
		"https://img.leboncoin.fr/api/v1/lbcpb1/images/d8/a5/5e/d8a55ea5acefd5f47a79b33a84ba172d82158808.jpg?rule=ad-large"
	],
	"id": 3047516677,
	"rank": 48,
	"location": {
		"address": "Golbey 88190",
		"addressStructured": {
			"region": "Lorraine",
			"department": "Vosges",
			"city": "Golbey",
			"zip": "88190"
		},
		"coordinates": {
			"latitude": 48.19756,
			"longitude": 6.43886
		}
	},
	"dealerDetails": {
		"storeId": 81280178,
		"userId": "41fbb3c4-601a-4f2c-988f-4f02cdfd0d5d",
		"name": "VIA AUTOMOBILE EPINAL",
		"sellerType": "Dealer",
		"profileUrl": "https://www.leboncoin.fr/profile/41fbb3c4-601a-4f2c-988f-4f02cdfd0d5d/offers"
	}
}
```

### Some extra information about specific fields

<table>
    <tr>
        <th style="white-space: nowrap;">Field path</th>
        <th>Possible values</th>
        <th>Note</th>
    </tr>
    <tr>
        <td style="white-space: nowrap;"><code>attributes</code></td>
        <td>Dictionary</td>
        <td>Will always contain the same fields. For some fields, some of their values might be `null` depending on the listing data.</td>
    </tr>
    <tr>
        <td style="white-space: nowrap;"><code>equipment</code></td>
        <td>Dictionary</td>
        <td>Contains all of the Equipment entries (e.g. Air conditioning, Armrest, ...) just like on the website.</td>
    </tr>
</table>

Want to see some more fields explained? Contact us through issues or email at <contact@3x1t.dev>.

## 🔗 Integrating with other platforms

**Leboncoin Vehicle Scraper** supports integrations with external services, enabling automated workflows and data exchange. Through the [Apify platform integrations](https://apify.com/integrations), it connects with tools like Make and Zapier, facilitating interactions with Slack, Airbyte, GitHub, Google Sheets, and Google Drive ([learn about integrations](https://docs.apify.com/platform/integrations)). Additionally, its API and [webhook support](https://docs.apify.com/platform/integrations/webhooks) allow real-time interactions, such as triggering automated workflows or receiving notifications when a scraping task is completed.

## ❌ Limitations

Currently, the actor is only able to scrape the first **3500 results** per search URL due to the website limits. To bypass this limitation, you need to split the search into **multiple sub-searches**. You can do that by using more **specific** search terms/filters, we recommend using **range filters** (e.g. price range, mileage range, etc.).

### Limitation example

Let’s say you want to scrape all **BMW** listings. There are around **160,000 results**, but the website only lets you access the **first 3,500**.

To get around this limitation, you can **split your search into smaller segments** by applying additional filters — for example, by **mileage**, **registration year**, or **price range**.

By doing this, you can effectively **cover a much larger portion of listings** without hitting the website’s result cap.

## 🛠️ Support

If there is a feature that you would love to see (more fields, better input, etc.), do not hesitate to **create an issue** or contact me at <contact@3x1t.dev>.

## ⚖️ Is it legal to scrape Leboncoin.fr?

Note that personal data is protected by GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers. We also recommend that you read our blog post: [is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

## 🔍🌍 Explore all actors by *3x1t*

### 🗺️ Maps & Location Data

<table>
    <tr>
        <th style="white-space: nowrap;">Actor</th>
        <th>Description</th>
    </tr>
    <tr>
        <td style="white-space: nowrap;">
            <a href="https://apify.com/3x1t/google-street-view-scraper" style="display: flex; align-items: center; gap: 8px;">
                <img src="https://i.imghippo.com/files/zhw2670VsY.png" height="36" style="border-radius: 8px;" />
                <span>📍📸 Google Street View Scraper</span>
            </a>
        </td>
        <td>Extracts product data from Google Street View, including panoramas, historical data, points of interest (e.g. places in vicinity) and more.</td>
    </tr>
</table>

### 🚗 Automotive

<table>
    <tr>
        <th style="white-space: nowrap;">Actor</th>
        <th>Description</th>
    </tr>
    <tr>
        <td style="white-space: nowrap;">
            <a href="https://apify.com/3x1t/leboncoin-vehicle-scraper-ppe" style="display: flex; align-items: center; gap: 8px;">
                <img src="https://i.imghippo.com/files/ovU5636hXU.jpg" height="36" style="border-radius: 8px;" />
                <span>🔍🚚 Leboncoin Vehicle Scraper (PPE)</span>
            </a>
        </td>
        <td>
            Scrapes vehicle listings from Leboncoin.fr and returns well-structured data (very similar to our other vehicle actors). Pay-per-event version.
        </td>
    </tr>
    <tr>
        <td style="white-space: nowrap;">
            <a href="https://apify.com/3x1t/mobile-de-scraper" style="display: flex; align-items: center; gap: 8px;">
                <img src="https://i.imghippo.com/files/gyr1800LkY.png" height="36" style="border-radius: 8px;" />
                <span>🔍🚗 Mobile.de Scraper</span>
            </a>
        </td>
        <td>Scrapes vehicle listings from Mobile.de, Europe's largest car marketplace, with detailed vehicle data like brand, model, price, and images.</td>
    </tr>
    <tr>
        <td style="white-space: nowrap;">
            <a href="https://apify.com/3x1t/mobile-de-scraper-ppr" style="display: flex; align-items: center; gap: 8px;">
                <img src="https://i.imghippo.com/files/ulK5777Os.png" height="36" style="border-radius: 8px;" />
                <span>🔍🚗 Mobile.de Scraper (PPR)</span>
            </a>
        </td>
        <td>Pay-per-result version of the Mobile.de Scraper, offering a cost-effective option for smaller use cases to extract car data.</td>
    </tr>
    <tr>
        <td style="white-space: nowrap;">
            <a href="https://apify.com/3x1t/mobile-de-listing-health-checker" style="display: flex; align-items: center; gap: 8px;">
                <img src="https://i.imghippo.com/files/jefb7972cT.png" height="36" style="border-radius: 8px;" />
                <span>🚗📝👨‍⚕️ Mobile.de Listing Health Checker</span>
            </a>
        </td>
        <td>Checks listing IDs and returns only those that are not valid anymore.</td>
    </tr>
    <tr>
        <td style="white-space: nowrap;">
            <a href="https://apify.com/3x1t/autoscout24-scraper" style="display: flex; align-items: center; gap: 8px;">
                <img src="https://i.imghippo.com/files/pXKi1391Ar.png" height="36" style="border-radius: 8px;" />
                <span>🔍🚙 AutoScout24 Scraper (Rental)</span>
            </a>
        </td>
        <td>
            Scrapes vehicle listings from AutoScout24, with detailed vehicle data like brand, model, price, images, dealer info and more. Rental version.
        </td>
    </tr>
    <tr>
        <td style="white-space: nowrap;">
            <a href="https://apify.com/3x1t/autoscout24-scraper-ppr" style="display: flex; align-items: center; gap: 8px;">
                <img src="https://i.imghippo.com/files/pXKi1391Ar.png" height="36" style="border-radius: 8px;" />
                <span>🔍🚙 AutoScout24 Scraper (PPR)</span>
            </a>
        </td>
        <td>
            Scrapes vehicle listings from AutoScout24, with detailed vehicle data like brand, model, price, images, dealer info and more. Pay-per-result version.
        </td>
    </tr>
    <tr>
        <td style="white-space: nowrap;">
            <a href="https://apify.com/3x1t/autoscout24-listing-health-checker" style="display: flex; align-items: center; gap: 8px;">
                <img src="https://i.imghippo.com/files/pyVw8902HM.png" height="36" style="border-radius: 8px;" />
                <span>🚙📝👨‍⚕️ AutoScout24 Listing Health Checker</span>
            </a>
        </td>
        <td>
            Scrapes vehicle listings from AutoScout24, with detailed vehicle data like brand, model, price, images, dealer info and more. Rental version.
        </td>
    </tr>
    <tr>
        <td style="white-space: nowrap;">
            <a href="https://apify.com/3x1t/autoscout24-ch-scraper" style="display: flex; align-items: center; gap: 8px;">
                <img src="https://i.imghippo.com/files/bp1764vM.png" height="36" style="border-radius: 8px;" />
                <span>🔍🚙🇨🇭 AutoScout24.ch Scraper (Rental)</span>
            </a>
        </td>
        <td>
            Scraper dedicated for the Swiss website of AutoScout24. Rental version.
        </td>
    </tr>
    <tr>
        <td style="white-space: nowrap;">
            <a href="https://apify.com/3x1t/autoscout24-ch-scraper-ppe" style="display: flex; align-items: center; gap: 8px;">
                <img src="https://i.imghippo.com/files/bp1764vM.png" height="36" style="border-radius: 8px;" />
                <span>🔍🚙🇨🇭 AutoScout24.ch Scraper (PPE)</span>
            </a>
        </td>
        <td>
            Scraper dedicated for the Swiss website of AutoScout24. Pay-per-event version.
        </td>
    </tr>
</table>

### 🛒 E-commerce

<table>
    <tr>
        <th style="white-space: nowrap;">Actor</th>
        <th>Description</th>
    </tr>
    <tr>
        <td style="white-space: nowrap;">
            <a href="https://apify.com/3x1t/ebay-scraper" style="display: flex; align-items: center; gap: 8px;">
                <img src="https://i.imghippo.com/files/uDVH9433ex.png" height="36" style="border-radius: 8px;" />
                <span>🔍🛒 eBay Scraper (Rental)</span>
            </a>
        </td>
        <td>Extracts product data from eBay, including details like price, title, images, and more. Rental version.</td>
    </tr>
    <tr>
        <td style="white-space: nowrap;">
            <a href="https://apify.com/3x1t/wish-scraper" style="display: flex; align-items: center; gap: 8px;">
                <img src="https://i.imghippo.com/files/jMY5308nVk.png" height="36" style="border-radius: 8px;" />
                <span>🔍🛒 Wish Scraper (PPR)</span>
            </a>
        </td>
        <td>Extracts product data from Wish.com, including details like price, name, reviews, and more.</td>
    </tr>
</table>

Can't find what you're looking for? No worries, we've got your back! Hit us up at <contact@3x1t.dev> or create an issue. If all else fails, you can always [visit the Apify store](https://apify.com/store) — it could have exactly what you need. 😉

# Changelog

This Actor's version history is a separate document: https://apify.com/3x1t/leboncoin-vehicle-scraper-ppe/changelog.md

# Actor input Schema

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

Paste the search URLs here.

## `resultLimitPerThread` (type: `integer`):

Maximum number of results to be returned for each input URL. Maximum for Leboncoin is *3500*.

## `customRunFailureThresholdPercent` (type: `integer`):

Use this setting to control when the run should be considered a failure (and marked as a `failed` run).

Default is 50, meaning that the run will be marked as failed only if the failed request count is more than half of all requests.

For example, you can set this to `0` if you want to be sure that all requests have succeeded (and therefore you have all the data).

## Actor input object example

```json
{
  "startUrls": [
    "https://www.leboncoin.fr/c/voitures"
  ],
  "resultLimitPerThread": 100,
  "customRunFailureThresholdPercent": 100
}
```

# Actor output Schema

## `overview` (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/c/voitures"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("3x1t/leboncoin-vehicle-scraper-ppe").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/c/voitures"] }

# Run the Actor and wait for it to finish
run = client.actor("3x1t/leboncoin-vehicle-scraper-ppe").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/c/voitures"
  ]
}' |
apify call 3x1t/leboncoin-vehicle-scraper-ppe --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,3x1t/leboncoin-vehicle-scraper-ppe"
        }
    }
}
```

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/kwC53g4opOjof5uxt/builds/mQ1j8KzbX2kOc1xck/openapi.json
