# E.Leclerc Scraper | French Retail Prices, EANs & Promos (`ratatoskr/leclerc-scraper`) Actor

Scrape E.Leclerc by search term or category: wine, parapharmacy, baby, pet, home, tech and books. Name, EAN barcode, price, promotion, price per kg or litre and image, as clean JSON. No login.

- **URL**: https://apify.com/ratatoskr/leclerc-scraper.md
- **Developed by:** [ratatoskr](https://apify.com/ratatoskr) (community)
- **Categories:** E-commerce
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.05 / 1,000 products

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

## E.Leclerc Scraper | French Retail Prices, EANs & Promos

Scrape **E.Leclerc** (e.leclerc), one of France's largest retailers, as clean structured JSON: wine, parapharmacy, baby, pet, home, tech, books and more. Give it search terms or categories and get one row per product, with its EAN barcode, price, promotion and price per kg or litre. No login, no account.

Prices are E.Leclerc's **national reference prices**.

### What you get

One row per product:

| Field | Example |
|-------|---------|
| `name` | Physiolac Lait pour Nourrissons 1er Âge 800g |
| `ean` | 3518646125331 |
| `price` | 13.26 |
| `strikedPrice` | the "Au lieu de" price, when on promotion |
| `promo` | true when the product is on promotion |
| `unitPrice` | 16,58 € / kg |
| `image` | https://media.e.leclerc/3518646125331_1 |
| `productPage` | https://www.e.leclerc/fp/... |
| `query` | the search term or category slug the row came from |
| `source` | how the row was found: `search` (a search term) or `category` (a category) |

The EAN lets you join E.Leclerc prices to any other retailer's data.

`price` is a plain number in EUR. `unitPrice` is a localized string that includes the unit and uses a comma decimal (for example `6,79 € / L`), so parse it if you need a number. `strikedPrice` is null unless the product is on promotion.

A real row:

```json
{
  "ean": "3272591540433",
  "name": "Terre Métissée, 2024 - Vin de France - Rouge - 75 cl",
  "price": 5.09, "strikedPrice": null, "promo": false,
  "unitPrice": "6,79 € / L",
  "image": "https://media.e.leclerc/3272591540433_1",
  "productPage": "https://www.e.leclerc/fp/terre-metissee-2024-vin-de-france-rouge-75-cl-3272591540433",
  "query": "vin rouge", "source": "search"
}
```

### Input

| Field | What it does |
|-------|--------------|
| `searchQueries` | Search terms, e.g. `["vin rouge", "cafetiere"]`. |
| `categories` | Category slugs or URLs, taken from a `/cat/<slug>` address on the site, e.g. `["vins-rouges"]`. |
| `maxItemsPerQuery` | Stop after this many products per term or category. Leave empty for 100; set `100000` to take them all. |
| `maxPages` | Pages to read per term or category, 50 by default. Raise it for the largest lists; the run's status message tells you when a list has more pages. |

Provide at least one of `searchQueries` or `categories`.

```json
{
  "searchQueries": ["cafetiere"],
  "categories": ["vins-rouges"],
  "maxItemsPerQuery": 200
}
```

### Output

Each run writes rows to the dataset. Export to JSON, CSV, Excel or the API. Every product appears once per term or category, and a run that is moved to another server by Apify carries on where it was without charging anything twice.

### Pricing

Pay per product: about **$1.35 per 1,000 products** on the free tier, less at higher Apify subscription tiers, plus a start fee of **$0.005** a run. A run never reads more than its charge limit allows.

# Actor input Schema

## `searchQueries` (type: `array`):

Search terms to scrape, e.g. \["lait", "cafe", "pates"]. Each returns the matching products with their prices.

## `categories` (type: `array`):

Category pages to scrape, by slug or URL, e.g. \["vins-rouges"] or \["https://www.e.leclerc/cat/vins-rouges"]. Scrapes the whole category across pages.

## `maxItemsPerQuery` (type: `integer`):

Stop after this many products per search term or category. Leave empty for 100; set a higher number (e.g. 100000) to take them all.

## `maxPages` (type: `integer`):

Safety cap on pages walked per search term or category (about 52 products per page).

## `proxyCountry` (type: `string`):

Residential proxy country (ISO code) used to fetch e.leclerc. Default FR; the site returns no products to datacenter IPs.

## Actor input object example

```json
{
  "searchQueries": [
    "vin rouge"
  ],
  "maxItemsPerQuery": 100,
  "maxPages": 50,
  "proxyCountry": "FR"
}
```

# Actor output Schema

## `products` (type: `string`):

One row per product: name, EAN barcode, price, striked (was) price, unit price, image and product page.

# 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 = {
    "searchQueries": [
        "vin rouge"
    ],
    "maxItemsPerQuery": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("ratatoskr/leclerc-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 = {
    "searchQueries": ["vin rouge"],
    "maxItemsPerQuery": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("ratatoskr/leclerc-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 '{
  "searchQueries": [
    "vin rouge"
  ],
  "maxItemsPerQuery": 100
}' |
apify call ratatoskr/leclerc-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ratatoskr/leclerc-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/3ByfgRcdBMPUR41Zj/builds/hUDPrIJCc7X4g1w4t/openapi.json
