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

Scrape products, prices, unit prices, EAN barcodes, and images from carrefour.it, Carrefour's Italian grocery storefront. Search any keyword and export clean structured grocery data.

- **URL**: https://apify.com/studio-amba/carrefour-it-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 $1.20 / 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.
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

## Carrefour Scraper — Italian Grocery Prices

Scrape grocery products, prices, unit prices, EAN barcodes, and images from **carrefour.it**, Carrefour's Italian online grocery storefront. Search any keyword and export clean, structured grocery data.

### Why use this actor?

Carrefour Italy carries a large grocery catalogue, 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 Carrefour SKU, which is EAN-formatted for most grocery items, making it easy to match against other retailers or your own catalogue.

This is the Italian sibling of our carrefour.fr and carrefour.be/es scrapers — same retailer, same output shape, a separate national storefront on a different platform version.

### How to scrape Carrefour data

1. Enter a **search query** in Italian (for example `pasta`, `latte`, `caffe`, or `pane`).
2. Set **Max Results** to how many products you want.
3. Run the actor. Results stream into the dataset and can be exported as JSON, CSV, Excel, or via the API.

Every result already carries the full product detail set — category breadcrumb, description, EAN, and rating/review count when the product has reviews — there is no separate "fetch details" step to enable.

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `searchQuery` | String | No | Search keyword in Italian (default: `pasta`) |
| `maxResults` | Integer | No | Maximum products to return (default: 100) |
| `proxyConfiguration` | Object | No | Residential IT proxy by default; override if needed |

### Output

Each result contains:

| Field | Type | Example |
|-------|------|---------|
| `productName` | String | `"Pezzullo Spaghettoni 6 500 g"` |
| `brand` | String | `"Pezzullo"` |
| `price` | Number | `1.39` |
| `currency` | String | `"EUR"` |
| `unitPrice` | String | `"€ 2,78 al kg/500.0 g"` |
| `originalPrice` | Number | `1.98` (only when on promotion) |
| `discount` | String | `"-30%"` (only when on promotion) |
| `category` | String | `"Pasta di grano"` (breadcrumb label) |
| `productId` | String | `"8030705008102"` |
| `ean` | String | `"8030705008102"` (when the product carries a confirmed EAN) |
| `rating` | Number | Only present when the product has reviews |
| `reviewCount` | Number | Only present when the product has reviews |
| `imageUrl` | String | Primary product image URL |
| `productDescription` | String | Full description |
| `url` | String | Full product page URL |
| `scrapedAt` | String | ISO 8601 timestamp |

### Example output

```json
{
    "productName": "Pezzullo Spaghettoni 6 500 g",
    "brand": "Pezzullo",
    "price": 1.39,
    "currency": "EUR",
    "unitPrice": "€ 2,78 al kg/500.0 g",
    "category": "Pasta di grano",
    "productId": "8030705008102",
    "ean": "8030705008102",
    "imageUrl": "https://www.carrefour.it/on/demandware.static/-/Sites-carrefour-master-catalog-IT/default/dw5f515deb/large/SPAGHETTONIPEZZULLO-8030705008102-1.png",
    "url": "https://www.carrefour.it/p/pezzullo-spaghettoni-6-500-g/8030705008102.html",
    "scrapedAt": "2026-09-19T14:06:16.358Z"
}
```

### How search works

Carrefour Italy's own search endpoint (`/search`) is explicitly disallowed in the site's `robots.txt` for all crawlers, so this actor never calls it. Instead it reads carrefour.it's own product sitemap (`sitemap_0-product.xml`, ~26,700 URLs, listed in `robots.txt` and not disallowed), matches your search query against each product's URL slug, and fetches the matching product pages directly (`/p/{slug}/{ean}.html`, also not disallowed). Every product page carries the same structured price/brand/category data the old search-results listing did, plus a clean JSON-LD block with description, EAN, and rating — so results are complete on the first pass, with one HTTP request per matched product (no separate detail-fetch step).

Both the sitemap and the product pages pass on a plain HTTP fetch with a residential IT proxy — no browser automation or anti-bot bypass service is needed for this route.

Because matching happens against the URL slug rather than a real search index, results are whatever the site itself named the product — a query like `"pasta di semola"` may match fewer products than `"pasta"` even though more exist, since not every slug spells out the full phrase.

### Cost estimate

One HTTP request per matched product, plus a single sitemap fetch per run. Scraping 100 products is about 101 requests total — fast and cheap; there is no per-request anti-bot service fee since the route needs none.

### Long runs and resume

For large `maxResults` runs, the actor persists its progress (seen product URLs and its position in the match list). 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 the national Carrefour Italy catalogue values and may differ from a specific store or delivery zone.
- Rating and review count are only present on products that actually have reviews — most items have none.
- Matching is against the product URL slug, not a full-text search index — see "How search works" above.
- Data is scraped from the public website and may change without notice.
- Respect the website's terms of service and use responsibly.

### Related Scrapers

- [Carrefour France Scraper](https://apify.com/store) — French grocery prices and EAN data
- [Carrefour Spain Scraper](https://apify.com/store) — Spanish grocery prices and EAN data
- [Carrefour Belgium Scraper](https://apify.com/store) — Belgian grocery prices and EAN data
- [Auchan Scraper](https://apify.com/store) — French grocery prices and products

### 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.it for products by keyword, in Italian (e.g. 'pasta', 'latte', 'caffe', 'pane'). Matched against each product's URL slug in carrefour.it's own product sitemap, then each match is fetched for full details.

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

Maximum number of products to return.

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

Proxy settings. carrefour.it's product sitemap and product pages pass on a plain fetch (no anti-bot on this path), but a residential IT proxy is used by default for reliability at scale.

## Actor input object example

```json
{
  "searchQuery": "pasta",
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IT"
  }
}
```

# 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": "pasta",
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "IT"
    }
};

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

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

```

## MCP server setup

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