# Otto.de Product Scraper (Pay Per Result) (`123webdata/otto-scraper`) Actor

A scraper for Otto.de to extract product data from both individual product URLs and category pages. Good for AI training, pricing, analytics, integrations. Results available: JSON, CSV, XLSX etc.

- **URL**: https://apify.com/123webdata/otto-scraper.md
- **Developed by:** [Milán Vásárhelyi](https://apify.com/123webdata) (community)
- **Categories:** E-commerce, Integrations, AI
- **Stats:** 27 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$5.00 / 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/actors/running/actors-in-store.md#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

## Otto.de Scraper

This actor scrapes product data from [Otto.de](https://www.otto.de/), a popular German e-commerce website.

### Issues and feature requests

If you encounter any issue, or you'd like us to change or add anything, please open an issue in the actor page or write to us directly at hello@123webdata.com

### Output Example (simplified)

The actor provides a convenient overview mode that displays the most important product information in a tabular format. Here's an example of how the data looks in the overview mode:

| Image | Product URL | Product Name | Current Price | Regular Price | Currency | Description | Scraped At |
|-------|-------|-------|-------|-------|-------|-------|-------|
| <img src="https://i.otto.de/i/otto/ed25a8d3-9335-58de-a00d-0c9bb2a264d9/icepeak-funktionsjacke-d-funktionsjacke-adenau-1-st-wasserdicht-winddicht-spargel.jpg?$formatz$" style="max-width: 100px; max-height: 100px; object-fit: contain;"> | https://www.otto.de/p/icepeak-funktionsjacke-d-funktionsjacke-adenau-1-st-wasserdicht-winddicht-C1653315698/#variationId=1871899105 | Funktionsjacke D FUNKTIONSJ... | 60.79 | 63.99 | EUR | D FUNKTIONSJACKE ADENAU von... | 2025-07-21 |
| <img src="https://www.otto.de/product-richcontent/images/hmmh_apple_0195949040733_wallpaper0_mobile.jpg" style="max-width: 100px; max-height: 100px; object-fit: contain;"> | https://www.otto.de/p/apple-iphone-15-plus-smartphone-17-cm-6-7-zoll-128-gb-speicherplatz-48-mp-kamera-1786937979/#alternative\&seoRedirect=threeWord\&seoRedirectOrigin=S0F7Q0B4 | iPhone 15 Plus Smartphone | 787.42 | 828.86 | EUR | Die Dynamic Island kommt au... | 2025-07-21 |

### Features

- Scrapes detailed product information from Otto.de product pages
- Extracts data from both individual product URLs and category pages
- Follows pagination links on category pages (optional)
- Supports various product categories with specific fields like brand, price, and category

### Input

The actor accepts the following input parameters:

| Field | Type | Description |
|-------|------|-------------|
| `productUrls` | array | List of Otto.de product URLs to scrape |
| `categoryUrls` | array | List of Otto.de category URLs to scrape |
| `maxResultsPerScrape` | integer | Maximum number of results to extract (default: 1000) |
| `usePagination` | boolean | Whether to follow pagination links on category pages (default: true) |

### Output Example (full)

The actor outputs data in the following structure:

```json
{
	"url": "https://www.otto.de/p/icepeak-funktionsjacke-d-funktionsjacke-adenau-1-st-wasserdicht-winddicht-C1653315698/#variationId=1871899105",
	"name": "Funktionsjacke D FUNKTIONSJACKE ADENAU",
	"price": 60.79,
	"regular_price": 63.99,
	"currency": "EUR",
	"in_stock": null,
	"sku": "2283122146",
	"mpn": null,
	"gtin": "6438581368792",
	"brand": "ICEPEAK",
	"breadcrumbs": [
		"Startseite",
		"Damen-Mode",
		"Bekleidung",
		"Jacken",
		"Übergangsjacken"
	],
	"main_image": "https://i.otto.de/i/otto/ed25a8d3-9335-58de-a00d-0c9bb2a264d9/icepeak-funktionsjacke-d-funktionsjacke-adenau-1-st-wasserdicht-winddicht-spargel.jpg?$formatz$",
	"images": [],
	"description": "D FUNKTIONSJACKE ADENAU von ICEPEAK\nWasser- und winddicht, atmungsaktiv, schnell trocknend\nAlle Nähte sind verschweißt\nVerstellbare Ärmelbündchen\nVerlängerter und schützender Rückensaum, Zwei Reißverschlusstaschen vorne, Reißverschlusstasche innen",
	"color": "SPARGEL",
	"size": "S (34)",
	"material": "Ober100% Polyester. Futter: 100% Polyester, wasserabweisend, winddicht",
	"style": null,
	"features": [
		"D FUNKTIONSJACKE ADENAU von ICEPEAK",
		"Wasser- und winddicht, atmungsaktiv, schnell trocknend",
		"Alle Nähte sind verschweißt",
		"Verstellbare Ärmelbündchen",
		"Verlängerter und schützender Rückensaum, Zwei Reißverschlusstaschen vorne, Reißverschlusstasche innen"
	],
	"attributes": {
		"größe": "S (34)",
		"artikel-nr.": "2283122146",
		"farbe": "SPARGEL",
		"materialeigenschaften": "wasserabweisend, winddicht",
		"wassersäule": "5000 mm",
		"atmungsaktivität": "5000 g/m²/24h",
		"pflegehinweise": "Maschinenwäsche",
		"stil": "sportlich",
		"ausschnitt": "hoch geschlossener Ausschnitt",
		"ärmel": "Langarm",
		"ärmelabschlussdetails": "mit verstellbarem Klettverschluss",
		"kapuze": "mit Kapuze",
		"kapuzendetails": "mit Kordelzug",
		"applikationen": "Logoschriftzug",
		"besondere merkmale": "Wasserdicht & Winddicht",
		"obermaterial": "100% Polyester. Futter: 100% Polyester"
	},
	"rating_value": 4.5,
	"review_count": 15,
	"canonical_url": "https://www.otto.de/p/icepeak-funktionsjacke-d-funktionsjacke-adenau-1-st-wasserdicht-winddicht-C1653315698/",
	"scraped_at": "2025-07-21T12:10:38.908Z"
}
```

### Use Cases

- Monitoring product prices on the German market
- Analyzing product availability and trends
- Tracking price changes over time
- Market research and competitive analysis

# Actor input Schema

## `productUrls` (type: `array`):

List of Otto.de product URLs to scrape.

## `categoryUrls` (type: `array`):

List of Otto.de category URLs to scrape. The scraper will extract all product URLs from these pages.

## `maxResultsPerScrape` (type: `integer`):

Maximum number of results to extract. Default is 20.

## `usePagination` (type: `boolean`):

Whether to follow pagination links on category pages.

## Actor input object example

```json
{
  "productUrls": [
    "https://www.otto.de/p/icepeak-funktionsjacke-d-funktionsjacke-adenau-1-st-wasserdicht-winddicht-C1653315698/#variationId=1871899105"
  ],
  "categoryUrls": [
    "https://www.otto.de/damen/mode/jacken/uebergangsjacken/"
  ],
  "maxResultsPerScrape": 20,
  "usePagination": true
}
```

# 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 = {
    "productUrls": [
        "https://www.otto.de/p/icepeak-funktionsjacke-d-funktionsjacke-adenau-1-st-wasserdicht-winddicht-C1653315698/#variationId=1871899105"
    ],
    "categoryUrls": [
        "https://www.otto.de/damen/mode/jacken/uebergangsjacken/"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("123webdata/otto-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 = {
    "productUrls": ["https://www.otto.de/p/icepeak-funktionsjacke-d-funktionsjacke-adenau-1-st-wasserdicht-winddicht-C1653315698/#variationId=1871899105"],
    "categoryUrls": ["https://www.otto.de/damen/mode/jacken/uebergangsjacken/"],
}

# Run the Actor and wait for it to finish
run = client.actor("123webdata/otto-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 '{
  "productUrls": [
    "https://www.otto.de/p/icepeak-funktionsjacke-d-funktionsjacke-adenau-1-st-wasserdicht-winddicht-C1653315698/#variationId=1871899105"
  ],
  "categoryUrls": [
    "https://www.otto.de/damen/mode/jacken/uebergangsjacken/"
  ]
}' |
apify call 123webdata/otto-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,123webdata/otto-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/ZlaWfwwsiRY7wTaO0/builds/z4f41df7cjPWUe0Cp/openapi.json
