# REWE \[Just 💰$0.90] — German Grocery Prices (`blackfalcondata/rewe-scraper`) Actor

💰 $0.90 per 1,000 products. Scrape shop.rewe.de for real prices from your local REWE store — a postal code in and priced products out · unit price per kg and litre · ingredients and nutrition · GTIN and Pfand · Bio and category filters.

- **URL**: https://apify.com/blackfalcondata/rewe-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 1,000 results

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 web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

### What does REWE do?

REWE extracts structured product data from [shop.rewe.de](https://shop.rewe.de) — including current shelf price and campaign flags and multi-resolution product images. It supports keyword search and controllable result limits, so you can run the same query consistently over time. The actor also offers detail enrichment (extra per-record fields the search results omit).

**New to Apify?** [Sign up free](https://console.apify.com/sign-up?fpr=1h3gvi) and use the included $5 monthly platform credit to test this actor.

### Key features

- **📍 Real prices from a real store** — REWE prices and product range differ from store to store. Give a postal code or town — `zipCode: "50667"` — and the nearest priceable store is picked for you, so every row carries that store's actual price and its actual assortment. Leave it empty to browse the whole national catalogue instead (names, brands, GTINs, categories, images) — without prices, because nationally there are none.
- **⚖️ Price per kilo and litre** — every product carries `comparePrice` and `compareUnit` normalised to €/kg, €/l or €/piece alongside the shelf price, so a 500 g pack and a 1 kg pack are directly comparable. A multipack whose size cannot be read unambiguously returns null rather than a misleading number.
- **🥫 Ingredients, nutrition and allergens** — beyond price: the ingredient statement, REWE's own nutrition table, the allergen statement, the manufacturer or responsible party, the GTIN barcode, pack size, deposit (Pfand) and any age restriction — the fields that make a grocery row usable for matching, compliance and analysis.
- **🎛️ The store's own filters** — browse a whole category (`categorySlug: ["h-milch"]`) with or without a keyword, narrow to a brand, or use REWE's own quick filters — Bio, vegan, regional, chilled, frozen, new. `campaignsOnly` returns just what is currently on offer. Sort by price, name or best sellers.
- **🧺 Price a shopping list** — pass `productIds` with matching `quantities` and each product is fetched and priced directly, with a `lineTotal` per row — a basket costed against one specific store, rather than a search you hope contains the items.
- **♻️ Incremental mode** — daily runs emit only products whose price, campaign flag, or validity window changed since the prior run — the rest stay UNCHANGED and are filtered out by default. Perfect for price-tracking apps and tilbud-alert pipelines. Saves 80–95% on recurring monitoring.
- **📦 Compact mode** — drop the heavy fields (ingredients text, full nutrition table, image variants, manufacturer block, label objects, price history) and keep shopping essentials: identity, current price, per-unit price, campaign flags + discount %, parsed unit size + brand, and basket line totals. Cuts each row by ~77% — ideal for AI agents, MCP servers, and LLM context windows where allergen text is noise.
- **🧹 Empty-field stripping** — drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards that already handle missing fields gracefully.
- **📤 Export anywhere** — Download the dataset as JSON, CSV, or Excel from the Apify Console, or stream live via the Apify API and integrations (Make, Zapier, Google Sheets, n8n, …).
- **🔌 MCP connectors** — export your results into Notion via Apify's MCP connectors — a clean run-summary page, no glue code. Opt-in via the App connector field; deterministic field-mapping, no AI. Built on Apify's connector framework, so more destinations open up as their catalog grows.

### What data can you extract from shop.rewe.de?

Each result includes Core product fields (`listingId`, `productId`, `gtin`, `name`, `brand`, `tags`, `grammage`, and `category`, and more) and detail fields when enrichment is enabled (`description` and `detailFetched`). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.

Enable detail enrichment in the input to fetch each record's detail page — extra fields the search results omit.

### Input

The main inputs are a search keyword and a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`query`** — Product search keywords, e.g. "milch", "bio kaffee", "nutella". German terms match best. Use a JSON array for several searches in one run, e.g. \["milch","butter"]. Required if no Start URLs are provided.
- **`zipCode`** — German postal code, town, street or store name — e.g. "50667" or "Köln". The nearest REWE store that can be priced is picked automatically, and every product then comes back with that store’s real price and range. Leave empty to browse the whole national catalogue instead — you still get names, brands, GTINs, categories and images, but no prices, because REWE prices are per-store.
- **`marketId`** — Advanced: an exact REWE market ID, if you already know it. Overrides the postal code above.
- **`categorySlug`** — Browse whole REWE categories instead of (or alongside) a keyword — pass a list, e.g. \["h-milch"] or \["milch", "kaese-eier-molkerei"]. Each category is browsed in full; add a keyword to search inside them instead.
- **`brand`** — Only products from this brand, spelled as REWE spells it, e.g. "REWE Beste Wahl".
- **`attribute`** — Narrow to one of REWE’s own quick filters. (default: `""`)
- **`campaignsOnly`** — Return only products currently on offer. (default: `false`)
- **`inStockOnly`** — Drop products the selected market cannot currently sell. Products whose availability cannot be determined are kept. (default: `false`)
- **`sortBy`** — Order the results. (default: `"RELEVANCE_DESC"`)
- **`productIds`** — Price an exact list of products instead of searching, e.g. "1042422". Each one is fetched and priced directly.
- **`quantities`** — How many of each product above, in the same order. Defaults to 1. Each result then carries its line total.
- **`startUrls`** — Paste REWE search URLs, e.g. https://shop.rewe.de/productList?search=milch. Each URL becomes its own search; results are merged and deduped by product across all URLs. URLs without a search keyword (category browse pages, single product pages) are skipped. (default: `[]`)
- ...and 24 more parameters

### Input examples

**Basic search** — Keyword-driven search with a result cap.

→ Full payload per result — all standard fields populated where the source provides them.

```json
{
  "query": "milch",
  "maxResults": 50
}
```

**Incremental tracking** — Only emit products that changed since the previous run with this `stateKey`.

→ First run builds the baseline state. Subsequent runs emit only records that are new or whose tracked content changed. Set `emitUnchanged: true` to include unchanged records as well.

```json
{
  "query": "milch",
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "milch-tracker"
}
```

**Compact output for AI agents** — Return only core fields for AI-agent and MCP workflows.

→ Small payload with the most important fields — ideal for piping into LLMs without token overhead.

```json
{
  "query": "milch",
  "maxResults": 50,
  "compact": true
}
```

### Output

Each run produces a dataset of structured product records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example product record

```json
{
  "listingId": "a58fa5a29afe7741736d0206d392be17db09a591df28c741680d02556a3310ee",
  "productId": "1042422",
  "gtin": "1042422",
  "name": "Hemme Milch Frische Vollmilch 3,7% 1l",
  "brand": "Hemme Milch",
  "tags": [
    "Gekühlt",
    "Regional"
  ],
  "grammage": "1l",
  "category": "Frischmilch",
  "categoryPath": [
    "Käse, Eier & Molkerei",
    "Milch",
    "Frischmilch"
  ],
  "image": "https://img.rewe-static.de/1042422/8646730_digital-image.png",
  "images": [
    "https://img.rewe-static.de/1042422/8646730_digital-image.png"
  ],
  "price": 1.59,
  "currency": "EUR",
  "isOnSpecial": false,
  "available": false,
  "hasVariants": false,
  "freeShipping": false,
  "merchant": "REWE",
  "url": "https://shop.rewe.de/p/hemme-milch-frische-vollmilch-3-7-1l/1042422",
  "portalUrl": "https://shop.rewe.de/p/hemme-milch-frische-vollmilch-3-7-1l/1042422",
  "searchQuery": "milch",
  "contentQuality": "full",
  "detailFetched": true,
  "scrapedAt": "2026-08-02T16:35:46.897Z",
  "source": "shop.rewe.de",
  "contentHash": "3a4db8814352e2b027449407b99dcebc3ace640cad25471f0cbd515b09567d77"
}
```

### Incremental fields

When incremental mode is on, each record also carries:

- `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`, `REAPPEARED`, `EXPIRED`. Default output covers `NEW` / `UPDATED` / `REAPPEARED`; set `emitUnchanged: true` or `emitExpired: true` to opt into the others.
- `isRepost`, `repostOfId`, `repostDetectedAt` — populated when a new listing matches the tracked content of a previously expired one. Set `skipReposts: true` to drop detected reposts from the output.

### How to scrape shop.rewe.de

1. Go to [REWE](https://apify.com/blackfalcondata/rewe-scraper?fpr=1h3gvi) in Apify Console.
2. Enter a search keyword.
3. Set `maxResults` to control how many results you need.
4. Enable `includeDetails` if you need the extra detail-page fields.
5. Click **Start** and wait for the run to finish.
6. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Extract product data from shop.rewe.de for market research and competitive analysis.
- Track pricing trends across regions and categories over time.
- Monitor new and changed products on scheduled runs without processing the full dataset every time.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.

### How much does it cost to scrape shop.rewe.de?

REWE uses [pay-per-event](https://docs.apify.com/platform/actors/paid-actors/pay-per-event) pricing. You pay a small fee when the run starts and then for each result that is actually produced.

- **Run start:** $0.01 per run
- **Per result:** $0.0009 per product record

Example costs:

- 10 results: **$0.019**
- 25 results: **$0.033**
- 100 results: **$0.1**
- 200 results: **$0.19**
- 500 results: **$0.46**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of products that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 100 products per run, daily polling (30 runs/month). Costs scale linearly with the number of products.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.10 | $0.01 | $0.09 (86%) | $0.43 |
| 15% — moderate broad query | $0.10 | $0.02 | $0.08 (76%) | $0.70 |
| 30% — high-volume aggregator | $0.10 | $0.04 | $0.06 (63%) | $1.11 |

Full re-scrape monthly cost at the same cadence: $3.00. First month with incremental costs $0.52 / $0.78 / $1.17 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage is included in the per-result fee shown above.

### FAQ

#### How many results can I get from shop.rewe.de?

The number of results depends on the search query and available products on shop.rewe.de. Use the `maxResults` parameter to control how many results are returned per run.

#### Does REWE support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed products on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate REWE with other apps?

Yes. REWE works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use REWE with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use REWE through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode, `descriptionMaxLength`, a single `descriptionFormat`, and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape shop.rewe.de?

This actor extracts publicly available data from shop.rewe.de. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/rewe-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [ALDI Scraper — Grocery Prices, 14 Countries](https://apify.com/blackfalcondata/aldi-scraper?fpr=1h3gvi) — Scrape ALDI grocery products and prices across 14 countries — the UK, Ireland, Germany, Austria,.
- [ALDI US Scraper — Grocery Prices by ZIP Code](https://apify.com/blackfalcondata/aldi-us-scraper?fpr=1h3gvi) — Scrape aldi.us grocery products with prices, sizes, brands, categories, per-unit pricing and stock..
- [Bilka \[Just 💰$2\] — Danish Grocery Prices](https://apify.com/blackfalcondata/bilka-scraper?fpr=1h3gvi) — 💰 $2 per 1,000 products. Scrape bilka.dk — Salling Group's Danish hypermarket chain — full product.
- [BILLA Scraper — Austrian Grocery Prices & Promotions](https://apify.com/blackfalcondata/billa-scraper?fpr=1h3gvi) — Scrape shop.billa.at (BILLA Austria) for grocery prices, unit prices and promotions. Search by.
- [Carrefour \[Just 💰$2\] — France Grocery Prices](https://apify.com/blackfalcondata/carrefour-scraper?fpr=1h3gvi) — 💰 $2 per 1,000 products. Scrape carrefour.fr — Carrefour France groceries with current prices ·.
- [Carrefour MAF \[Just 💰$2\] — Groceries (7 Markets)](https://apify.com/blackfalcondata/carrefour-maf-scraper?fpr=1h3gvi) — 💰 $2 per 1,000 items. Scrape Carrefour MAF groceries across 7 Majid Al Futtaim markets — UAE ·.
- [Coop365 \[Just 💰$2\] — Danish discount grocery](https://apify.com/blackfalcondata/coop365-scraper?fpr=1h3gvi) — 💰 $2 per 1,000 products. Scrape 365discount.coop.dk — leaflet names & prices · unit quantities &.
- [Føtex \[Just 💰$2\] — Danish Grocery Prices](https://apify.com/blackfalcondata/foetex-scraper?fpr=1h3gvi) — 💰 $2 per 1,000 products. Scrape foetex.dk — Salling Group's Danish supermarket chain — full.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

### Disclaimer

This actor accesses only publicly available data on shop.rewe.de. You are responsible for how you use the extracted data — in particular any personal information such as names, phone numbers, or email addresses — and for complying with REWE's terms of use, applicable data-protection law (including the GDPR where it applies), and the anti-spam rules of your jurisdiction.

This actor is not affiliated with, endorsed by, or connected to REWE.

### Search keywords

rewe scraper, rewe api, apify rewe, rewe data extraction, shop.rewe.de scraper, shop.rewe.de data, shop.rewe.de api, rewe preise, german grocery prices, supermarket prices germany, rewe angebote, lebensmittel preise, grocery price monitoring germany, rewe produkte.

# Actor input Schema

## `query` (type: `string`):

Product search keywords, e.g. "milch", "bio kaffee", "nutella". German terms match best. Use a JSON array for several searches in one run, e.g. \["milch","butter"]. Required if no Start URLs are provided.

## `zipCode` (type: `string`):

German postal code, town, street or store name — e.g. "50667" or "Köln". The nearest REWE store that can be priced is picked automatically, and every product then comes back with that store’s real price and range. Leave empty to browse the whole national catalogue instead — you still get names, brands, GTINs, categories and images, but no prices, because REWE prices are per-store.

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

Advanced: an exact REWE market ID, if you already know it. Overrides the postal code above.

## `categorySlug` (type: `array`):

Browse whole REWE categories instead of (or alongside) a keyword — pass a list, e.g. \["h-milch"] or \["milch", "kaese-eier-molkerei"]. Each category is browsed in full; add a keyword to search inside them instead.

## `brand` (type: `string`):

Only products from this brand, spelled as REWE spells it, e.g. "REWE Beste Wahl".

## `attribute` (type: `string`):

Narrow to one of REWE’s own quick filters.

## `campaignsOnly` (type: `boolean`):

Return only products currently on offer.

## `inStockOnly` (type: `boolean`):

Drop products the selected market cannot currently sell. Products whose availability cannot be determined are kept.

## `sortBy` (type: `string`):

Order the results.

## `productIds` (type: `array`):

Price an exact list of products instead of searching, e.g. "1042422". Each one is fetched and priced directly.

## `quantities` (type: `array`):

How many of each product above, in the same order. Defaults to 1. Each result then carries its line total.

## `startUrls` (type: `array`):

Paste REWE search URLs, e.g. https://shop.rewe.de/productList?search=milch. Each URL becomes its own search; results are merged and deduped by product across all URLs. URLs without a search keyword (category browse pages, single product pages) are skipped.

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

Maximum total products (0 = unlimited — the whole catalogue for your query).

## `includeDetails` (type: `boolean`):

Fetch each product's own page to add manufacturer, merchant, nutrition table, ingredient and allergen text, and the pre-offer price when an item is reduced. Price, pack size, availability, brand and category come back either way — leave this off for a much faster run when you only need prices.

## `descriptionMaxLength` (type: `integer`):

Truncate the product description to N chars. 0 = no truncation.

## `compact` (type: `boolean`):

Core fields only (for AI-agent/MCP workflows).

## `incrementalMode` (type: `boolean`):

Compare against the previous run and label each product NEW / UPDATED / UNCHANGED / EXPIRED — price moves, promos and stock changes show up as UPDATED. stateKey is optional; it defaults to a value derived from your search inputs so different searches never share state.

## `stateKey` (type: `string`):

Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from search inputs.

## `emitUnchanged` (type: `boolean`):

When incremental, also emit products that have not changed since the last run.

## `emitExpired` (type: `boolean`):

When incremental, also emit products that are no longer found. Turning this on makes the run scan the full result set so disappearances can be detected.

## `skipReposts` (type: `boolean`):

When incremental, skip products whose content matches a product that disappeared in a prior run (cross-run duplicate detection).

## `telegramToken` (type: `string`):

Telegram bot token (from @BotFather). Required for Telegram notifications.

## `telegramChatId` (type: `string`):

Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL. api.slack.com/messaging/webhooks.

## `notificationLimit` (type: `integer`):

Maximum number of products included in each notification message (1–20).

## `notifyOnlyChanges` (type: `boolean`):

When Incremental Mode is on, only send notifications for NEW and UPDATED listings. Has no effect outside incremental mode.

## `whatsappAccessToken` (type: `string`):

WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (service-conversation window — free since Nov 2024).

## `whatsappPhoneNumberId` (type: `string`):

Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set.

## `whatsappTo` (type: `string`):

Recipient phone in E.164 format without + (e.g. "436641234567"). Recipient must have messaged your business number within last 24h.

## `webhookUrl` (type: `string`):

Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends.

## `webhookHeaders` (type: `object`):

Optional JSON object of custom headers (e.g. {"Authorization":"Bearer ..."}).

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results (including any contact details). Best-effort across MCP connectors as Apify expands its catalog.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one.

## `excludeEmptyFields` (type: `boolean`):

Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.

## `descriptionFormat` (type: `string`):

Choose which representation of the listing description to include. `all` keeps every variant; the others keep only the selected one.

## Actor input object example

```json
{
  "query": "milch",
  "zipCode": "50667",
  "attribute": "",
  "campaignsOnly": false,
  "inStockOnly": false,
  "sortBy": "RELEVANCE_DESC",
  "startUrls": [],
  "maxResults": 5,
  "includeDetails": true,
  "descriptionMaxLength": 0,
  "compact": false,
  "incrementalMode": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "skipReposts": false,
  "notificationLimit": 5,
  "notifyOnlyChanges": false,
  "excludeEmptyFields": false,
  "descriptionFormat": "all"
}
```

# Actor output Schema

## `results` (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 = {
    "query": "milch",
    "zipCode": "50667",
    "maxResults": 5,
    "excludeEmptyFields": false,
    "descriptionFormat": "all"
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/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 = {
    "query": "milch",
    "zipCode": "50667",
    "maxResults": 5,
    "excludeEmptyFields": False,
    "descriptionFormat": "all",
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/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 '{
  "query": "milch",
  "zipCode": "50667",
  "maxResults": 5,
  "excludeEmptyFields": false,
  "descriptionFormat": "all"
}' |
apify call blackfalcondata/rewe-scraper --silent --output-dataset

```

## MCP server setup

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