# Alcampo Spain Scraper — Groceries, Prices & Offers (`studio-amba/alcampo-es-scraper`) Actor

Scrape the Alcampo Spain online grocery shop by keyword or category: product names, prices in EUR, unit prices, promotions and brands. No login or cookies.

- **URL**: https://apify.com/studio-amba/alcampo-es-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 $4.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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## Alcampo Spain Scraper

Scrape the Alcampo Spain online grocery shop (compraonline.alcampo.es) by keyword or category and get clean, structured product data: names, brands, prices, unit prices and promotions.

Alcampo is the Spanish arm of Auchan, one of Europe's largest hypermarket chains. Its online shop runs on the Ocado Smart Platform and server-renders every product listing, so this actor reads the page directly — no login, no cookies, no browser required.

### Why use this actor?

If you track grocery prices, build a price-comparison tool, monitor promotions, or feed a market-research dataset, you need structured product data you can rely on. This actor turns any Alcampo search or category page into a table of products with prices in EUR, unit prices, and promotion details.

Typical users:

- Price-intelligence and price-comparison platforms tracking Spanish retail.
- Brands and suppliers monitoring how their products are listed and promoted at Alcampo.
- Market researchers and analysts building grocery datasets across Spain.
- Developers who need a clean product feed instead of scraping HTML themselves.

### How to scrape Alcampo Spain data

1. Open the actor in the Apify Console.
2. Enter a **search query** in Spanish — for example `leche`, `pan` or `aceite`. This returns Alcampo's top 50 matching products.
3. Alternatively, set a **category URL** (e.g. a leaf category like `https://www.compraonline.alcampo.es/categories/leche-entera/OCEntera`) to scrape that category's entire product set instead of a keyword search.
4. Set **maxResults** to how many products you want.
5. Leave the proxy on the default Apify setting and click **Start**.
6. When the run finishes, download the results as JSON, CSV, Excel or feed them to an API.

The actor fetches the server-rendered listing page, parses every product card, then visits each product's page to pick up brand and category details before writing one clean record per product.

### Input

| Field | Type | Required | Description |
|-------|------|----------|--------------|
| `searchQuery` | String | No | Keyword to search in Spanish (default: `leche`). Returns up to 50 results. |
| `categoryUrl` | String | No | Full category leaf URL to scrape its entire product set. Takes priority over `searchQuery`. |
| `maxResults` | Integer | No | Maximum products to return (default: 100) |
| `proxyConfiguration` | Object | No | Apify proxy settings (default Apify proxy works) |

#### Example input

```json
{
    "searchQuery": "leche",
    "maxResults": 20,
    "proxyConfiguration": { "useApifyProxy": true }
}
````

### Output

Each result contains:

| Field | Type | Example |
|-------|------|---------|
| `productName` | String | `"L.R. Leche entera 6 x 1 l."` |
| `brand` | String | `"L.R."` |
| `price` | Number | `5.70` |
| `currency` | String | `"EUR"` |
| `pricePerUnit` | String | `"0,95 € por litro"` |
| `originalPrice` | Number | `6.50` |
| `discount` | String | `"-12%"` |
| `sku` | String | `"99193"` |
| `imageUrl` | String | Primary product image URL |
| `url` | String | Full product page URL |
| `scrapedAt` | String | ISO 8601 timestamp |

`originalPrice` and `discount` are present only on promoted products.

### Example output

```json
{
    "productName": "L.R. Leche entera 6 x 1 l.",
    "brand": "L.R.",
    "price": 5.70,
    "currency": "EUR",
    "pricePerUnit": "0,95 € por litro",
    "sku": "99193",
    "imageUrl": "https://www.compraonline.alcampo.es/images-v3/37ea0506-72ec-4543-93c8-a77bb916ec12/eb6553ac-fc96-4ae4-b258-d0edea51cc71/500x500.jpg",
    "url": "https://www.compraonline.alcampo.es/products/l-r-leche-entera-6-x-1-l/99193",
    "scrapedAt": "2026-07-13T09:00:00.000Z"
}
```

### Notes and limitations

- Prices are the current online-shop prices in EUR.
- **Search caps at 50 results.** Alcampo's search page ignores the `?page=` parameter (verified: page 2 returns the same 50 products as page 1). To scrape more than 50 items for a topic, use `categoryUrl` to target a specific leaf category page, which renders its full product set in one page.
- **EAN / barcode is not exposed** anywhere on the Alcampo storefront (listing or product page), so it is not included in the output.
- `originalPrice` and `discount` appear only when a product is on promotion.

### Cost

Pricing is pay-per-result. A typical search or category run of 20–100 products completes in under a minute, so most runs cost only a few cents in Apify platform usage plus the per-result fee.

### Related Scrapers

Build a complete view of European grocery retail with these sibling scrapers from Studio AMBA:

- **[Monoprix France Scraper](https://apify.com/studio-amba/monoprix-fr-scraper)** — French supermarket products on the same platform (monoprix.fr).
- **[BILLA Austria Scraper](https://apify.com/studio-amba/billa-at-scraper)** — Austrian supermarket products and prices (billa.at).
- **[Mercadona Scraper](https://apify.com/studio-amba/mercadona-scraper)** — Spain's largest supermarket (mercadona.es).
- **[Dia ES Scraper](https://apify.com/studio-amba/dia-es-scraper)** — Spanish supermarket products and prices (dia.es).
- **[Continente PT Scraper](https://apify.com/studio-amba/continente-pt-scraper)** — Portuguese groceries with EAN barcodes (continente.pt).

# Actor input Schema

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

Keyword to search the Alcampo catalogue in Spanish (e.g. 'leche', 'pan', 'aceite'). Returns up to 50 results — Alcampo's search does not paginate past the first 50.

## `categoryUrl` (type: `string`):

Full Alcampo category leaf URL (e.g. https://www.compraonline.alcampo.es/categories/leche-entera/OCEntera) to scrape its ENTIRE product set instead of a keyword search. Takes priority over searchQuery if both are set.

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

Maximum number of products to return.

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

Apify proxy settings. Default Apify (datacenter) proxy works — Alcampo is served via CloudFront with no anti-bot detected.

## Actor input object example

```json
{
  "searchQuery": "leche",
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": 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 = {
    "searchQuery": "leche",
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/alcampo-es-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": "leche",
    "maxResults": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/alcampo-es-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": "leche",
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call studio-amba/alcampo-es-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=studio-amba/alcampo-es-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Alcampo Spain Scraper — Groceries, Prices & Offers",
        "description": "Scrape the Alcampo Spain online grocery shop by keyword or category: product names, prices in EUR, unit prices, promotions and brands. No login or cookies.",
        "version": "0.1",
        "x-build-id": "7Gr01wYpiyiAyl9dO"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/studio-amba~alcampo-es-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-studio-amba-alcampo-es-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/studio-amba~alcampo-es-scraper/runs": {
            "post": {
                "operationId": "runs-sync-studio-amba-alcampo-es-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/studio-amba~alcampo-es-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-studio-amba-alcampo-es-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "searchQuery": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "Keyword to search the Alcampo catalogue in Spanish (e.g. 'leche', 'pan', 'aceite'). Returns up to 50 results — Alcampo's search does not paginate past the first 50."
                    },
                    "categoryUrl": {
                        "title": "Category URL (optional)",
                        "type": "string",
                        "description": "Full Alcampo category leaf URL (e.g. https://www.compraonline.alcampo.es/categories/leche-entera/OCEntera) to scrape its ENTIRE product set instead of a keyword search. Takes priority over searchQuery if both are set."
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Maximum number of products to return.",
                        "default": 100
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Apify proxy settings. Default Apify (datacenter) proxy works — Alcampo is served via CloudFront with no anti-bot detected."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
