# E.Leclerc Drive Scraper | French Grocery Prices per Store (`ratatoskr/leclerc-drive-scraper`) Actor

Scrape E.Leclerc Drive grocery prices for the Drive you pick: price, promotion, loyalty offer, unit price, stock, rating and EAN, as clean JSON. Search, aisles, promotions or a whole store of about 17,000 products. Over 1,000 Drives. No login.

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

## Pricing

from $1.30 / 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 Drive Scraper | French Grocery Prices per Store

Scrape **E.Leclerc Drive** (leclercdrive.fr), France's largest grocery drive network, as clean structured JSON. Pick a Drive and get its real prices, stock, promotions and loyalty offers: a whole store of about 17,000 products, one aisle, a search, or the promotions page. No login, no account.

Prices and stock belong to the Drive you pick, and there are over 1,000 of them.

### What you get

One row per product:

| Field | Example |
|-------|---------|
| `name` | Bonbons Carambar CaraPop Bubble |
| `pack` | Cola - Barbe à papa - 380g |
| `price` | 3.33 |
| `promoPrice` | 2.20 (when on promotion) |
| `promoUnitPrice` | the price per kg or litre at the promotion price |
| `promoLabel` | Avantage immédiat de 30% |
| `cardOffer` | Recevez 10% en Ticket E.Leclerc. Offre réservée aux porteurs de la Carte E.Leclerc. |
| `cardCoupon` | Grâce à la Carte E.Leclerc et à HIPRO, bénéficiez de 0.50 € de remise immédiate |
| `cardOnly` | `true` when the row's deal is for Carte E.Leclerc holders only |
| `unitPrice` | 8.76 |
| `unitPriceUnit` | kg |
| `inStock` | true |
| `stock` | 61 |
| `rating` | 4 |
| `reviews` | 1 |
| `ean` | 3564700568941 (with `includeEan`) |
| `image` | https://fd9-photos.leclercdrive.fr/image.ashx?id=2937400\&use=l\&cat=p |
| `productPage` | https://fd9-courses.leclercdrive.fr/.../fiche-produits-266243-... |
| `productId` | 266243 |
| `storeId` | 053701 |
| `storeName` | Bordeaux - Victor Hugo |
| `aisleId`, `familyId`, `subFamilyId` | the site's own category ids |
| `query`, `source` | the term or aisle the row came from |

#### Prices and deals

- `price` is the shelf price at this Drive, which everyone pays.
- `promoPrice` and `promoLabel` are an immediate promotion, taken off the order.
- `cardOffer` is a Ticket E.Leclerc offer: money back onto the Carte E.Leclerc loyalty card.
- `cardCoupon` is a brand's coupon, taken off the order for Carte E.Leclerc holders.
- `cardOnly` is `true` when the shop says on the row that its deal is for Carte E.Leclerc holders. Some immediate promotions are, such as "Avantage immédiat de 34%. Offre réservée aux porteurs de la Carte E.Leclerc.", and Ticket offers and coupons say so too. A `promoPrice` with `cardOnly: false` is open to everyone: on one Drive's promotions page, 123 of 203 promotion prices were, and 80 were for card holders.

### Input

| Field | What it does |
|-------|--------------|
| `storeId` | The six digits in a Drive's address, e.g. `053701`. Used when `storeSearch` is empty. |
| `storeSearch` | A postcode or town, e.g. `33000` or `Lyon`. When set, it wins over `storeId`. The run's status names the Drive it used, with its id and postcode, and how many Drives matched. |
| `searchQueries` | Search terms, e.g. `["lait", "cafe"]`. The shop shows up to 200 products per term. |
| `rayons` | Aisles, as a Drive address holding `rayon-284370-Laits-et-Oeufs`, or the id `284370`. |
| `promotions` | Read the Drive's promotions page: 1,405 products at Bordeaux - Victor Hugo and 2,716 at La Ville-aux-Dames in our runs. |
| `dealsOnly` | Keep only products with a promotion price, a promotion label, a card offer or a card coupon. Products left out are not charged. |
| `maxItems` | Stop after this many products per term or aisle, or in all on a whole-Drive walk. Leave empty for 100; set `100000` for everything. |
| `includeEan` | Add each product's EAN barcode. Promotions rows get theirs from the promotions page itself; search and aisle rows from each product's own page, a few seconds per product. |

Leave `searchQueries`, `rayons` and `promotions` empty to walk the whole Drive.

To find an aisle, open your Drive on leclercdrive.fr, click an aisle and copy the `rayon-...` part of the address: `https://fd9-courses.leclercdrive.fr/magasin-053701-La-Ville-aux-Dames/rayon-284370-Laits-et-Oeufs.aspx` gives `rayon-284370-Laits-et-Oeufs`.

The promotions page lists promotion prices and labels, Ticket E.Leclerc offers, card coupons, and a few products with no deal of their own: 39 of 1,405 at Bordeaux - Victor Hugo, such as bonus packs whose extra is in the pack ("4x100g + 2 offerts"), a food-bank donation and a Disney collector album. Set `dealsOnly` to leave those out.

The deals in two searches at the Drive a town finds, up to 20 for each search:

```json
{
  "storeSearch": "Lyon",
  "searchQueries": ["cafe", "lait"],
  "dealsOnly": true,
  "maxItems": 20
}
```

The deals on a Drive's promotions page:

```json
{
  "storeSearch": "33000",
  "promotions": true,
  "dealsOnly": true,
  "maxItems": 30
}
```

### Output

Each run writes rows to the dataset. Export to JSON, CSV, Excel or the API. Schedule the same Drive daily to track its prices and promotions, or run several Drives to compare them. A whole Drive takes about 40 minutes.

### Pricing

Pay per product, plus a start fee per run that Apify counts per GB of memory: $0.15 at the default 4 GB. A run never reads more than its charge limit allows. A whole Drive of about 17,600 products costs about $30 at the standard rate.

# Actor input Schema

## `storeId` (type: `string`):

The six digits in a Drive's address, e.g. 053701. Prices and stock are this Drive's. Used only when Find a Drive is empty.

## `storeSearch` (type: `string`):

A postcode or town, e.g. 33000 or Lyon. When filled in, it wins over Drive id. The first match is used, and the run's status names it with its id and how many Drives matched.

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

Search terms, e.g. \["lait", "cafe"]. The shop shows at most 200 products per term.

## `rayons` (type: `array`):

Aisles of the Drive: open it on leclercdrive.fr, click an aisle and copy the rayon-... part of the address, e.g. rayon-284370-Laits-et-Oeufs, or just its number 284370. Leave search terms and aisles empty to walk the whole Drive.

## `promotions` (type: `boolean`):

Also read the Drive's promotions page. It mixes promotion prices and labels, Carte E.Leclerc offers and coupons, and a few products with no deal of their own.

## `dealsOnly` (type: `boolean`):

Keep only products with a promotion price, a promotion label, a card offer or a card coupon, on any page this run reads. Products left out are not charged.

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

Stop after this many products per term or aisle, or in all on a whole-Drive walk. Leave empty for 100; set 100000 to take everything.

## `includeEan` (type: `boolean`):

Add each product's EAN barcode. Promotions rows get theirs from the promotions page itself; search and aisle rows from each product's own page, a few seconds per product.

## Actor input object example

```json
{
  "storeId": "053701",
  "searchQueries": [
    "lait"
  ],
  "promotions": false,
  "dealsOnly": false,
  "maxItems": 100,
  "includeEan": false
}
```

# Actor output Schema

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

One row per product: name, pack, this Drive's price, promotion, loyalty offer, unit price, stock and image.

# 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 = {
    "storeId": "053701",
    "searchQueries": [
        "lait"
    ],
    "maxItems": 100
};

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

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

```

## MCP server setup

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