# German Supermarket & Drugstore Prices (REWE, dm, Knuspr) (`nkkolev/german-grocery-prices`) Actor

Search products across REWE, dm and Knuspr in one run and get one clean price table: price, discount and end date, unit price, EAN, brand, category. REWE prices come from the store nearest your postcode.

- **URL**: https://apify.com/nkkolev/german-grocery-prices.md
- **Developed by:** [Nikolay Kolev](https://apify.com/nkkolev) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 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.

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

## German Supermarket & Drugstore Prices (REWE, dm, Knuspr)

Search **REWE**, **dm** and **Knuspr** in one run and get one clean price table. Every row has the same columns whichever shop it came from, so you can compare prices across retailers in a spreadsheet straight away.

- **REWE prices for a real store.** Enter a German postcode and you get the shelf prices of the nearest REWE store, including current offers.
- **EAN / GTIN barcodes** for REWE and dm products, so you can match the same product across shops and with your own catalogue.
- **Unit prices** (€ per kg / l) and package sizes, ready for comparisons.
- **Discounts**: regular price, percentage off and the last day of the offer.
- No login, no cookies, no proxies. Pay only for the products you get.

### What you can use it for

- **Brands and manufacturers:** see the shelf price and promotions of your products and competitors' products at German retailers.
- **Price comparison and shopping apps:** feed a product database with current German prices.
- **Market research and inflation tracking:** schedule daily or weekly runs and build a price history.
- **Retail and e-commerce teams:** check how your prices compare with REWE, dm and Knuspr.

### Input

| Field | What it does | Example |
|---|---|---|
| Search terms | Products to search for, in German. Brand names and EANs work too. | `milch`, `kaffee`, `elmex` |
| Retailers | Any of REWE, dm, Knuspr | all three |
| Max products per search term and retailer | Caps the number of results | `100` |
| German postcode | Picks the REWE store nearest to it | `80331` |
| Only discounted products | Returns only products on offer | off |

```json
{
    "queries": ["milch", "kaffee"],
    "retailers": ["rewe", "dm", "knuspr"],
    "maxItemsPerQuery": 100,
    "postcode": "10115",
    "onlyDiscounted": false
}
```

### Output

One row per product:

```json
{
    "retailer": "rewe",
    "productId": "677063",
    "gtin": "4008452027589",
    "name": "Weihenstephan Haltbare Milch 1,5% 1l",
    "brand": "Weihenstephan",
    "price": 1.19,
    "regularPrice": 1.49,
    "discountPercent": 20,
    "discountValidUntil": "2026-11-13",
    "packageSize": "1l",
    "unitPrice": 1.19,
    "unitPriceUnit": "1 l",
    "category": "Käse, Eier & Molkerei > Milch",
    "inStock": true,
    "url": "https://www.rewe.de/shop/p/weihenstephan-haltbare-milch-1-5-1l/677063",
    "imageUrl": "https://img.rewe-static.de/...",
    "storeId": "1931630",
    "storeName": "REWE Markt, Heidestr. 41, 10557 Berlin / Mitte",
    "postcode": "10115",
    "country": "DE",
    "currency": "EUR",
    "query": "milch",
    "scrapedAt": "2026-11-08T18:00:00.000Z"
}
```

Download the results as Excel, CSV or JSON, or fetch them with the Apify API.

#### Field notes

- `price` is the price a normal customer pays today. `regularPrice` is only set when the product is on offer.
- `gtin` (EAN) is filled for REWE and dm. Knuspr does not publish barcodes in search results.
- `memberPrice` (Knuspr only) is the price for Knuspr Premium members, when different.
- dm uses permanent low prices, so dm products rarely have a `regularPrice`.
- REWE prices can differ slightly between stores and regions. Use the postcode to choose the region.

### Pricing

You pay per product returned. There is no monthly fee. Set a maximum cost per run in the run options and the Actor stops when it reaches it.

### Tips

- Run it on a schedule (daily or weekly) to build a price history.
- Use several postcodes in separate runs to compare REWE prices between cities.
- Searching by EAN returns the exact product when the retailer stocks it.

### Limits

- Results follow each shop's own search, so the order and matches are the shop's.
- If a shop changes its website, a source can stop working until the Actor is updated. Report issues in the Issues tab and they are fixed quickly.
- Only publicly visible product and price information is collected. No personal data.

# Actor input Schema

## `queries` (type: `array`):

Product search terms in German, one per line (e.g. milch, kaffee, zahnpasta, a brand name, or an EAN).

## `retailers` (type: `array`):

Which shops to search.

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

Stops each retailer after this many products for each search term.

## `postcode` (type: `string`):

REWE prices differ by store. The run uses the REWE pickup store nearest to this postcode.

## `onlyDiscounted` (type: `boolean`):

Return only products that are currently on offer.

## Actor input object example

```json
{
  "queries": [
    "milch",
    "kaffee"
  ],
  "retailers": [
    "rewe",
    "dm",
    "knuspr"
  ],
  "maxItemsPerQuery": 100,
  "postcode": "10115",
  "onlyDiscounted": false
}
```

# Actor output Schema

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

No description

## `stats` (type: `string`):

No description

# 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 = {
    "queries": [
        "milch",
        "kaffee"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("nkkolev/german-grocery-prices").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 = { "queries": [
        "milch",
        "kaffee",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("nkkolev/german-grocery-prices").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 '{
  "queries": [
    "milch",
    "kaffee"
  ]
}' |
apify call nkkolev/german-grocery-prices --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nkkolev/german-grocery-prices"
        }
    }
}
```

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/bbitvkQZPKsfdI5QW/builds/6i6kjbOrnQAR19Oxh/openapi.json
