# REWE Scraper (Lieferung)

Scrape product title, description, price, etc from REWE by keywords.

- Template page: [https://www.octoparse.com/template/rewe-scraper](https://www.octoparse.com/template/rewe-scraper)
- Categories: E-Commerce
- Status: `PUBLISHED`
- Run mode: `BOTH`

## Pricing

Free.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from detail pages.

## Output

The current workflow extracts 5 fields, including `Beschreibung`, `Preis`, `Produkt_Titel`, `Produkt_url`, `Schlüsselwort`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete Keywords (up to 100), Zip Code and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### Keywords (up to 100)

Required. Schlüsselwörter Constraints: minItems=1; maxItems=100; items.minLength=1; items.maxLength=1000.

### Zip Code

Required. Enter a zipcode for delivery

## How to Use

# REWE Scraper (Lieferung) Usage Guide

Data source: [Rewe](https://shop.rewe.de/).

## Pricing

This template currently has no per-line charge. Octoparse plan or resource limits may still apply.

## Inputs

- `Keywords (up to 100)` — required; enter one value per line.
- `Zip Code` — required.

## Output Fields

Returns these fields:

- `Schlüsselwort`
- `Produkt_url`
- `Produkt_Titel`
- `Beschreibung`
- `Preis`

## How to Use

1. Open the template and select **Try it** or **Start**.
2. Enter `Keywords (up to 100)` and `Zip Code`.
3. Choose a local or cloud run.
4. Review the output rows and export or process the structured data.

## Limitations

- Collects only the fields listed above from search results pages; it does not add data that Rewe does not display.
- `Produkt_Titel`, `Beschreibung`, and `Preis` can be empty when the source record does not provide them.
- For deeper detail-page data, use a detail-page template.

## Scheduling and Export

- Schedule runs locally or in the cloud and export collected data from Octoparse.
- Export to CSV, Excel, JSON, databases, or cloud storage, or send to reporting and AI workflows through Octoparse OpenAPI or the [AgentTools API](https://www.octoparse.com/docs/en/api-reference/agenttools-api/search-templates).
- Local scheduled runs require your computer and Octoparse to stay open.
- Scheduling and API access may require a paid Octoparse plan.

## Tips

- Start with one or a few inputs and review returned rows before scaling the task.
- Use the most specific valid `Keywords` to reduce unrelated or duplicate records.
- Use a stable URL or identifier from `Schlüsselwort`, `Produkt_url`, `Produkt_Titel`, `Beschreibung`, and `Preis` as the deduplication key when available.

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [Bic Camera Search Results Scraper](https://www.octoparse.com/template/bic-camera-search-results-scraper)
- [Google Search Scraper](https://www.octoparse.com/template/google-search-scraper)
- [Google Maps Listings Scraper (by Keywords)](https://www.octoparse.com/template/google-maps-scraper-listing-page-by-keyword)
- [Google Maps Email Scraper & Extractor](https://www.octoparse.com/template/google-maps-contact-scraper)
- [Google Maps Leads Scraper](https://www.octoparse.com/template/google-maps-scraper-store-details-by-keyword)

## Input Schema

```json
{
  "title": "REWE Scraper (Lieferung) input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "keywords": {
      "title": "Keywords (up to 100)",
      "description": "Schlüsselwörter",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1000
      },
      "minItems": 1,
      "maxItems": 100,
      "x-octoparse": {
        "apiEnabled": true
      }
    },
    "zip_Code": {
      "title": "Zip Code",
      "description": "Enter a zipcode for delivery",
      "type": "string",
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "keywords",
    "zip_Code"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "keywords": [
    "rotwein"
  ],
  "zip_Code": "10115"
}
```

Example 2

```json
{
  "keywords": [
    "rotwein"
  ],
  "zip_Code": "10115"
}
```

Example 3

```json
{
  "keywords": [
    "rotwein"
  ],
  "zip_Code": "10115"
}
```

Example 4

```json
{
  "keywords": [
    "rotwein"
  ],
  "zip_Code": "10115"
}
```

Example 5

```json
{
  "keywords": [
    "rotwein"
  ],
  "zip_Code": "10115"
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "Beschreibung": {
      "type": "string",
      "description": ""
    },
    "Preis": {
      "type": "string",
      "description": ""
    },
    "Produkt_Titel": {
      "type": "string",
      "description": ""
    },
    "Produkt_url": {
      "type": "string",
      "description": ""
    },
    "Schlüsselwort": {
      "type": "string",
      "description": ""
    }
  },
  "title": "REWE Scraper (Lieferung) output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

Example 1

```json
{
  "Beschreibung": "100g (1 kg = 38,90 €)",
  "Preis": "bis 27.11.2026\n3,89 €",
  "Produkt_Titel": "Seeberger Mangos ungezuckert 100g",
  "Produkt_url": "https://www.rewe.de/shop/p/seeberger-mangos-ungezuckert-100g/700089",
  "Schlüsselwort": ""
}
```

Example 2

```json
{
  "Beschreibung": "276g (1 kg = 15,54 €)",
  "Preis": "bis 27.11.2026\n4,29 €",
  "Produkt_Titel": "Milka Schokolade Peanut Caramel 276g",
  "Produkt_url": "https://www.rewe.de/shop/p/milka-schokolade-peanut-caramel-276g/2830955",
  "Schlüsselwort": ""
}
```

Example 3

```json
{
  "Beschreibung": "500ml (1 l = 16,78 €)",
  "Preis": "bis 30.10.2026\n8,39 €",
  "Produkt_Titel": "De Cecco Bio Natives Olivenöl Extra 500ml",
  "Produkt_url": "https://www.rewe.de/shop/p/de-cecco-bio-natives-olivenoel-extra-500ml/8475575",
  "Schlüsselwort": ""
}
```

Example 4

```json
{
  "Beschreibung": "330ml (1 l = 10,88 €)",
  "Preis": "bis 04.09.2026\n3,59 €",
  "Produkt_Titel": "Magnum Mini Classic - Almond - White Chocolate 330ml",
  "Produkt_url": "https://www.rewe.de/shop/p/magnum-mini-classic-almond-white-chocolate-330ml/7608743",
  "Schlüsselwort": ""
}
```

Example 5

```json
{
  "Beschreibung": "500ml (1 l = 16,98 €)",
  "Preis": "bis 07.08.2026\n8,49 €",
  "Produkt_Titel": "De Cecco Bio Natives Olivenöl Extra 500ml",
  "Produkt_url": "https://www.rewe.de/shop/p/de-cecco-bio-natives-olivenoel-extra-500ml/8475575",
  "Schlüsselwort": ""
}
```

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

```json
{
  "templateName": "rewe-scraper",
  "taskName": "REWE Scraper (Lieferung)",
  "parameters": "{\"keywords\":[\"rotwein\"],\"zip_Code\":\"10115\"}"
}
```

## Python Example

```python
import json
import requests

OPENAPI_BASE = "https://openapi.octoparse.com"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

parameters = json.loads("{\"keywords\":[\"rotwein\"],\"zip_Code\":\"10115\"}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "rewe-scraper",
        "taskName": "REWE Scraper (Lieferung)",
        "parameters": json.dumps(parameters, ensure_ascii=False),
    },
    timeout=60,
)
print(response.status_code)
print(response.json())
```

## HTTP/cURL Example

```bash
curl -X POST "https://openapi.octoparse.com/api/agentTools/executeTask" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "templateName": "rewe-scraper",
  "taskName": "REWE Scraper (Lieferung)",
  "parameters": "{\"keywords\":[\"rotwein\"],\"zip_Code\":\"10115\"}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `rewe-scraper`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/rewe-scraper.json)
- [Manifest](https://www.octoparse.com/templates/rewe-scraper-manifest.json)
