# Carrefour Scraper — French Grocery Prices (`studio-amba/carrefour-fr-scraper`) Actor

Scrape grocery products from carrefour.fr, France's #2 supermarket. Extract product names, prices, unit prices, EAN barcodes, brands, ratings, and promotions from search results. Returns clean structured JSON for price monitoring and comparison.

- **URL**: https://apify.com/studio-amba/carrefour-fr-scraper.md
- **Developed by:** [Studio Amba](https://apify.com/studio-amba) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 result scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Carrefour Scraper — French Grocery Prices

Scrape grocery products, prices, unit prices, EAN barcodes, ratings, and images from **carrefour.fr**, France's largest supermarket retailer. Search any keyword and export clean, structured grocery data.

### Why use this actor?

Carrefour is one of the largest grocery catalogues in France, and its prices, promotions, and EAN barcodes are valuable for price monitoring, competitor analysis, product matching, and market research. This actor turns a keyword search into a structured dataset you can drop straight into a spreadsheet, database, or price-comparison pipeline. Every product comes with its 13-digit EAN barcode, which makes it easy to match Carrefour items against other retailers or your own catalogue.

### How to scrape Carrefour data

1. Enter a **search query** in French (for example `lait`, `cafe`, `pain`, or `chocolat`).
2. Set **Max Results** to how many products you want (each search page returns 30 products; the actor paginates automatically).
3. Provide a **Bright Data API key** (see "Anti-bot" below).
4. Run the actor. Results stream into the dataset and can be exported as JSON, CSV, Excel, or via the API.

Optionally enable **Fetch product details** to visit each product page and add the category, full description, and a confirmed EAN from structured data. This is slower and more expensive because it makes one extra request per product, and it is not needed for price, EAN, unit price, brand, rating, or image — those come from the search page directly.

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `searchQuery` | String | No | Search keyword in French (default: `lait`) |
| `maxResults` | Integer | No | Maximum products to return (default: 100) |
| `fetchDetails` | Boolean | No | Visit each product page for category + description (default: false) |
| `brightDataApiKey` | String | Yes | Bright Data Web Unlocker API key (or set `BRIGHT_DATA_API_KEY` env var) |
| `proxyConfiguration` | Object | No | Kept for compatibility; fetching is handled by Bright Data |

### Output

Each result contains:

| Field | Type | Example |
|-------|------|---------|
| `productName` | String | `"Lait Demi-Ecrémé demi-écrémé SIMPL"` |
| `brand` | String | `"SIMPL"` |
| `price` | Number | `5.64` |
| `currency` | String | `"EUR"` |
| `unitPrice` | String | `"0.94 € / L"` |
| `originalPrice` | Number | `6.64` (only when on promotion) |
| `discount` | String | `"-15%"` (only when on promotion) |
| `category` | String | `"Lait demi-écrémé"` (only with Fetch product details) |
| `productId` | String | `"3560071267964"` |
| `ean` | String | `"3560071267964"` |
| `rating` | Number | `4.88` |
| `reviewCount` | Number | `24` |
| `imageUrl` | String | Primary product image URL |
| `productDescription` | String | Full description (only with Fetch product details) |
| `url` | String | Full product page URL |
| `scrapedAt` | String | ISO 8601 timestamp |

### Example output

```json
{
    "productName": "Lait Demi-Ecrémé demi-écrémé SIMPL",
    "brand": "SIMPL",
    "price": 5.64,
    "currency": "EUR",
    "unitPrice": "0.94 € / L",
    "productId": "3560071267964",
    "ean": "3560071267964",
    "rating": 4.88,
    "reviewCount": 24,
    "imageUrl": "https://media.carrefour.fr/medias/9af83bb7b46d3d2ba6db1814c093cd3a/p_200x200/3560071267964-0.jpg",
    "url": "https://www.carrefour.fr/p/lait-demi-ecreme-demi-ecreme-simpl-3560071267964",
    "scrapedAt": "2026-07-12T21:29:22.000Z"
}
```

### Anti-bot: Bright Data Web Unlocker required

Carrefour.fr is protected by DataDome. Plain HTTP requests and standard datacenter proxies receive a 403 challenge page instead of the real content. To fetch pages reliably, this actor uses the [Bright Data Web Unlocker](https://brightdata.com) (zone `web_unlocker1`).

You need a Bright Data account with a Web Unlocker zone. Provide the API key either:

- in the input field **Bright Data API Key**, or
- as the environment variable `BRIGHT_DATA_API_KEY`.

Bright Data bills per request. Because each search page returns 30 products in a single request, the anti-bot cost per product is very low when you scrape the listing only (the default). Enabling **Fetch product details** adds one request per product and increases both time and cost significantly.

### Cost estimate

- **Listing only (default):** roughly one Bright Data request per 30 products, plus Apify compute. Scraping 1,000 products is about 34 page requests — fast and cheap.
- **With Fetch product details:** one extra request per product (about 1,030 requests for 1,000 products), so runs are much longer and cost more. Only enable it when you need the category or full description.

### How pagination works

Carrefour's search uses a simple `?q=<keyword>&page=<N>` URL. The actor starts at page 1 and requests the next page until it reaches your Max Results or runs out of products. Each page yields 30 unique products, deduplicated by EAN so the same item is never exported twice.

For long runs with **Fetch product details** enabled, the actor persists its progress (seen products and page cursor). If Apify migrates the run to another host, it resumes where it left off instead of restarting, so you never get duplicate rows or a half-finished catalogue.

### Limitations

- Prices and availability are national Carrefour catalogue values and may differ from a specific store or drive location.
- `category` and `productDescription` are only populated when **Fetch product details** is enabled.
- A Bright Data Web Unlocker key is required; without it the actor cannot fetch pages.
- Data is scraped from the public website and may change without notice.
- Respect the website's terms of service and use responsibly.

### Related Scrapers

- [Auchan Scraper](https://apify.com/store) — French grocery prices and products
- [Leroy Merlin Scraper](https://apify.com/store) — French DIY and home improvement
- [Continente Scraper](https://apify.com/store) — Portuguese grocery with EAN barcodes
- [Dia Scraper](https://apify.com/store) — Spanish grocery prices

### Need this data on a schedule, or a custom version?

We run this scraper as a managed service for businesses: scheduled runs,
deduplication, delta detection, and delivery to your inbox, Google Sheets,
or API — maintenance included. We can also build a custom version with your
exact fields and filters, or combine multiple sources into one feed.

See [studioamba.dev/services](https://studioamba.dev/services/) or email
<hello@studioamba.dev> for a free data sample.
We maintain 300+ European web scrapers and answer within one business day.

# Actor input Schema

## `searchQuery` (type: `string`):

Search carrefour.fr for products by keyword, in French (e.g. 'lait', 'cafe', 'pain', 'chocolat'). Each search page returns 30 products; the scraper paginates until it reaches Max Results.

## `maxResults` (type: `integer`):

Maximum number of products to return.

## `fetchDetails` (type: `boolean`):

Visit each product page to enrich results with category, full description, and a confirmed EAN from structured data. This makes one extra request per product, so runs take much longer and cost more. EAN, price, unit price, brand, rating and image are already captured from the search page without this.

## `brightDataApiKey` (type: `string`):

Your Bright Data API key for the Web Unlocker zone (web_unlocker1). Required to bypass Carrefour's DataDome anti-bot protection. Get one at https://brightdata.com. Can also be provided via the BRIGHT_DATA_API_KEY environment variable.

## `proxyConfiguration` (type: `object`):

Proxy settings. Kept for compatibility — page fetching is handled by Bright Data Web Unlocker, so this does not affect scraping.

## Actor input object example

```json
{
  "searchQuery": "lait",
  "maxResults": 20,
  "fetchDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (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 = {
    "searchQuery": "lait",
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/carrefour-fr-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 = {
    "searchQuery": "lait",
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/carrefour-fr-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 '{
  "searchQuery": "lait",
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call studio-amba/carrefour-fr-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,studio-amba/carrefour-fr-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/NUU7nKSd97DN7bwNJ/builds/32YGyVUAqgoQHBYeO/openapi.json
