# Carrefour Scraper (Pay Per Result) (`123webdata/carrefour-scraper`) Actor

A scraper for Carrefour to extract product and pricing information from supermarket category and item pages. Useful for analytics, AI model training, and inventory tracking. Pricing: $0.005/result. 10 results on free trial.

- **URL**: https://apify.com/123webdata/carrefour-scraper.md
- **Developed by:** [Milán Vásárhelyi](https://apify.com/123webdata) (community)
- **Categories:** E-commerce, AI
- **Stats:** 97 total users, 2 monthly users, 98.6% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 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.

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

## Carrefour.com Scraper

This actor scrapes product data from [Carrefour.com](https://www.carrefour.com/), a major international hypermarket and supermarket chain.

### Issues and feature requests

If you encounter any issue, or you'd like us to change or add anything, please open an issue in the actor page or write to us directly at hello@123webdata.com

### Output Example (simplified)

The actor provides a convenient overview mode that displays the most important product information in a tabular format. Here's an example of how the data looks in the overview mode:

| Image | Product URL | Product Name | Current Price | Regular Price | Currency | Description | Scraped At |
|-------|-------|-------|-------|-------|-------|-------|-------|
| <img src="https://media.carrefour.fr/medias/2f66e1eb1e91454ab43180f2239965fe/p_1500x1500/05900130030630_H1N1_s10.png" style="max-width: 100px; max-height: 100px; object-fit: contain;"> | https://www.carrefour.fr/p/glaces-caramel-sale-macadamia-d-australie-nuii-5900130030630?t=2104 | Glaces caramel salé & macad... | 99.00 | 0 | EUR | Découvrez NUII, une aventur... | 2025-07-21 |
| <img src="https://media.carrefour.fr/medias/385648f475144255b323f34cff538808/p_1500x1500/08711327373105_C1N1_s09.jpeg" style="max-width: 100px; max-height: 100px; object-fit: contain;"> | https://www.carrefour.fr/p/glace-cookie-dough-ben-jerry-s-8711327373105?t=2104 | Glace Cookie Dough BEN & JE... | 55.00 | 0 | EUR | La délicieuse crème glacée ... | 2025-07-21 |
| <img src="https://media.carrefour.fr/medias/45a6be9f28613ab9a1374615b8837ffe/p_1500x1500/05027324001839-a1r1-s01.jpg" style="max-width: 100px; max-height: 100px; object-fit: contain;"> | https://www.carrefour.fr/p/glace-mochis-fruit-de-la-passion-mangue-little-moons-5027324001839?t=2104 | Glace mochis fruit de la pa... | 28.91 | 0 | EUR | Laissez-vous emporter par c... | 2025-07-21 |

### Features

- Scrapes detailed product information from Carrefour.com product pages
- Extracts data from both individual product URLs and category pages
- Follows pagination links on category pages (optional)
- Supports various product categories with specific fields like brand, price, and category

### Input

The actor accepts the following input parameters:

| Field | Type | Description |
|-------|------|-------------|
| `productUrls` | array | List of Carrefour.com product URLs to scrape |
| `categoryUrls` | array | List of Carrefour.com category URLs to scrape |
| `maxResultsPerScrape` | integer | Maximum number of results to extract (default: 1000) |
| `usePagination` | boolean | Whether to follow pagination links on category pages (default: true) |

### Output Example (full)

The actor outputs data in the following structure:

```json
{
	"url": "https://www.carrefour.fr/p/glaces-caramel-sale-macadamia-d-australie-nuii-5900130030630?t=2104",
	"name": "Glaces caramel salé & macadamia d'Australie NUII",
	"price": 99,
	"regular_price": 0,
	"currency": "EUR",
	"in_stock": null,
	"sku": "5900130030630",
	"mpn": null,
	"gtin": "5900130030630",
	"brand": "NUII",
	"breadcrumbs": [
		"Accueil",
		"Rayons",
		"Surgelés",
		null,
		"Glaces et Sorbets",
		"Glaces caramel salé & macadamia d'Australie NUII"
	],
	"main_image": "https://media.carrefour.fr/medias/2f66e1eb1e91454ab43180f2239965fe/p_1500x1500/05900130030630_H1N1_s10.png",
	"images": [
		"https://media.carrefour.fr/medias/2f66e1eb1e91454ab43180f2239965fe/p_1500x1500/05900130030630_H1N1_s10.png",
		"https://media.carrefour.fr/medias/2f66e1eb1e91454ab43180f2239965fe/p_43x43/05900130030630_H1N1_s10.png",
		"https://media.carrefour.fr/medias/aa1ce7b4409b4faba21ec3b2087b28c1/p_43x43/05900130030630_A2N1_s05.png",
		"https://media.carrefour.fr/medias/2f66e1eb1e91454ab43180f2239965fe/p_540x540/05900130030630_H1N1_s10.png",
		"https://media.carrefour.fr/medias/bb17d8a9ac454c94ba002076c4dd7b57/p_43x43/05900130030630_A3N1_s06.png",
		"https://media.carrefour.fr/medias/b7801616fa5f416a9a3908c62523f26b/p_43x43/05900130030630_A7N1_s07.png",
		"https://www.carrefour.fr/images/logo-consotrust.svg",
		"https://media.carrefour.fr/medias/2f66e1eb1e91454ab43180f2239965fe/p_200x200/05900130030630_H1N1_s10.png",
		"https://www.carrefour.fr/images/logo-allergobox.svg",
		"https://www.carrefour.fr/images/loader-dots.svg"
	],
	"description": "Découvrez NUII, une aventure gourmande, empreinte d'évasion. Communément appelée la « reine des noix » en Australie, la noix de Macadamia est réputée pour sa saveur délicatement beurrée et sa texture croquante. Ses éclats légèrement torréfiés se mélangent à un enrobage de délicieux chocolat au lait qui renferme une onctueuse crème glacée à la vanille marbrée d'une généreuse sauce au caramel salée. Une saveur irrésistible à explorer ! Chocolat certifié Rainforest Alliance. Recette sans gluten.",
	"color": null,
	"size": null,
	"weight": "0.19 gram",
	"material": null,
	"style": null,
	"features": [],
	"attributes": {
		"raison sociale": "FRONERI France SAS",
		"adresse": "KERGAMET PLOUEDERN CS 20809 29208 LANDERNEAU CEDEX",
		"e-mail": "service.consommateur@fr.froneri.com",
		"téléphone": "05 57 55 39 00",
		"marque": "NUII"
	},
	"rating_value": 5,
	"review_count": 1,
	"canonical_url": "https://www.carrefour.fr/p/glaces-caramel-sale-macadamia-d-australie-nuii-5900130030630",
	"scraped_at": "2025-07-21T11:42:38.103Z"
}
```

### Use Cases

- Monitoring grocery and retail product prices
- Analyzing product availability and trends
- Tracking price changes over time
- Market research and competitive analysis in the retail industry

# Actor input Schema

## `productUrls` (type: `array`):

List of Carrefour.com product URLs to scrape.

## `categoryUrls` (type: `array`):

List of Carrefour.com category URLs to scrape. The scraper will extract all product URLs from these pages.

## `maxResultsPerScrape` (type: `integer`):

Maximum number of results to extract. Default is 20.

## `usePagination` (type: `boolean`):

Whether to follow pagination links on category pages.

## Actor input object example

```json
{
  "productUrls": [
    "https://www.carrefour.fr/p/glaces-caramel-sale-macadamia-d-australie-nuii-5900130030630?t=2104"
  ],
  "categoryUrls": [
    "https://www.carrefour.fr/r/surgeles/glaces-et-sorbets?filters%5Bfacet_promotions%5D%5B0%5D=Toutes+les+promotions&noRedirect=1"
  ],
  "maxResultsPerScrape": 20,
  "usePagination": true
}
```

# 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 = {
    "productUrls": [
        "https://www.carrefour.fr/p/glaces-caramel-sale-macadamia-d-australie-nuii-5900130030630?t=2104"
    ],
    "categoryUrls": [
        "https://www.carrefour.fr/r/surgeles/glaces-et-sorbets?filters%5Bfacet_promotions%5D%5B0%5D=Toutes+les+promotions&noRedirect=1"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("123webdata/carrefour-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 = {
    "productUrls": ["https://www.carrefour.fr/p/glaces-caramel-sale-macadamia-d-australie-nuii-5900130030630?t=2104"],
    "categoryUrls": ["https://www.carrefour.fr/r/surgeles/glaces-et-sorbets?filters%5Bfacet_promotions%5D%5B0%5D=Toutes+les+promotions&noRedirect=1"],
}

# Run the Actor and wait for it to finish
run = client.actor("123webdata/carrefour-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 '{
  "productUrls": [
    "https://www.carrefour.fr/p/glaces-caramel-sale-macadamia-d-australie-nuii-5900130030630?t=2104"
  ],
  "categoryUrls": [
    "https://www.carrefour.fr/r/surgeles/glaces-et-sorbets?filters%5Bfacet_promotions%5D%5B0%5D=Toutes+les+promotions&noRedirect=1"
  ]
}' |
apify call 123webdata/carrefour-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,123webdata/carrefour-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/JT786hufL9fMG1EV0/builds/73IPb8NGLqkfYBmLK/openapi.json
