# Carrefour.fr Product Search, Category & Promotions Scraper (`vexaloom-labs/carrefour-fr-product-search-category`) Actor

Search Carrefour France's online catalog by keyword, browse a category, or pull currently discounted products, with price, brand, stock status and promotion details for each product.

- **URL**: https://apify.com/vexaloom-labs/carrefour-fr-product-search-category.md
- **Developed by:** [vexaloom-labs](https://apify.com/vexaloom-labs) (community)
- **Categories:** E-commerce, Automation, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

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/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.fr Product Search, Category & Promotions Scraper

Collect live product data from [Carrefour France](https://www.carrefour.fr): search the catalogue
by keyword, open any category, or read every current promotion. The actor returns shelf prices,
crossed prices and promotion labels, unit prices, stock state, customer ratings, Nutri-Score,
seller details, category paths, images and direct product links. No login, cookie or proxy setup is
required.

### Modes

| Mode | What it does | Required input |
|---|---|---|
| `searchProducts` | Keyword search across the French catalogue | `query` |
| `browseCategory` | Browse one category, subcategory or full category URL | `categorySlug` |
| `getPromotions` | Read products Carrefour currently marks as promoted | — |

All modes support pagination up to `maxItems`, the same filters, and six sort orders.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `searchProducts` | `searchProducts`, `browseCategory` or `getPromotions` |
| `query` | string | `lait` | Keyword for `searchProducts` |
| `categorySlug` | string | – | Category slug or full `/r/...` URL |
| `brand` | string | – | Exact brand name filter |
| `promotionsOnly` | boolean | `false` | Only products with a current promotion |
| `organicOnly` | boolean | `false` | Only organic products |
| `carrefourBrandsOnly` | boolean | `false` | Only Carrefour own brands |
| `nutriscore` | string | `any` | `any`, `A`, `B`, `C`, `D` or `E` |
| `minRating` | string | `any` | `any`, `5.0`, `4.5`, `4.0` or `3.5` |
| `sortBy` | string | `relevance` | Relevance, price, unit price or rating sort |
| `maxItems` | integer | `50` | Maximum products to return (1–500) |

### Filters and sorting

- **Brand** — exact brand name as Carrefour lists it, e.g. `LACTEL` or `SAMSUNG`.
- **Promotions only** — products with a current promotion or immediate discount.
- **Organic only** — products flagged organic by Carrefour.
- **Carrefour own brands** — own-brand assortment only.
- **Nutri-Score** — `A`, `B`, `C`, `D` or `E`.
- **Minimum rating** — 3.5, 4.0, 4.5 or 5.0 stars.
- **Sort** — relevance, price (both directions), price per kg/L (both directions), or rating.

Filters combine, for example: a category browse for `cremerie` with brand `LACTEL`,
`promotionsOnly=true` and `sortBy=price_asc`.

### Output

One dataset item per product. Empty values are omitted rather than written as `null`.

| Field | Meaning |
|---|---|
| `productId` | EAN / Carrefour product identifier |
| `productName` | Product title |
| `brand` | Brand as shown by Carrefour |
| `price` | Current shelf price in EUR, after an immediate quantity-1 promotion |
| `currency` | `EUR` |
| `originalPrice` | Crossed price when the current price is reduced |
| `discount` | Reduction percentage when `originalPrice` is present |
| `unitPrice` | Price per kg, litre or unit when Carrefour publishes it |
| `unitPriceLabel` | Formatted unit price, e.g. `1.05 € / L` |
| `unit` | Unit of measure for `unitPrice` |
| `category` | Deepest category label |
| `categoryPath` | Full breadcrumb, `A > B > C` |
| `categorySlug` | Category URI usable as `categorySlug` |
| `inStock` | Whether the selected offer is currently purchasable |
| `lowStock` | Present and `true` when stock is low |
| `rating` | Average customer rating |
| `reviewCount` | Number of customer reviews |
| `nutriscore` | Nutri-Score letter, food products only |
| `isBestSeller` | Present and `true` for best sellers |
| `seller` | `Carrefour` or the marketplace seller name |
| `isMarketplace` | Present and `true` for marketplace sellers |
| `otherOffersCount` | Number of additional seller offers |
| `packaging` | Pack description, e.g. `le pack de 6 bouteilles de 1L` |
| `format` | Format, e.g. `6x1L` |
| `promotionLabel` | Promotion text, e.g. `1 acheté = 80€ de remise` |
| `promotionType` | Carrefour promotion type code |
| `promotionEndDate` | Promotion end date when Carrefour publishes one |
| `imageUrl` | Product image at 540×540 |
| `productUrl` | Direct product page URL |
| `scrapedAt` | ISO 8601 scrape timestamp |

### Examples

Search for milk, cheapest first:

```json
{
  "mode": "searchProducts",
  "query": "lait",
  "sortBy": "price_asc",
  "maxItems": 100
}
```

Browse organic baby products with a 4.5-star minimum:

```json
{
  "mode": "browseCategory",
  "categorySlug": "bebe",
  "organicOnly": true,
  "minRating": "4.5",
  "maxItems": 50
}
```

Read current promotions for one brand:

```json
{
  "mode": "getPromotions",
  "brand": "CORONA",
  "maxItems": 30
}
```

### Data source and behaviour

The actor reads the same server-rendered catalogue payload that powers the public category and
search pages. It requests one page at a time, follows Carrefour's own next-page link, stops at
`maxItems` or when the source is exhausted, and retries temporary blocks with a different Safari
TLS fingerprint. When the hosting network itself is challenged, it automatically routes the request
through an Apify anti-bot proxy. It does not sign in and does not send cookies.

### Limitations

- Prices are Carrefour's national online prices. Drive/store-specific prices require a store
  session and are not collected.
- A price-range filter is not exposed because Carrefour's cookieless URL grammar does not accept a
  working range value; use `maxItems` with a sort order and filter locally if needed.
- Ingredients, allergens and the nutrition table live on product detail pages, not in the
  search/category payload, so they are not part of this actor's output.
- Carrefour may change its page payload; the actor reports a clear status message instead of
  returning partial fabricated rows when that happens.

### FAQ

**Do I need a Carrefour account?** No. The actor reads public catalogue pages.

**Do I configure a proxy?** No. The actor handles request fingerprints internally.

**Why is `new` still a sort option?** It is kept for saved tasks from the previous version; the
site no longer offers a newest-first sort, so `new` falls back to relevance.

**How fresh is the data?** Each run reads the live page; `scrapedAt` records the exact time.

# Actor input Schema

## `mode` (type: `string`):

What to scrape from Carrefour France.

## `query` (type: `string`):

Product search keyword, for example 'lait', 'smartphone' or 'yaourt' (mode=searchProducts).

## `categorySlug` (type: `string`):

Carrefour category slug or full category URL (mode=browseCategory), for example 'cremerie', 'smartphones-objets-connectes' or 'https://www.carrefour.fr/r/cremerie/laits/lait-demi-ecreme'.

## `brand` (type: `string`):

Only return products from this brand, exactly as Carrefour lists it, for example 'LACTEL' or 'SAMSUNG'.

## `promotionsOnly` (type: `boolean`):

Only return products Carrefour currently shows with a promotion or immediate discount.

## `organicOnly` (type: `boolean`):

Only return products Carrefour flags as organic.

## `carrefourBrandsOnly` (type: `boolean`):

Only return Carrefour own-brand products.

## `nutriscore` (type: `string`):

Only return products with this Nutri-Score (food products).

## `minRating` (type: `string`):

Only return products rated at least this many stars.

## `sortBy` (type: `string`):

Product sort order. 'Rating' means highest customer rating first. 'new' is a legacy value that now falls back to relevance because Carrefour no longer exposes a newest-first sort.

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

Maximum number of products to return (1-500).

## Actor input object example

```json
{
  "mode": "searchProducts",
  "query": "lait",
  "promotionsOnly": false,
  "organicOnly": false,
  "carrefourBrandsOnly": false,
  "nutriscore": "any",
  "minRating": "any",
  "sortBy": "relevance",
  "maxItems": 3
}
```

# Actor output Schema

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

Dataset containing all scraped Carrefour France products.

# 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 = {
    "mode": "searchProducts",
    "query": "lait",
    "promotionsOnly": false,
    "organicOnly": false,
    "carrefourBrandsOnly": false,
    "nutriscore": "any",
    "minRating": "any",
    "sortBy": "relevance",
    "maxItems": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("vexaloom-labs/carrefour-fr-product-search-category").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 = {
    "mode": "searchProducts",
    "query": "lait",
    "promotionsOnly": False,
    "organicOnly": False,
    "carrefourBrandsOnly": False,
    "nutriscore": "any",
    "minRating": "any",
    "sortBy": "relevance",
    "maxItems": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("vexaloom-labs/carrefour-fr-product-search-category").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 '{
  "mode": "searchProducts",
  "query": "lait",
  "promotionsOnly": false,
  "organicOnly": false,
  "carrefourBrandsOnly": false,
  "nutriscore": "any",
  "minRating": "any",
  "sortBy": "relevance",
  "maxItems": 3
}' |
apify call vexaloom-labs/carrefour-fr-product-search-category --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vexaloom-labs/carrefour-fr-product-search-category"
        }
    }
}
```

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/WjpsYeIrJP6xs32fu/builds/1WjxJS6yUDseFnkUR/openapi.json
