# Naturalia Scraper | Organic Grocery Prices & EANs (`ratatoskr/naturalia-scraper`) Actor

Scrape Naturalia (naturalia.fr) organic groceries: EAN barcode, price, brand, manufacturer, category, availability, image and description, as clean JSON. Whole catalogue, categories or search. No login.

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

## Pricing

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

## Naturalia Scraper | Organic Grocery Prices & EANs

Turn Naturalia's online organic catalogue into clean, structured JSON. Naturalia has been France's organic pioneer since 1973; this Actor reads its shop and returns one row per product, ready for a spreadsheet, a database or a price-monitoring pipeline.

### What you get

Read from product pages (the default), every row carries:

- **EAN (barcode / gtin13)**: match the same product across shops and datasets
- **Price** in EUR, the price Naturalia shows online, and the **regular price** it strikes through while a promotion runs
- **Name, brand and manufacturer**
- **Category** (the product's own, most specific category) and **category path** (the full rayon path, from the top down)
- **Availability** (in stock / out of stock)
- **Product image** and **product-page URL**
- **Stable product id** and SKU, so rows line up run to run
- **Description** and the time it was scraped

With **Fast prices from the listings** turned on, rows come from the listing cards instead. They carry the price, the regular price during a promotion, name, brand, the category the card names, image, link, product id, SKU and the time scraped, but no EAN, manufacturer, category path or description, and as a rule no availability (with no store chosen, the cards say nothing about stock). Each row's `source` says which it is: `product` or `listing`.

Output is a flat JSON table: open it in the dataset tab, or pull it from the API in JSON, CSV, Excel or HTML.

### What you can scrape

- **The whole catalogue**: leave the inputs empty and set **Max products per category or search term** above the catalogue's size (100000 for everything; it is 100 by default). Read from product pages, all of Naturalia's roughly 6,100 products take from about 35 minutes to two hours (after the first hundred or so pages the shop is read through residential IPs, whose speed varies), so give the run a timeout of at least three hours (the run's options, Timeout). With **Fast prices from the listings** they take about seven minutes.
- **One or more categories**: paste a category page URL from naturalia.fr, or the path after `naturalia.fr/`, like `epicerie-sucree/chocolats-bio` or a whole rayon like `boissons`. Top-level rayons include `epicerie-sucree`, `epicerie-salee`, `boissons`, `produits-frais`, `fruits-et-legumes`, `cave-et-boissons-alcoolisees`, `bebe` and `hygiene-beaute`.
- **Search terms**: get exactly the products Naturalia's own search returns for `cafe`, `chocolat`, `kombucha`, and so on.

**Fast prices from the listings** reads products from the category and search listings instead of their own pages: about 36 products a request instead of one, so the whole catalogue takes about seven minutes instead of up to two hours. Those rows have the price, the regular price during a promotion, name, brand, image and link, but no EAN, description, manufacturer or category path, and `source` says `listing`. Leave it off for EANs.

**Max products per category or search term** applies to each category and each search term separately (and to the run as a whole for the whole catalogue): 100 by default, raise it to pull everything. A product found by two of your inputs is returned once.

When a run ends, its status message gives the count for every category and search term, and names any that returned nothing and why (for example a category path that does not exist on naturalia.fr).

If the run's time limit comes before the end of the list, the Actor stops two minutes before it (less on a run shorter than eight minutes), keeps every product it read and saves its watch if it has one, and the run succeeds with a status message that says it stopped for time (a run that had read nothing by then fails and says so). To get the whole list, run it again with a longer timeout.

### Change tracking

Give a run a **Watch name** and schedule it: every run after the first returns only the products that changed since the
watch's last run (a promotion that started or ended, a price drop or rise, a changed regular price, a product that sold
out or came back, a new product). The watch compares each product's price, the regular price it strikes through during
a promotion and, read from product pages, whether it is in stock. Each changed row carries `changeType`, `changes`,
`previousPrice`, `priceChange`, `priceChangePercent`, `previousPromotion` and `previousSeenAt`, and the dataset's
"Changes since the last run" view shows them first. The first run returns everything as the baseline.

**Fast prices from the listings** is the cheap way to watch the whole catalogue daily: at about 36 products a request,
all of Naturalia's roughly 6,100 products take a few minutes, and on a quiet day you pay only for the few rows that
changed. The listings show the same price and regular price as the product pages, but no stock, so one watch can be
read from the listings every day and from the product pages now and then: switching is never a change by itself, and a
product page's stock is compared with the last product page's.

The watch remembers each product by its id (the same on a product page and in a listing), in a key-value store named
`naturalia-scraper-watch` on your own Apify account, and saves only when a run ends, so a run that fails part-way leaves
the last good state; a product missing from one run stays remembered. Watch a whole category or the whole catalogue
(set **Max products per category or search term** above its size): a list cut short changes at its edge, and a product
the watch has not seen before arrives as new. Different watch names keep separate memories, one per category for
example. Turn off **Only changes** to get every product, each marked with its change or `unchanged`. Unchanged products
are not output, and you pay only for the rows that are.

### Why this Actor

- **No login, no store selection, no setup.** Paste a term or run it empty and go.
- **Fast and lightweight**: plain HTTP, no headless browser.
- **EAN on every product read from its page**, so your data joins cleanly to other grocery sources.
- **Honest runs**: the Actor tells you how many products each input returned and whether it reached the end of the list.

### Example uses

- Track organic-food prices over time
- Monitor a competitor's or supplier's assortment
- Build an organic-grocery price-comparison dataset
- Match products across retailers by EAN
- Feed a market-research or category-analysis model

### Input example

```json
{
  "categories": ["epicerie-sucree/chocolats-bio"],
  "searchTerms": ["cafe"],
  "maxItems": 20
}
```

### Output example

One row from the input example above:

```json
{
  "chain": "naturalia",
  "ean": "3483981902261",
  "name": "Chocolat Noir 75% Coco Passion 100g Bio",
  "brand": "TERRA ETICA",
  "manufacturer": "TERRA ETICA/CAFE MICHEL",
  "price": 4.2,
  "regularPrice": null,
  "currency": "EUR",
  "availability": "InStock",
  "category": "Chocolat noir",
  "categoryPath": ["Epicerie sucrée", "Chocolats", "Chocolat noir"],
  "image": "https://media.naturalia.fr/media/catalog/product/cache/3686627cc6da0f71b11df40a697031d2/3/4/3483981902261.jpg",
  "url": "https://www.naturalia.fr/produit/chocolat-noir-coco-pass-100g",
  "query": "category:epicerie-sucree/chocolats-bio",
  "source": "product"
}
```

`category` is the product's own, most specific category, so products from one category page or search can carry different values (`Chocolat noir`, `Chocolat au lait`). `categoryPath` is its full path, and `query` names the category or search term that returned the row.

### Was the run complete?

A run where one search term or category failed (a category path the shop does not have, or product pages that could
not be read) still ends as SUCCEEDED and keeps, and charges, the products it read; its status message then starts with
"Partly failed:" and names what failed. Every run also saves a short record under the key `OUTPUT` in its default
key-value store, so a scheduled job can check it with one call,
`GET https://api.apify.com/v2/actor-runs/<runId>/key-value-store/records/OUTPUT`:

```json
{ "complete": false, "rows": 15, "parts": [
  { "part": "search \"cafe\"", "status": "cut-by-limit", "rows": 15 },
  { "part": "category \"epicerie-sucree/chocolats\"", "status": "failed", "reason": "category \"epicerie-sucree/chocolats\": category not found on naturalia.fr", "rows": 0 } ] }
```

Each search term and category is one part, `search "<term>"` or `category "<path>"`; with neither the run has one part,
`whole catalogue`. `complete` is true when every part was read as far as you asked: `read-whole`, `cut-by-limit` (your
Max products per category or search term) or `nothing-found`. A part that `failed`, was `stopped-by-time-limit` or
`stopped-by-charge-limit`, or was `not-read` makes it false. `rows` counts the products each part read, those a watch
held back as unchanged included.

### Pricing

Pay per result: a small fixed start fee plus a per-product charge, with volume discounts the more you scrape. You only pay for the products you receive.

# Actor input Schema

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

Category page URLs from naturalia.fr, or the path after naturalia.fr/, such as epicerie-sucree/chocolats-bio or a whole rayon such as boissons. Top-level rayons include epicerie-sucree, epicerie-salee, boissons, produits-frais, fruits-et-legumes, cave-et-boissons-alcoolisees, bebe and hygiene-beaute. Leave empty, with no search terms, for the whole catalogue.

## `searchTerms` (type: `array`):

Only products the site's own search finds for these terms (e.g. cafe, chocolat, kombucha).

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

Stop after this many products for each category and each search term separately, or in total for the whole catalogue. Default 100; enter a higher number such as 100000 for everything. The whole catalogue from product pages takes up to about two hours, so give such a run a timeout of at least three hours; from the listings (below) it takes about seven minutes.

## `fromListings` (type: `boolean`):

Read each product from the category and search listings instead of its own page: about 36 products a request instead of one, so the whole catalogue takes a few minutes. Rows keep the price, the struck price of a promotion, name, brand, image and link, but have no EAN, description, manufacturer or category path (those are only on the product page).

## `watchName` (type: `string`):

Give the watch a name and schedule the run: every run after the first returns only what changed since the last one (a promotion that started or ended, a price drop or rise, a changed regular price, a product that sold out or came back, a new product), each with the previous price and regular price. The first run returns everything as the baseline. It compares each product's price, its struck regular price and, read from product pages, its stock (the listings show none), the same both ways, so one watch can be read from the listings on most days and from the product pages now and then. Watch a whole category or the whole catalogue (Max products above its size): a list cut short changes at its edge. Different names keep separate memories in a key-value store on your own Apify account. Unchanged products are not output, and you pay only for the rows that are.

## `onlyChanges` (type: `boolean`):

With a watch name: output only products that changed. Off: every one, each marked with its change (or unchanged), charged as a row.

## Actor input object example

```json
{
  "categories": [
    "cave-et-boissons-alcoolisees/bieres-bio"
  ],
  "maxItems": 100,
  "fromListings": false,
  "onlyChanges": true
}
```

# Actor output Schema

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

One row per product: EAN, name, brand, price, availability, category and image.

## `changes` (type: `string`):

With a watch: what changed since the watch's last run, with the previous price and offer.

# 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 = {
    "categories": [
        "cave-et-boissons-alcoolisees/bieres-bio"
    ],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("ratatoskr/naturalia-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 = {
    "categories": ["cave-et-boissons-alcoolisees/bieres-bio"],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("ratatoskr/naturalia-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 '{
  "categories": [
    "cave-et-boissons-alcoolisees/bieres-bio"
  ],
  "maxItems": 100
}' |
apify call ratatoskr/naturalia-scraper --silent --output-dataset

```

## MCP server setup

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