# Dm Drogerie Scraper (Cheap) (`data_api/dm-drogerie-scraper-cheap`) Actor

DM Product Scraper calls dm.de's search API by keyword and returns product names, prices, stock status, and image URLs so price trackers, market analysts, and e-commerce teams have clean, structured data to work with without manual browsing.

- **URL**: https://apify.com/data\_api/dm-drogerie-scraper-cheap.md
- **Developed by:** [Data API](https://apify.com/data_api) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## dm-drogerie markt Product Scraper

![dm-drogerie markt Product Scraper](cover.jpg)

Browsing dm.de by hand is fine for one product. It falls apart the moment you need prices, brands, and ratings across a whole category or a list of competitors. This scraper does the legwork: type in the keywords you care about and it pulls back every matching product from dm-drogerie markt as clean, structured rows — name, brand, current price, star rating, review count, category trail, image, and a direct product link. Run one search term or feed it a stack of them. Export straight to JSON, CSV, or Excel and drop the data into whatever you already use.

### What you get

Each product becomes one tidy row with the same shape every time, so your columns line up when you load the results into a sheet or a database. Fields with no value come back as `null` rather than disappearing. Every row carries:

- **Identity** — `gtin`, `articleNumber`, `productName`, `brandLabel`
- **Pricing** — `currentPrice`, `currencyCode`
- **Reputation** — `starRating`, `reviewsTotal`
- **Links and placement** — `imageLink`, `productLink`, `categoryTrail`
- **Run context** — `searchTerm` (the keyword that found it) and `collectedAt` (when it was captured)

### Quick start

1. Click **Try for free** and open the input form.
2. Type one or more keywords into **Search terms**, one per line (a product type, a brand, or an ingredient all work).
3. Set a **Results limit** per term, and pick a proxy if you want one.
4. Press **Start**, then export the rows as JSON, CSV, Excel, or XML once the run finishes.

![How it works](how-it-works.jpg)

### Use cases

- **Price monitoring** — track what dm charges across a brand or category and watch the numbers move over time
- **Competitor research** — line up your own catalogue against dm's range and pricing
- **Market analysis** — measure how many products a brand or ingredient has on the shelf
- **Product sourcing** — build a list of candidates with prices, ratings, and links ready to compare
- **Review intelligence** — sort by star rating and review count to spot what shoppers actually rate well
- **Catalogue enrichment** — match dm products to your own data by GTIN or article number

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `searchTerms` | array of strings | Yes | Keywords to look up on dm.de, one per line. Each term is searched on its own. |
| `resultsLimit` | integer | No | Maximum products to collect per term (hard cap 1000). Total rows = this number × number of terms. Default `50`. |
| `batchSize` | integer | No | Products fetched per API call, 12 to 48. Default `48`. |
| `includePharmacy` | boolean | No | Set `true` to fold pharmacy and health items in with the standard catalogue. Default `false`. |
| `timeoutSeconds` | integer | No | Seconds to wait for each API reply before giving up on that request. Default `45`. |
| `proxyConfiguration` | object | No | Proxies that route your requests. Defaults to Datacenter (Anywhere); switch to Residential if dm starts blocking. |

#### Example input

```json
{
    "searchTerms": ["nivea", "vitamin c serum", "babynahrung"],
    "resultsLimit": 50,
    "batchSize": 48,
    "includePharmacy": false,
    "timeoutSeconds": 45,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
}
````

### Output

Every product the search returns becomes one row, and each field is always present — values dm doesn't supply come back as `null` so your dataset stays rectangular.

#### Example output

```json
{
    "gtin": "4005808138654",
    "articleNumber": 123456,
    "productName": "NIVEA Creme Universal-Allzweckcreme",
    "brandLabel": "NIVEA",
    "currentPrice": 4.95,
    "currencyCode": "EUR",
    "imageLink": "https://media.dm-static.com/images/nivea-creme.jpg",
    "productLink": "https://www.dm.de/nivea-creme-universal-allzweckcreme-p4005808138654.html",
    "categoryTrail": "Gesundheit & Pflege, Hautpflege, Cremes",
    "starRating": 4.8,
    "reviewsTotal": 2143,
    "searchTerm": "nivea creme",
    "collectedAt": "2026-06-29T12:00:00.000000+00:00"
}
```

#### Output fields

| Field | Type | Description |
|-------|------|-------------|
| `gtin` | string | Global Trade Item Number for the product |
| `articleNumber` | integer | dm's internal article number (DAN) |
| `productName` | string | Full product title as shown on dm.de |
| `brandLabel` | string | Brand the product belongs to |
| `currentPrice` | number | Listed price in the quoted currency; `null` when unavailable |
| `currencyCode` | string | Three-letter currency code, usually EUR |
| `imageLink` | string | Direct link to the main product photo |
| `productLink` | string | Full URL of the product's dm.de page |
| `categoryTrail` | string | Comma-separated category path from the dm API |
| `starRating` | number | Mean shopper rating from 0 to 5; `null` when unrated |
| `reviewsTotal` | integer | Number of shopper reviews; `null` when there are none |
| `searchTerm` | string | The keyword that surfaced this product |
| `collectedAt` | string | ISO 8601 timestamp of when the row was captured |

### Tips for best results

- **Start with a small run.** Try one or two terms with a low `resultsLimit` before scaling — proxy and keyword issues show up in the first handful of rows.
- **Pick keywords like a shopper would.** Broad terms ("shampoo") return more products; specific terms ("nivea creme") return a tighter, more relevant set.
- **Switch to Residential if you get blocked.** Datacenter clears most searches, but residential proxies help when you start seeing repeated request errors.
- **Leave `batchSize` at 48** for the fewest API calls per term; drop it only if larger pages time out.
- **Raise `timeoutSeconds` to ~60** when you run on slower residential proxies.
- **Flip on `includePharmacy`** only when you actually want health-care listings mixed in — it widens the result set.

### How can I use dm-drogerie markt product data?

**How can I use the dm-drogerie markt Product Scraper to monitor prices?**
Run your key terms or brands on a schedule and keep each export. Because every row carries `currentPrice`, `currencyCode`, and `collectedAt`, you can line up successive runs and see exactly when a price moved and by how much — a simple base for any dm price-tracking project.

**How can I compare my catalogue against dm products?**
Search the brands or categories you both carry, then match on `gtin` or `articleNumber` against your own data. You get dm's price, rating, and review count next to each product, which makes gap analysis and competitive pricing straightforward.

**How can I research which dm products shoppers rate highest?**
Pull a category with a generous `resultsLimit`, then sort the output by `starRating` and `reviewsTotal`. Products with both a high score and a deep review count tell you what's genuinely popular rather than just newly listed.

**How can I export dm-drogerie markt data to a spreadsheet?**
After a run, use the export menu to download JSON, CSV, Excel, or XML. The flat, one-row-per-product layout drops straight into a spreadsheet or database with no reshaping, so you can filter and pivot the dm data immediately.

### Is it legal to scrape data?

Our actors are ethical and do not extract any private user data, such as email addresses or private contact information. They only extract what the user has chosen to share publicly. We therefore believe that our actors, when used for ethical purposes by Apify users, are safe.

However, you should be aware that your results could contain personal data. Personal data is protected by the GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers.

You can also read Apify's blog post on the [legality of web scraping](https://blog.apify.com/is-web-scraping-legal/).

### Support

Questions, feature requests, or a field you'd like added? Reach out at <data.apify@proton.me> and we'll get back to you.

# Actor input Schema

## `searchTerms` (type: `array`):

Keywords to look up on dm.de. Put one term per line — for example a product type, a brand, or an ingredient.

## `resultsLimit` (type: `integer`):

Cap on how many products to collect for each search term. Maximum is 1000. Your total rows are this number multiplied by the count of terms.

## `batchSize` (type: `integer`):

How many products to pull in a single API call. Stay between 12 and 48.

## `includePharmacy` (type: `boolean`):

Turn this on to mix pharmacy and health-care listings into the results alongside the standard dm catalogue.

## `timeoutSeconds` (type: `integer`):

Seconds to wait for each API reply before giving up on that request. Raise it if slower proxies time out a lot.

## `proxyConfiguration` (type: `object`):

Choose the proxies that route your requests. Proxies cut down on IP blocks and rate limits. Datacenter is the quickest option; Residential is the hardest to flag.

## Actor input object example

```json
{
  "searchTerms": [
    "nivea",
    "vitamin c serum",
    "babynahrung"
  ],
  "resultsLimit": 15,
  "batchSize": 48,
  "includePharmacy": false,
  "timeoutSeconds": 45,
  "proxyConfiguration": {
    "useApifyProxy": 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 = {
    "searchTerms": [
        "nivea creme"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("data_api/dm-drogerie-scraper-cheap").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 = {
    "searchTerms": ["nivea creme"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("data_api/dm-drogerie-scraper-cheap").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchTerms": [
    "nivea creme"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call data_api/dm-drogerie-scraper-cheap --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=data_api/dm-drogerie-scraper-cheap",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Dm Drogerie Scraper (Cheap)",
        "description": "DM Product Scraper calls dm.de's search API by keyword and returns product names, prices, stock status, and image URLs so price trackers, market analysts, and e-commerce teams have clean, structured data to work with without manual browsing.",
        "version": "0.0",
        "x-build-id": "zIdnrQyC5BKiWQTV7"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/data_api~dm-drogerie-scraper-cheap/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-data_api-dm-drogerie-scraper-cheap",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/data_api~dm-drogerie-scraper-cheap/runs": {
            "post": {
                "operationId": "runs-sync-data_api-dm-drogerie-scraper-cheap",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/data_api~dm-drogerie-scraper-cheap/run-sync": {
            "post": {
                "operationId": "run-sync-data_api-dm-drogerie-scraper-cheap",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "searchTerms"
                ],
                "properties": {
                    "searchTerms": {
                        "title": "Search terms",
                        "type": "array",
                        "description": "Keywords to look up on dm.de. Put one term per line — for example a product type, a brand, or an ingredient.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "resultsLimit": {
                        "title": "Results limit",
                        "minimum": 1,
                        "maximum": 1000000,
                        "type": "integer",
                        "description": "Cap on how many products to collect for each search term. Maximum is 1000. Your total rows are this number multiplied by the count of terms.",
                        "default": 15
                    },
                    "batchSize": {
                        "title": "Batch size",
                        "minimum": 12,
                        "maximum": 48,
                        "type": "integer",
                        "description": "How many products to pull in a single API call. Stay between 12 and 48.",
                        "default": 48
                    },
                    "includePharmacy": {
                        "title": "Include pharmacy items",
                        "type": "boolean",
                        "description": "Turn this on to mix pharmacy and health-care listings into the results alongside the standard dm catalogue.",
                        "default": false
                    },
                    "timeoutSeconds": {
                        "title": "Request timeout (seconds)",
                        "minimum": 5,
                        "maximum": 120,
                        "type": "integer",
                        "description": "Seconds to wait for each API reply before giving up on that request. Raise it if slower proxies time out a lot.",
                        "default": 45
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Choose the proxies that route your requests. Proxies cut down on IP blocks and rate limits. Datacenter is the quickest option; Residential is the hardest to flag."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
