# Otto.de Keyword Search & Category Price Scraper (`dataspryva/otto-de-keyword-search-and-category-price-scraper`) Actor

Search Otto.de by keyword or browse a category path, with price range and sort filters, to get each product's price, discount, rating and availability.

- **URL**: https://apify.com/dataspryva/otto-de-keyword-search-and-category-price-scraper.md
- **Developed by:** [Dataspryva](https://apify.com/dataspryva) (community)
- **Categories:** E-commerce, Automation, SEO tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/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

## Otto.de Keyword Search & Category Price Scraper

Otto.de is one of Germany's largest online shops, spanning fashion, furniture, electronics and homeware. This actor turns its product listings into structured JSON: search by keyword, browse a category, or paste product URLs, then filter by price, rating, brand and sale status.

### What this actor does

- Searches Otto.de by keyword and follows the result list page by page.
- Browses category paths or full category URLs, e.g. `taschen` or `https://www.otto.de/technik/laptop/`.
- Reads individual product pages when you paste product URLs, including description, GTIN, specifications, seller and breadcrumbs.
- Sorts with Otto's own orders: topseller, price up/down, biggest discount, newest and best rated.
- Applies price, minimum-rating, brand and reduced-only filters. Filtered products are not emitted.
- Optionally enriches listing rows with a product-page fetch for full specs and seller data.
- Deduplicates products across pages and sponsored/organic placements.
- Omits fields a product does not have — no nulls or empty strings are written.

### Output per product

| Field | Description |
|---|---|
| `productId` | Otto.de product ID. |
| `variationId` | Variation ID shown on the listing (colour/size). |
| `articleNumber` | Otto article number when the listing supplies one. |
| `title` | Full product title. |
| `brand` | Brand or manufacturer. |
| `price` | Current price, EUR. |
| `currency` | Always `EUR`. |
| `originalPrice` | Struck-through reference price when reduced. |
| `suggestedRetailPrice` | Otto's suggested retail price when shown. |
| `discountPercent` | Discount percentage (Otto's own tag when present, otherwise computed). |
| `discountText` | Discount label as shown, e.g. `-20%`. |
| `onSale` | Whether the tile is marked reduced. |
| `isStartingPrice` | True when the price is shown as "ab" (from). |
| `rating` | Average customer rating, 0–5. |
| `reviewCount` | Number of customer reviews. |
| `imageUrl` | Main product image. |
| `images` | Additional image URLs when available. |
| `productUrl` | Product page URL with the shown variation. |
| `category` | Product category (`pbk`) or the browsed category. |
| `availability` | `inStock`, `outOfStock` or `limitedAvailability`. |
| `deliveryText` | Delivery promise exactly as Otto shows it. |
| `listPosition` | Position on the listing page. |
| `isSponsored` | True for sponsored tiles. |
| `sponsoredPosition` | Sponsored slot when the same product also ranks organically. |
| `ottoUp` | Whether the tile carries the OTTO UP badge. |
| `multipleSizes` | Whether the product has size choices. |
| `colors` | Colour variants with variation ID, name, base colour and hex code. |
| `specs` | Key facts from the tile or full specification table. |
| `sustainabilityBadges` | Sustainability labels Otto shows. |
| `expertReviews` | Expert-test labels shown on the tile. |
| `socialProof` | Popular / almost-sold-out / quality flags. |
| `description` | Product description (detail mode or Fetch product details). |
| `gtin` | GTIN/EAN (detail mode or Fetch product details). |
| `breadcrumbs` | Category breadcrumb trail (detail mode). |
| `seller` | Seller name (detail mode). |
| `sellerId` | Marketplace partner ID (detail mode). |
| `returnInfo` | Return window text (detail mode). |
| `reviews` | Customer reviews rendered on the product page (detail mode). |
| `source` | `search`, `category` or `productUrl`. |
| `searchQuery` | Keyword that produced the row, when applicable. |
| `detailsFetched` | Present when the row was enriched from a product page. |
| `scrapedAt` | ISO 8601 collection timestamp. |

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | String (select) | `searchProducts` | `searchProducts`, `browseCategory` or `productUrls`. |
| `query` | String | – | Keyword for search mode. |
| `searchQueries` | String array | – | Several keywords; each gets an equal share of `maxItems`. |
| `category` | String | – | Category path or full URL for category mode. |
| `categoryUrls` | String array | – | Several categories; each gets an equal share of `maxItems`. |
| `productUrls` | String array | – | Full product URLs for product-URL mode. |
| `sortBy` | String (select) | `topseller` | `topseller`, `preis-aufsteigend`, `preis-absteigend`, `hoechste-reduzierung`, `neuheiten` or `bewertung`. Legacy English values still work. |
| `minPrice` | Integer | – | Minimum price in EUR. |
| `maxPrice` | Integer | – | Maximum price in EUR. |
| `minRating` | Number | – | Minimum rating (1–5); products without reviews are skipped. |
| `onSaleOnly` | Boolean | `false` | Keep only reduced products. |
| `brands` | String array | – | Brand names to keep. |
| `maxItems` | Integer | `20` | Maximum products across all inputs (1–1000). |
| `maxPages` | Integer | `0` | Page cap per input; `0` means until `maxItems` or the end of the list. |
| `fetchDetails` | Boolean | `false` | Open each listing product's page for description, GTIN, specs, seller and reviews. |
| `maxDetailFetches` | Integer | `50` | Cap on product pages opened when `fetchDetails` is on. |

#### Example: keyword search

```json
{
  "mode": "searchProducts",
  "query": "kaffeemaschine",
  "sortBy": "preis-aufsteigend",
  "maxItems": 50
}
```

#### Example: category with filters

```json
{
  "mode": "browseCategory",
  "category": "taschen",
  "minPrice": 50,
  "maxPrice": 200,
  "minRating": 4,
  "onSaleOnly": true,
  "maxItems": 40
}
```

#### Example: product URLs with full details

```json
{
  "mode": "productUrls",
  "productUrls": [
    "https://www.otto.de/p/acer-cboa314-2h-87q3-chromebook-35-56-cm-14-zoll-mediatek-kompanio-540-mali-g52-mc2-4-gb-64-gb-emmc-festplatte-C2091563015/?variationId=2091563016"
  ],
  "maxItems": 1
}
```

### Use cases

- **Price monitoring** — schedule the same search or category and keep each run's `price`, `originalPrice` and `discountPercent`.
- **Category research** — see the brands, price bands and ratings inside a department.
- **Catalog enrichment** — add GTIN, specifications, seller and delivery promises from product pages.
- **Sale tracking** — use `onSaleOnly` and `sortBy=hoechste-reduzierung` to find the biggest discounts.
- **Variant discovery** — read the colour variants and variation IDs of a product.

### FAQ

**Do I need an Otto account, cookie or API key?**
No. The actor reads public product listings and product pages. It solves Otto's browser challenge automatically, with no credentials from you.

**Why did a run return no products?**
Otto's bot protection can occasionally refuse a run from a data-centre IP. Retry later; the actor already escalates through available proxy groups. A very narrow keyword or a stale category URL can also produce an empty result list.

**Are prices in EUR?**
Yes, Otto.de is the German shop; all prices are EUR including German VAT.

**Why are some fields missing?**
Otto only prints a reference price on reduced products, only shows ratings after reviews exist, and only some tiles carry colours, expert tests or sustainability labels. Detail fields appear only when you paste product URLs or turn on `fetchDetails`.

**How many products can one run return?**
Up to `maxItems` (maximum 1000). Otto serves 120 products per listing page; the actor paginates until it reaches your cap or the result list ends.

**Does this actor provide historical prices?**
No. Otto does not publish a public price history. Store each run's dataset to build your own time series.

**Is this affiliated with Otto?**
No. This actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Otto (GmbH & Co. KG).

# Actor input Schema

## `mode` (type: `string`):

Search products by keyword, browse a category, or read specific product pages.

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

Product keyword for search mode, e.g. 'laptop' or 'kaffeemaschine'.

## `searchQueries` (type: `array`):

Optional list of keywords. Each gets an equal share of Max items.

## `category` (type: `string`):

Otto.de category path or full URL, e.g. 'taschen' or 'https://www.otto.de/technik/laptop/'.

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

Optional list of category paths or URLs. Each gets an equal share of Max items.

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

Full Otto.de product URLs, e.g. https://www.otto.de/p/.../ (use with mode 'Specific product URLs').

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

Otto's own result order. Legacy English values from older runs are still accepted.

## `minPrice` (type: `integer`):

Only keep products at or above this price.

## `maxPrice` (type: `integer`):

Only keep products at or below this price.

## `minRating` (type: `number`):

Only keep products rated at least this many stars (1-5). Products without reviews are skipped.

## `onSaleOnly` (type: `boolean`):

Keep only products Otto marks as reduced.

## `brands` (type: `array`):

Optional brand names to keep, e.g. \['Acer', 'Samsung'].

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

Maximum number of products to return across all inputs.

## `maxPages` (type: `integer`):

Stop after this many listing pages per input. 0 means until Max items or the result list ends.

## `fetchDetails` (type: `boolean`):

Open each product page to add description, GTIN, full specs, seller, breadcrumbs and rendered reviews. Slower than listing-only.

## `maxDetailFetches` (type: `integer`):

Cap on product pages opened when Fetch product details is on.

## Actor input object example

```json
{
  "mode": "searchProducts",
  "query": "laptop",
  "searchQueries": [],
  "categoryUrls": [],
  "productUrls": [],
  "sortBy": "topseller",
  "onSaleOnly": false,
  "brands": [],
  "maxItems": 3,
  "maxPages": 0,
  "fetchDetails": false,
  "maxDetailFetches": 0
}
```

# Actor output Schema

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

Dataset containing all scraped Otto.de product records.

# 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 = {
    "mode": "searchProducts",
    "query": "laptop",
    "searchQueries": [],
    "categoryUrls": [],
    "productUrls": [],
    "sortBy": "topseller",
    "onSaleOnly": false,
    "brands": [],
    "maxItems": 3,
    "maxPages": 0,
    "fetchDetails": false,
    "maxDetailFetches": 0
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataspryva/otto-de-keyword-search-and-category-price-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 = {
    "mode": "searchProducts",
    "query": "laptop",
    "searchQueries": [],
    "categoryUrls": [],
    "productUrls": [],
    "sortBy": "topseller",
    "onSaleOnly": False,
    "brands": [],
    "maxItems": 3,
    "maxPages": 0,
    "fetchDetails": False,
    "maxDetailFetches": 0,
}

# Run the Actor and wait for it to finish
run = client.actor("dataspryva/otto-de-keyword-search-and-category-price-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 '{
  "mode": "searchProducts",
  "query": "laptop",
  "searchQueries": [],
  "categoryUrls": [],
  "productUrls": [],
  "sortBy": "topseller",
  "onSaleOnly": false,
  "brands": [],
  "maxItems": 3,
  "maxPages": 0,
  "fetchDetails": false,
  "maxDetailFetches": 0
}' |
apify call dataspryva/otto-de-keyword-search-and-category-price-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataspryva/otto-de-keyword-search-and-category-price-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/Hd6NvwuYNjvfskuNA/builds/q71idWCesqaR4cuKi/openapi.json
