# Esselunga Scraper (`datascrapers/esselunga-scraper`) Actor

Extract Esselunga grocery products from search queries, category pages, and product links, with optional ingredients, nutrition, and usage details.

- **URL**: https://apify.com/datascrapers/esselunga-scraper.md
- **Developed by:** [Data Scrapers](https://apify.com/datascrapers) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 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

**Esselunga Scraper** creates a structured dataset of grocery products collected from Esselunga's online supermarket. Each dataset item is one product and can include the product code, name, brand, price, original price, unit price, stock flag, category, and product URL. Query the source with search terms, category or product URLs, or product codes, optionally add ingredients and nutrition, limit results with `maxItems`, and retrieve records through the Apify Dataset API or export them as JSON, CSV, Excel, XML, or another supported format.

[![Esselunga Scraper — input to structured data](https://raw.githubusercontent.com/faizanalii/apify-actor-assets/main/esselunga-scraper/esselunga-scraper-value-demo.gif)](https://apify.com/datascrapers/esselunga-scraper)

### Dataset at a glance

| Property | Value |
|---|---|
| Source | spesaonline.esselunga.it |
| Record unit | One grocery product |
| Input methods | `searchQueries`, `startUrls`, `productCodes` |
| Main identifiers | `code`, `url` |
| Delivery | Apify Dataset and API |
| Export formats | JSON, CSV, Excel, XML, and other Apify dataset exports |
| Update model | Fresh records per Actor run |
| Pricing | $1.50 per 1,000 products on the Free plan |

### Coverage and available records

Supported inputs are search terms, Esselunga category, search, or product URLs, and numeric product codes. `includeProductDetails` adds ingredients, nutrition, origin, and usage notes when the product page is fetched. `maxConcurrency` sets how many requests run at once. `maxItems` caps products.

Each saved row is one `code`. The Actor collects the catalog returned for that query. It does not collect basket or account data.

### Data dictionary

| Field | Type | Nullable | Description | Example |
|---|---|---:|---|---|
| code | string | No | Esselunga product code used for deduplication | 761296 |
| name | string | No | Product name | Esselunga mapo confezionato 1 kg |
| brand | string | Yes | Brand | Esselunga |
| price | number | Yes | Current price | 1.75 |
| originalPrice | number | Yes | Price before discount | 2.19 |
| unitPriceLabel | string | Yes | Unit price text | 1,75 € / kg |
| url | string | No | Product URL | https://spesaonline.esselunga.it/commerce/nav/supermercato/store/prodotto/761296/esselunga-mapo-confezionato-1-kg |
| categoryPath | array | Yes | Category breadcrumb | \["SUPERMERCATO", "Frutta"] |
| outOfStock | boolean | Yes | Whether the product is out of stock | false |
| originCountry | string | Yes | Origin when details are on | PORTOGALLO |
| source | string | Yes | Query or category that found the product | Frutta |
| sourceType | string | Yes | How the product was found | category |

### Example dataset record

```json
{
  "code": "761296",
  "name": "Esselunga mapo confezionato 1 kg",
  "brand": "Esselunga",
  "price": 1.75,
  "originalPrice": 2.19,
  "unitPriceLabel": "1,75 € / kg",
  "url": "https://spesaonline.esselunga.it/commerce/nav/supermercato/store/prodotto/761296/esselunga-mapo-confezionato-1-kg",
  "categoryPath": ["SUPERMERCATO", "Frutta", "Frutta fresca", "Agrumi"],
  "sourceType": "category",
  "source": "Frutta"
}
```

### Query and input reference

| Field | Required | Description |
|---|---|---|
| searchQueries | No | Product search terms, such as `nutella` |
| startUrls | No | Category, search, or product URLs |
| productCodes | No | Numeric codes from product URLs |
| includeProductDetails | No | Fetch ingredients and nutrition and charge `product-details` |
| maxItems | No | Maximum products |
| maxConcurrency | No | Parallel requests |
| proxyConfiguration | No | Apify proxy settings |

Provide a search term, a URL, or a product code.

### Retrieve the data through the API

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("datascrapers/esselunga-scraper").call(run_input={
    "searchQueries": ["nutella"],
    "includeProductDetails": True,
    "maxItems": 5,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["name"], item["price"], item["code"])
```

### Data quality and record handling

Deduplicate on `code`. `url` is a second key. Ingredient and nutrition fields are present only after a successful product page. A failed detail request is not charged. Each run writes a new dataset.

### Pricing and cost examples

Pay per event. Prices are per 1,000 events. Platinum and Diamond use the Gold rate. Platform usage is not billed separately.

| Event | Free | Bronze | Silver | Gold |
|---|---:|---:|---:|---:|
| product | $1.50 | $1.40 | $1.30 | $1.20 |
| product-details | $1.50 | $1.40 | $1.30 | $1.20 |

A Free-plan run that saves 1,000 products costs $1.50. Adding details for those products costs $1.50 more.

### Limitations and responsible data use

Prices and promotions follow the live Esselunga catalog. Collect public product fields only, and keep `maxItems` small on the first run.

### Dataset questions

#### What is one dataset item?

One Esselunga product, identified by `code`.

#### When is product-details charged?

When `includeProductDetails` is on and the product page is fetched.

#### Which field should I use to merge runs?

`code` or `url`.

### Related datasets from Data Scrapers

- [Carrefour Scraper](https://apify.com/datascrapers/carrefour-scraper) for grocery products
- [Instacart Store Scraper](https://apify.com/datascrapers/instacart-store-scraper) for grocery products
- [Subito Scraper](https://apify.com/datascrapers/subito-scraper) for classified listings

### Data Scrapers support

Questions about this dataset: stardustspotlight@gmail.com.

# Actor input Schema

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

Product search terms, such as nutella or pancake. Provide at least one search query, category URL, or product code.

## `startUrls` (type: `array`):

Esselunga store links. Category pages list every product in that aisle. Search URLs repeat a search. Product URLs extract those products directly.

## `productCodes` (type: `array`):

Esselunga product codes, the number in a product URL such as 607019.

## `includeProductDetails` (type: `boolean`):

When enabled, each product also includes ingredients, nutrition, storage and usage notes, breadcrumbs, and SEO text. This is a separate product-details charge. Leave off to extract listing fields only.

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

Maximum number of products to extract. Use 0 to extract every matching product.

## `maxConcurrency` (type: `integer`):

How many store requests to run at the same time.

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

Proxy used for store requests. Residential proxies are the default.

## Actor input object example

```json
{
  "searchQueries": [
    "nutella"
  ],
  "startUrls": [
    {
      "url": "https://spesaonline.esselunga.it/commerce/nav/supermercato/store/menu/600000001047175/frutta"
    }
  ],
  "includeProductDetails": false,
  "maxItems": 10,
  "maxConcurrency": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset of Esselunga products.

## `runStats` (type: `string`):

Record count and run timestamps.

# 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 = {
    "searchQueries": [
        "nutella"
    ],
    "startUrls": [
        {
            "url": "https://spesaonline.esselunga.it/commerce/nav/supermercato/store/menu/600000001047175/frutta"
        }
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("datascrapers/esselunga-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 = {
    "searchQueries": ["nutella"],
    "startUrls": [{ "url": "https://spesaonline.esselunga.it/commerce/nav/supermercato/store/menu/600000001047175/frutta" }],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("datascrapers/esselunga-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 '{
  "searchQueries": [
    "nutella"
  ],
  "startUrls": [
    {
      "url": "https://spesaonline.esselunga.it/commerce/nav/supermercato/store/menu/600000001047175/frutta"
    }
  ],
  "maxItems": 10
}' |
apify call datascrapers/esselunga-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datascrapers/esselunga-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/4Ekyc6xpujjjGIWOt/builds/eyDsnXbOAl05akrf6/openapi.json
