# REWE Scraper | German Grocery Prices by Store (`ratatoskr/rewe-scraper`) Actor

Scrape a REWE store's whole catalogue by postcode: name, brand, EAN barcode, store price, unit price, deposit, offers with old price and end date, category and image, as clean JSON. Search terms and categories too. No login.

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

## Pricing

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

## REWE Scraper | German Grocery Prices by Store

Scrape **REWE's catalogue** as clean JSON. Give a German postal code and get that store's own prices: name, brand, EAN barcode, price, unit price, deposit, offers with old price and end date, category and image. A whole store in one run, in minutes. No login and no proxy to set up.

### What you get

| Field | Example |
|---|---|
| `name`, `brand`, `packSize` | Bio Ingwer ca. 120g, REWE Bio, 1 Stück ca. 120 g |
| `ean` | 4046700500965 |
| `price`, `currency` | 0.59, EUR |
| `wasPrice`, `discountPercent`, `offerUntil` | 0.95, 37, 2026-11-07 |
| `unitPrice`, `unitOfMeasure` | 4.9, kg (a pack of exactly 1 kg or 1 l has its price here; empty when REWE states none, mostly for products sold by the piece) |
| `deposit` | 0.15 |
| `inPromo`, `tags` | true, Angebote, Bio |
| `category`, `categoryPath` | Frischmilch |
| `image`, `url`, `productId`, `merchant` | |
| `marketId`, `marketCity`, `marketPostcode` | 3200008, Köln, 50667 (the store's own postal code, which can differ from the one you entered) |

### Prices are per store

REWE sets prices and range per store, so every row names its store. The run uses the nearest store with pickup for your postal code. The others nearby are listed in the run's log, one per line, and in the `STORES` record of the run's key-value store, with id, street and city. Put one of those ids in **Store id** to choose.

### Input

| Field | What it does |
|---|---|
| `postalCode` | German postal code, such as `50667`. |
| `marketId` | Optional. A specific store near that postal code. |
| `searchTerms` | Optional. Only products matching these terms. |
| `categories` | Optional. Category slugs, such as `kaese-eier-molkerei` (list below). With search terms as well, each term is searched inside these categories only. |
| `offersOnly` | Only products on offer at this store. |
| `includeUnpriced` | Also return products the store lists without a price. |
| `maxItems` | Stop after this many products. Default 100 when left empty; set higher (e.g. `100000`) for the whole store. |

```json
{ "postalCode": "50667", "searchTerms": ["kaffee"], "maxItems": 200 }
```

**Tip for a narrow goal:** a search term matches widely (`kaffee` also returns ready-to-drink iced coffee from the chilled shelf). Add a category to keep only what you want, or use a narrower category on its own:

```json
{ "postalCode": "10115", "searchTerms": ["kaffee"], "categories": ["kaffee-tee-kakao"], "maxItems": 30 }
```

### Categories

The top-level slugs, from REWE's own category list: `obst-gemuese`, `fleisch-wurst-fisch`, `kaese-eier-molkerei`, `tiefkuehlkost`, `backwaren-cerealien-aufstriche`, `kochen-backen`, `oele-sossen-gewuerze`, `fertiggerichte-konserven`, `suesses-salziges`, `kaffee-tee-kakao`, `getraenke-genussmittel`, `drogerie-gesundheit`, `baby-kind`, `tierbedarf`, `kueche-haushalt`, `haus-freizeit`, and the themed lists `monatshighlights`, `bewusste-ernaehrung`, `regional` and `weihnachtswelt` (seasonal ones come and go). Narrower categories work too, such as `kaffee` inside `kaffee-tee-kakao`.

### Pricing

Pay per product, with no monthly fee. You pay only for the rows you receive.

Not affiliated with or endorsed by REWE.

# Actor input Schema

## `postalCode` (type: `string`):

German postal code. The nearest REWE store with pickup is used, and prices are that store's own.

## `marketId` (type: `string`):

A specific store near that postal code. Every row names its marketId; a run lists the stores nearby in its log, one per line, and in the STORES record of its key-value store.

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

Only products matching these terms, e.g. \["kaffee", "schokolade"]. With categories as well, each term is searched inside those categories only. Leave both empty for the whole store.

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

Category slugs, e.g. "kaese-eier-molkerei" or "kaffee-tee-kakao". The README lists the top-level ones; narrower ones such as "kaffee" work too.

## `offersOnly` (type: `boolean`):

Only products on offer at this store.

## `includeUnpriced` (type: `boolean`):

Also return products the store lists without a price.

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

Stop after this many products. Leave empty for 100. Set higher (e.g. 100000) to take the whole store.

## Actor input object example

```json
{
  "postalCode": "50667",
  "offersOnly": false,
  "includeUnpriced": false,
  "maxItems": 100
}
```

# Actor output Schema

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

One row per product: name, brand, EAN, store price, unit price, deposit, offer and category.

# 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 = {
    "postalCode": "50667",
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("ratatoskr/rewe-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 = {
    "postalCode": "50667",
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("ratatoskr/rewe-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 '{
  "postalCode": "50667",
  "maxItems": 100
}' |
apify call ratatoskr/rewe-scraper --silent --output-dataset

```

## MCP server setup

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