# Leboncoin Scraper - Low-cost💲🔥💰🇫🇷 (`delectable_incubator/leboncoin-scraper-low-cost`) Actor

🚗 Easily scrape Leboncoin classified listings. Extract listing IDs, titles, brands, models, years, mileage, fuel, gearboxes, prices, sellers, locations, badges, photos & listing URLs. Perfect for automotive market research, price monitoring, competitor analysis & vehicle datasets 📊🔎

- **URL**: https://apify.com/delectable\_incubator/leboncoin-scraper-low-cost.md
- **Developed by:** [Prime Scrape](https://apify.com/delectable_incubator) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.00005 / actor start

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

<p align="center">
  <img src="https://i.ibb.co/jkNS73wX/readme.png" alt="Leboncoin Listings Scraper" width="100%">
</p>

***

## 🛒🔎 Leboncoin Listings Scraper | French Classified Ads Scraper | Bulk Search URL Scraper | Apify Actor

### 🚀 Extract Leboncoin Classified Listings in Seconds (No Code)

The **Leboncoin Listings Scraper (Apify Actor)** is a powerful, scalable, and SEO-optimized scraping solution designed to extract **public classified listings from Leboncoin.fr search result pages**.

Collect structured listing data including **listing IDs, titles, prices, seller information, locations, departments, regions, badges, photos, images, listing URLs, source URLs, and scraping timestamps**. Depending on the category, available listings can also include additional attributes such as **brand, model, year, mileage, fuel, and gearbox**.

Perfect for **marketplace research, classified ads analysis, price monitoring, competitor research, product discovery, real estate research, automotive research, electronics monitoring, inventory tracking, lead generation, market intelligence, and AI datasets**.

***

## 🔥 Why This Leboncoin Listings Scraper?

✔ Powerful Leboncoin Scraper on Apify

✔ Leboncoin.fr Search Result Scraping

✔ Classified Ads Extraction

✔ Multiple Search URLs

✔ Bulk Search URL Processing

✔ Category Filtering

✔ Keyword / Text Filtering

✔ Location Filtering

✔ Search Filter Support

✔ Automatic Pagination

✔ Configurable Item Limits

✔ Listing IDs

✔ Listing Titles

✔ Prices

✔ Currency

✔ Seller Information

✔ Seller Type

✔ Seller Name

✔ City

✔ ZIP Code

✔ Department

✔ Region

✔ Listing Badges

✔ Photo Counts

✔ Listing Images

✔ Category-Specific Attributes

✔ Vehicle Information When Available

✔ Brand & Model When Available

✔ Year & Mileage When Available

✔ Fuel & Gearbox When Available

✔ Source URL Tracking

✔ Direct Listing URLs

✔ Scraping Timestamps

✔ French Residential Proxy Support

✔ Fast & Scalable Extraction

✔ JSON / CSV / Excel Ready

✔ No Coding Required

***

## 🎯 What This Scraper Does

This Apify Actor extracts **public classified advertisements from Leboncoin.fr search result pages**.

You can provide **one or multiple Leboncoin search URLs** containing your desired filters.

The scraper is **not limited to cars**. It can be used with different Leboncoin categories and search pages.

For example, you can scrape listings related to:

- 🚗 Cars
- 🏠 Real Estate
- 📱 Smartphones
- 💻 Electronics
- 🪑 Furniture
- 👕 Fashion
- 🎮 Gaming
- 🏍️ Motorcycles
- 🚲 Bikes
- 🏡 Home & Garden
- 👶 Baby & Kids
- 🐕 Pets & Animals
- 🔧 Tools & Equipment
- 📚 Books & Media
- 💼 Professional Equipment
- 📦 General Classified Ads

The exact fields available can vary depending on the category and listing.

***

## 📌 Supported Input

The scraper accepts **one or multiple Leboncoin search URLs**.

URLs can contain Leboncoin search filters such as:

- 🗂️ Category
- 🔎 Search text
- 📍 Location
- 📏 Geographic radius
- 🔧 Other search parameters

Example:

```
https://www.leboncoin.fr/recherche?category=2&locations=Perpignan_66000__42.69818_2.88747_5000_5000
```

Keyword search example:

```
https://www.leboncoin.fr/recherche?category=9&text=iphone&kst=k
```

You can combine multiple search URLs in the same Actor run.

***

## ⚡ Input Configuration

### 🔎 SEARCH URL MODE

```
{
  "urls": [
    "https://www.leboncoin.fr/recherche?category=2&locations=Perpignan_66000__42.69818_2.88747_5000_5000",
    "https://www.leboncoin.fr/recherche?category=9",
    "https://www.leboncoin.fr/recherche?category=9&text=iphone&kst=k"
  ],
  "maxItemsPerUrl": 100,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "FR"
  }
}
```

Simply add one or multiple **Leboncoin search URLs**.

Each URL is processed independently and can return up to **maxItemsPerUrl** listings.

***

## 🔗 Search URLs

The **urls** input allows you to scrape one or multiple Leboncoin search result pages.

You can use existing Leboncoin search URLs containing your preferred filters.

For example:

#### 🚗 Cars

```
https://www.leboncoin.fr/recherche?category=2&text=bmw
```

#### 📱 Smartphones

```
https://www.leboncoin.fr/recherche?category=9&text=iphone&kst=k
```

#### 🏠 Real Estate

```
https://www.leboncoin.fr/recherche?category=10
```

#### 🪑 Furniture

```
https://www.leboncoin.fr/recherche?category=12
```

The exact category and URL parameters depend on the Leboncoin search page you want to scrape.

***

## 🔢 Maximum Items per URL

The **maxItemsPerUrl** parameter controls the maximum number of listings collected for each search URL.

Example:

```
{
  "maxItemsPerUrl": 100
}
```

If multiple URLs are provided, the limit applies independently to each URL.

For example:

```
URL 1 → up to 100 listings
URL 2 → up to 100 listings
URL 3 → up to 100 listings
```

The Actor can also stop earlier when no additional new results are available.

***

## 🇫🇷 Proxy Configuration

A **French residential proxy** is strongly recommended for Leboncoin.fr.

Example:

```
{
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "FR"
  }
}
```

This configuration uses an Apify residential proxy with France selected as the proxy country.

***

## 📊 Extracted Data

| Field      | Description                  |
| ---------- | ---------------------------- |
| listingId  | Unique Leboncoin listing ID  |
| title      | Listing title                |
| brand      | Brand, when available        |
| model      | Model, when available        |
| year       | Year, when available         |
| mileage    | Mileage, when available      |
| fuel       | Fuel type, when available    |
| gearbox    | Gearbox, when available      |
| price      | Listing price                |
| currency   | Price currency               |
| sellerType | Seller type                  |
| sellerName | Seller name                  |
| city       | Listing city                 |
| zipcode    | Listing ZIP code             |
| department | French department            |
| region     | French region                |
| badge      | Listing badge                |
| photoCount | Number of listing photos     |
| imageUrl   | Main listing image URL       |
| sourceUrl  | Original search URL          |
| listingUrl | Direct Leboncoin listing URL |

***

### 💸 Pricing

This scraper runs on a **pay per events subscription model**.

You only pay for **successful runs**.

💳 **Price:** $0.95 / 1000 results

***

## 🏷️ General Listing Information

The Actor extracts core information from Leboncoin classified listings including:

🔑 **Listing ID**

📝 **Listing Title**

💰 **Price**

💱 **Currency**

🎖️ **Badge**

🔗 **Listing URL**

These fields provide a structured representation of the classified advertisements returned by Leboncoin search pages.

***

## 🏷️ Category-Specific Information

Some Leboncoin categories expose additional attributes.

When available, the scraper can collect fields such as:

🏷️ **Brand**

📦 **Model**

📅 **Year**

🛣️ **Mileage**

⛽ **Fuel**

⚙️ **Gearbox**

These fields are particularly useful for categories such as automotive listings, but the Actor is **not restricted to automotive data**.

For other categories, the available listing information may differ.

***

## 💰 Price Information

The scraper extracts available pricing information including:

💰 **Price**

💱 **Currency**

This makes the dataset useful for:

- Price monitoring

- Marketplace research

- Product comparison

- Market analysis

- Competitive intelligence

- Price trend analysis

***

## 👤 Seller Information

When available, the Actor extracts:

👤 **Seller Type**

🏢 **Seller Name**

This allows users to analyze listings based on the type of seller.

Useful for:

- Seller research
- Marketplace intelligence
- Professional seller analysis
- Competitor monitoring
- Inventory research

***

## 📍 Location Information

The scraper can collect:

📍 **City**

📮 **ZIP Code**

🏛️ **Department**

🌍 **Region**

This allows listings to be analyzed geographically.

Useful for:

- Local marketplace research
- Regional price analysis
- Inventory monitoring
- Geographic market intelligence
- Local competitor analysis

***

## 🖼️ Listing Media

When available, the Actor extracts:

📷 **Photo Count**

🖼️ **Image URL**

This allows extracted listings to be enriched with visual information.

Useful for:

- Product catalogs
- Marketplace datasets
- Visual research
- Listing monitoring
- AI datasets

***

## 🎖️ Listing Badges

The scraper can collect the available **badge** associated with a listing.

This can help identify listings carrying additional marketplace labels or indicators.

***

## 🔗 Listing & Source Tracking

Each extracted listing can include:

🔑 **Listing ID**

🌐 **Source URL**

🔗 **Listing URL**

The **sourceUrl** field identifies the original Leboncoin search URL that generated the listing.

This is particularly useful when processing multiple searches in the same Actor run.

***

## 🔄 Automatic Pagination

Leboncoin search results can contain multiple pages of listings.

The Actor automatically:

1. Opens each provided Leboncoin search URL.
2. Loads the search results.
3. Extracts available listings.
4. Processes subsequent result pages.
5. Removes duplicate results.
6. Continues until **maxItemsPerUrl** is reached.
7. Stops when no additional new results are available.

No manual pagination is required.

***

## 🔢 Multiple Search URL Processing

The Actor supports bulk processing of multiple Leboncoin search URLs.

For example:

```text
Cars → BMW
Cars → Mercedes
Phones → iPhone
Phones → Samsung
Real Estate → Apartments
Furniture → Sofas
```

Each search URL is processed independently.

This allows you to create datasets across multiple:

- 🗂️ Categories
- 🔎 Keywords
- 📍 Locations
- 🏷️ Products
- 🏠 Property types
- 🚗 Vehicle types
- 📱 Electronics
- 🛒 Marketplace segments

***

## 💡 Use Cases

Perfect for:

🛒 **Marketplace Market Research**

🔎 **Classified Ads Research**

📊 **Marketplace Intelligence**

💰 **Price Monitoring**

🏷️ **Competitor Research**

📦 **Product Discovery**

🏠 **Real Estate Research**

🚗 **Automotive Research**

📱 **Electronics Research**

🪑 **Furniture Market Research**

👕 **Fashion Marketplace Research**

🏍️ **Vehicle Market Research**

📍 **Local Market Analysis**

📈 **Price Trend Analysis**

🏢 **Seller Intelligence**

🔄 **Inventory Monitoring**

💼 **Lead Generation**

🤖 **AI & Machine Learning Datasets**

📋 **Structured Classified Ad Datasets**

⚙️ **Automation Workflows**

***

## 🚀 Key Features

⚡ Multiple Search URLs

🔎 Leboncoin Search Scraping

🛒 Classified Advertisement Extraction

🗂️ Multiple Categories

🔍 Keyword / Text Filtering

📍 Location Filtering

🔄 Automatic Pagination

♻️ Duplicate Result Handling

🔢 Configurable Item Limits

🔑 Listing IDs

📝 Listing Titles

💰 Prices

💱 Currency

👤 Seller Types

🏢 Seller Names

📍 Cities

📮 ZIP Codes

🏛️ Departments

🌍 Regions

🎖️ Listing Badges

📷 Photo Counts

🖼️ Listing Images

🏷️ Category-Specific Attributes

🚗 Vehicle Attributes When Available

🔗 Listing URLs

🌐 Source URLs

🇫🇷 French Residential Proxy Support

☁️ Reliable Cloud Execution

💾 Export-Ready Datasets

⚙️ Scalable Apify Actor

***

## 📤 Export Formats

Apify datasets can be exported in multiple formats, including:

✔ JSON

✔ CSV

✔ Excel (XLSX)

✔ XML

✔ HTML

✔ RSS

***

## 📦 Example Output

```
{
  "listingId": "1234567890",
  "title": "iPhone 15 Pro 256GB",
  "brand": "Apple",
  "model": "iPhone 15 Pro",
  "year": "2023",
  "mileage": "N/A",
  "fuel": "N/A",
  "gearbox": "N/A",
  "price": "699",
  "currency": "EUR",
  "sellerType": "private",
  "sellerName": "Example Seller",
  "city": "Perpignan",
  "zipcode": "66000",
  "department": "66",
  "region": "Occitanie",
  "badge": "N/A",
  "photoCount": 8,
  "imageUrl": "https://example.com/listing-image.jpg",
  "sourceUrl": "https://www.leboncoin.fr/recherche?category=9&text=iphone&kst=k",
  "listingUrl": "https://www.leboncoin.fr/ad/telephones_objets_connectes/1234567890"
}
```

> Note: Available fields depend on the listing and category. Category-specific fields such as vehicle attributes may not be present for every listing.

***

## 📋 Output Views

The Actor provides multiple dataset views to make extracted Leboncoin listings easier to analyze.

***

### 📊 Overview

The **Overview** view focuses on the main listing information:

- 🔑 Listing ID
- 📝 Title
- 🏷️ Brand
- 📦 Model
- 📅 Year
- 💰 Price
- 📍 City
- 🏛️ Department
- 🎖️ Badge
- 🔗 Listing URL

This view provides a quick way to review extracted listings.

***

### 🔎 Detailed Listings

The **Detailed Listings** view provides the complete available dataset including:

- Listing ID
- Title
- Brand
- Model
- Year
- Mileage
- Fuel
- Gearbox
- Price
- Currency
- Seller Type
- Seller Name
- City
- ZIP Code
- Department
- Region
- Badge
- Photo Count
- Image URL
- Source URL
- Listing URL

This view is ideal for detailed marketplace and classified-ad analysis.

***

### 🔗 By Source URL

The **By Source URL** view organizes listings according to their original search URL.

It includes:

- 🌐 Source URL
- 🔑 Listing ID
- 📝 Title
- 💰 Price
- 📍 City
- 👤 Seller Type
- 🏢 Seller Name
- 🔗 Listing URL

This is especially useful when running multiple Leboncoin searches in the same Actor execution.

***

## 🔥 Why Use This Leboncoin Scraper?

✔ Multiple Search URLs

✔ Multiple Leboncoin Categories

✔ Classified Ads Scraping

✔ Search Result Extraction

✔ Keyword Filtering

✔ Location Filtering

✔ Automatic Pagination

✔ Duplicate Handling

✔ Configurable Extraction Limits

✔ Listing Information

✔ Price Information

✔ Seller Information

✔ Location Information

✔ Images & Photos

✔ Category-Specific Attributes

✔ Source URL Tracking

✔ Direct Listing URLs

✔ Structured Data

✔ French Residential Proxy Support

✔ Scalable Apify Infrastructure

***

## ❓ FAQ

#### Can I scrape multiple Leboncoin search URLs?

Yes.

The Actor supports **multiple search URLs** in a single run.

Simply add your Leboncoin search URLs to the **urls** input.

***

#### Is this scraper only for cars?

No.

The Actor is designed for **Leboncoin classified listings in general**.

It can be used for different categories such as:

- Cars
- Real estate
- Phones
- Electronics
- Furniture
- Fashion
- Gaming
- Motorcycles
- Bikes
- Home & Garden
- And other Leboncoin categories

Some fields are category-specific and are only available when exposed by the listing.

***

#### Can I scrape products?

Yes.

You can provide a Leboncoin search URL targeting products such as smartphones, electronics, furniture, clothing, and other classified items.

***

#### Can I scrape real estate listings?

Yes.

You can provide a Leboncoin search URL targeting real estate listings.

The scraper processes the search results provided by the URL.

***

#### Can I scrape car listings?

Yes.

Cars are supported, and when available the Actor can extract vehicle-specific fields such as:

- Brand
- Model
- Year
- Mileage
- Fuel
- Gearbox

***

#### Can I search for a specific keyword?

Yes.

Use a Leboncoin search URL containing the desired **text** parameter.

For example:

```
https://www.leboncoin.fr/recherche?category=9&text=iphone&kst=k
```

***

#### Can I scrape listings from a specific location?

Yes.

Simply provide a Leboncoin search URL containing the desired location filters.

***

#### Can I use multiple locations?

Yes.

You can provide multiple search URLs targeting different locations in the same run.

***

#### Can I limit the number of listings?

Yes.

Use **maxItemsPerUrl**.

Example:

```
{
  "maxItemsPerUrl": 100
}
```

The limit applies independently to each search URL.

***

#### Does the Actor handle pagination?

Yes.

Pagination is handled automatically.

The Actor continues loading result pages until the item limit is reached or no additional new results are available.

***

#### Does the scraper remove duplicates?

Yes.

The Actor tracks previously collected listings and avoids adding duplicate results from subsequent pages.

***

#### Does it extract prices?

Yes.

The Actor extracts available:

- **price**
- **currency**

***

#### Does it extract seller information?

Yes.

When available, the Actor extracts:

- **sellerType**
- **sellerName**

***

#### Does it extract location information?

Yes.

When available, the scraper can collect:

- **city**
- **zipcode**
- **department**
- **region**

***

#### Does it extract images?

Yes.

When available, the Actor can collect:

- **imageUrl**
- **photoCount**

***

#### Can I identify which search generated a listing?

Yes.

The **sourceUrl** field identifies the original Leboncoin search URL associated with the listing.

***

#### Are proxies supported?

Yes.

The Actor supports Apify Proxy configuration, including **residential proxies**.

A French residential proxy is strongly recommended for Leboncoin.fr.

***

#### Is coding required?

No.

Everything runs directly through Apify.

Simply provide your Leboncoin search URLs and configure the maximum number of listings per URL.

***

#### Can I export the data?

Yes.

Apify supports dataset exports such as:

- JSON
- CSV
- Excel
- XML
- HTML
- RSS

***

## ⚠️ Disclaimer

This tool is an independent data extraction solution and is **not affiliated with Leboncoin**.

Users are responsible for complying with Leboncoin's Terms of Service and all applicable laws and regulations when collecting and using publicly available data.

***

## 🔗 Related Actors

We are building the complete **PrimeScrape Marketplace & Classified Ads Intelligence Suite**.

More premium marketplace, classified ads, real estate, automotive, jobs, product discovery, and market intelligence scrapers are coming soon.

🚀 Stay tuned.

***

## 🌍 PrimeScrape Ecosystem

Built for large-scale data extraction, automation, AI datasets, and business intelligence.

🛒 Marketplace Intelligence

🏷️ Classified Ads Research

📊 Marketplace Analytics

🔎 Competitor Intelligence

📈 Price Monitoring

🏠 Real Estate Intelligence

🚗 Automotive Intelligence

📱 Product Research

📋 Structured Datasets

🤖 AI Training Datasets

⚙️ Automation Pipelines

🌐 Public Data Extraction

📊 Business Intelligence

***

## 📬 Support

⭐⭐⭐⭐⭐

If this scraper saves you time, please leave a review.

For enterprise scraping solutions, custom Apify Actors, or large-scale marketplace and classified-ad data projects, feel free to contact **PrimeScrape**.

# Actor input Schema

## `urls` (type: `array`):

One or more leboncoin.fr search URLs to scrape, including any filters (category, text, locations...). Pagination is handled automatically.

## `maxItemsPerUrl` (type: `integer`):

Maximum number of listings to collect for each search URL.

## `proxy` (type: `object`):

A French RESIDENTIAL proxy is strongly recommended for leboncoin.fr.

## Actor input object example

```json
{
  "urls": [
    "https://www.leboncoin.fr/recherche?category=2&locations=Perpignan_66000__42.69818_2.88747_5000_5000",
    "https://www.leboncoin.fr/recherche?category=9&text=iphone&kst=k"
  ],
  "maxItemsPerUrl": 70,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "FR"
  }
}
```

# Actor output Schema

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

No description

## `detailed` (type: `string`):

No description

## `by_source` (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 = {
    "urls": [
        "https://www.leboncoin.fr/recherche?category=2&locations=Perpignan_66000__42.69818_2.88747_5000_5000",
        "https://www.leboncoin.fr/recherche?category=9&text=iphone&kst=k"
    ],
    "maxItemsPerUrl": 70,
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "FR"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("delectable_incubator/leboncoin-scraper-low-cost").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 = {
    "urls": [
        "https://www.leboncoin.fr/recherche?category=2&locations=Perpignan_66000__42.69818_2.88747_5000_5000",
        "https://www.leboncoin.fr/recherche?category=9&text=iphone&kst=k",
    ],
    "maxItemsPerUrl": 70,
    "proxy": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "FR",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("delectable_incubator/leboncoin-scraper-low-cost").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 '{
  "urls": [
    "https://www.leboncoin.fr/recherche?category=2&locations=Perpignan_66000__42.69818_2.88747_5000_5000",
    "https://www.leboncoin.fr/recherche?category=9&text=iphone&kst=k"
  ],
  "maxItemsPerUrl": 70,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "FR"
  }
}' |
apify call delectable_incubator/leboncoin-scraper-low-cost --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,delectable_incubator/leboncoin-scraper-low-cost"
        }
    }
}

```

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/5VInaNy48yUDKxr61/builds/pxVIHzqWLzqplMQ4g/openapi.json
