# Auchan Scraper | French Grocery Drive Prices (`ratatoskr/auchan-scraper`) Actor

Scrape Auchan drive prices by search term or category: name, brand, price, price per kg or litre, stock and image, as clean JSON. Prices are per drive, so pick a store and every row names it. No login.

- **URL**: https://apify.com/ratatoskr/auchan-scraper.md
- **Developed by:** [ratatoskr](https://apify.com/ratatoskr) (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.30 / 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

## Auchan Scraper | French Grocery Drive Prices

Scrape **Auchan** drive prices as clean structured JSON. Pick a drive, give it search terms or categories, and get the real prices of that store, with brand, price per kg or litre and stock. No login, no account.

### What you get

One row per product, priced for the drive you pick:

| Field | Example |
|-------|---------|
| `name` | AUCHAN Dosettes de café classique intensité 5 compatibles Senseo |
| `brand` | AUCHAN |
| `price` | 6.46 |
| `unitPrice` | 15,60 € / kg |
| `inStock` | true |
| `image` | https://cdn.auchan.fr/media/P020000000014JMPRIMARY_0x0/B2CD/... |
| `productPage` | https://www.auchan.fr/auchan-dosettes-de-cafe-classique-intensite-5-compatibles-senseo/pr-C1424381 |
| `productCode` | C1424381 |
| `productId` | 319391ee-4eb9-4068-8425-c6981be4942b |
| `offerId` | this store's offer of the product |
| `storeReference` | the drive these prices belong to |
| `query`, `source` | the term or category the row came from |

### Input

| Field | What it does |
|-------|--------------|
| `storeReference` | Which drive to price: the number after `/s-` in a drive's address, e.g. `www.auchan.fr/magasins/drive/<name>/s-823` gives `823`. |
| `searchQueries` | Search terms, e.g. `["cafe", "lait"]`. |
| `categories` | Category paths or URLs from the site. |
| `maxItemsPerQuery` | Stop after this many products per term or category. Leave empty for 100; set `100000` to take them all. |
| `maxPages` | Pages to read per term or category, 50 by default. |

Provide at least one of `searchQueries` or `categories`.

```json
{
  "storeReference": "823",
  "searchQueries": ["cafe"],
  "maxItemsPerQuery": 200
}
```

### Output

Each run writes rows to the dataset. Export to JSON, CSV, Excel or the API. Run it for several drives to compare prices between stores.

### Pricing

Pay per product. A run never reads more than its charge limit allows.

*Not affiliated with Auchan. Scrapes publicly available product information.*

# Actor input Schema

## `storeReference` (type: `string`):

Which Auchan drive to price. It is the number after /s- in a drive's URL (e.g. www.auchan.fr/magasins/drive/<name>/s-823 means 823). Prices are per drive.

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

Search terms to scrape, e.g. \["cafe", "lait", "pates"]. Each returns the matching products with their per-store prices.

## `categories` (type: `array`):

Category pages to scrape, by path or URL (e.g. \["/boissons-cafe-the/ca-..."]). Scrapes the whole category across pages.

## `maxItemsPerQuery` (type: `integer`):

Stop after this many products per search term or category. Leave empty for 100; set a higher number (e.g. 100000) to take them all.

## `maxPages` (type: `integer`):

Safety cap on pages walked per search term or category.

## `proxyCountry` (type: `string`):

Optional. Read through a residential IP of this country (ISO code) from the start. Runs choose their connection by themselves, so leave it empty.

## Actor input object example

```json
{
  "storeReference": "823",
  "searchQueries": [
    "cafe"
  ],
  "maxItemsPerQuery": 100,
  "maxPages": 50
}
```

# Actor output Schema

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

One row per product: name, brand, price, pack unit price, stock and image, for the chosen drive.

# 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 = {
    "storeReference": "823",
    "searchQueries": [
        "cafe"
    ],
    "maxItemsPerQuery": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("ratatoskr/auchan-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 = {
    "storeReference": "823",
    "searchQueries": ["cafe"],
    "maxItemsPerQuery": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("ratatoskr/auchan-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 '{
  "storeReference": "823",
  "searchQueries": [
    "cafe"
  ],
  "maxItemsPerQuery": 100
}' |
apify call ratatoskr/auchan-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ratatoskr/auchan-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/kyoxKIJ6zdbGFVZJF/builds/3lhTA7sfQ4GUBWVV1/openapi.json
