# DocMorris Scraper - German Online Pharmacy Products (`studio-amba/docmorris-scraper`) Actor

Scrape products, prices, PZN codes, and availability from DocMorris.de, Europe's largest online pharmacy. Supports keyword search, category browsing, and direct product URLs. No login required.

- **URL**: https://apify.com/studio-amba/docmorris-scraper.md
- **Developed by:** [Studio Amba](https://apify.com/studio-amba) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 33.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

## DocMorris Scraper

Scrape products, prices, PZN codes, and availability from [DocMorris.de](https://www.docmorris.de) — Europe's largest online pharmacy with over 150,000 products.

### How to scrape DocMorris data

DocMorris is the leading European online pharmacy, serving millions of customers across Germany, Switzerland, and other EU markets. This actor lets you extract structured product data from their entire catalog without needing an account or login.

Use it to:

- Monitor pharmacy product prices and discounts across thousands of OTC medications
- Track availability of specific medications by PZN (Pharmazentralnummer)
- Build price comparison datasets across the German online pharmacy market
- Analyze product ranges, dosage forms, and pricing trends

The actor handles DocMorris's anti-bot protections using a real browser and supports keyword search, category browsing, and direct product URLs.

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `searchQuery` | String | No | Search for products by keyword (e.g., "ibuprofen", "vitamin d", "nasenspray") |
| `startUrls` | Array | No | Category or product URLs to scrape |
| `maxResults` | Integer | No | Maximum results to return (default: 100) |
| `proxyConfiguration` | Object | No | Proxy settings (residential DE proxy recommended) |

If no `searchQuery` or `startUrls` are provided, the actor defaults to searching for "ibuprofen".

#### Example input

```json
{
    "searchQuery": "vitamin d",
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "DE"
    }
}
````

#### Scraping a specific category

```json
{
    "startUrls": [
        { "url": "https://www.docmorris.de/arzneimittel-gesundheit" }
    ],
    "maxResults": 200
}
```

#### Scraping specific product pages

```json
{
    "startUrls": [
        { "url": "https://www.docmorris.de/bepanthen-augen-und-nasensalbe/01578675" },
        { "url": "https://www.docmorris.de/vigantolvit-vitamin-d3-2000-ie/12423869" }
    ]
}
```

### Output

Each result contains:

| Field | Type | Example |
|-------|------|---------|
| `productName` | String | `"Heumann Ibuprofen Schmerztabletten 400 mg Filmtabletten 20 St"` |
| `brand` | String | `"Heumann"` |
| `price` | Number | `2.29` |
| `currency` | String | `"EUR"` |
| `originalPrice` | Number | `5.76` |
| `discount` | String | `"60%"` |
| `pzn` | String | `"00040554"` |
| `dosageForm` | String | `"Filmtabletten"` |
| `packSize` | String | `"20 St"` |
| `category` | String | `"Arzneimittel & Gesundheit > Schmerzmittel > Ibuprofen"` |
| `inStock` | Boolean | `true` |
| `requiresPrescription` | Boolean | `false` |
| `imageUrl` | String | Product image URL |
| `url` | String | Full product URL on DocMorris |
| `productDescription` | String | Product usage and description text |
| `scrapedAt` | String | `"2026-06-09T12:00:00.000Z"` |

### Example output

```json
{
    "productName": "Heumann Ibuprofen Schmerztabletten 400 mg Filmtabletten 20 St",
    "brand": "Heumann",
    "price": 2.29,
    "currency": "EUR",
    "originalPrice": 5.76,
    "discount": "60%",
    "pzn": "00040554",
    "dosageForm": "Filmtabletten",
    "packSize": "20 St",
    "category": "Arzneimittel & Gesundheit > Schmerzmittel > Ibuprofen",
    "inStock": true,
    "requiresPrescription": false,
    "imageUrl": "https://statics.docmorris.de/static/produkte/...",
    "url": "https://www.docmorris.de/heumann-ibuprofen-schmerztabletten-400mg/00040554",
    "productDescription": "Zur kurzzeitigen Behandlung von leichten bis mäßig starken Schmerzen...",
    "scrapedAt": "2026-06-09T12:00:00.000Z"
}
```

### Main categories on DocMorris

You can scrape any of these categories by providing the URL in `startUrls`:

- **Arzneimittel & Gesundheit** — `https://www.docmorris.de/arzneimittel-gesundheit`
- **Beauty & Pflege** — `https://www.docmorris.de/beauty-pflege`
- **Vitamine, Sport & Ernährung** — `https://www.docmorris.de/vitamine-sport-ernaehrung`
- **Kinder & Familie** — `https://www.docmorris.de/kinder-familie`
- **Sanitätshaus** — `https://www.docmorris.de/sanitaetshaus`
- **Tiergesundheit** — `https://www.docmorris.de/tiergesundheit-tierbedarf`

### Cost estimate

This actor uses Playwright (browser-based crawling) which consumes more compute units than HTTP-only scrapers. Expect approximately **2-4 compute units per 100 products** depending on proxy usage and page complexity.

With Apify's standard pricing, that works out to roughly **$0.50-1.00 per 1,000 products**.

### Tips for best results

- **Use residential DE proxies** for the most reliable results. DocMorris has anti-bot detection that may block datacenter IPs.
- **Start with category URLs** if you want to scrape a broad range of products — category pages are more reliably accessible than search.
- **Set a reasonable `maxResults`** to control costs. Start with 50-100 to test.

### Limitations

- DocMorris applies anti-bot protections to search pages; category browsing is more reliable
- Prescription-only products are listed but cannot be purchased without a valid prescription
- Prices and availability change frequently; data reflects the state at scrape time
- The actor extracts publicly visible data only — no login or account required
- Very large scrapes (10,000+ products) may take longer due to browser-based crawling

# Actor input Schema

## `searchQuery` (type: `string`):

Search for products by keyword (e.g., 'ibuprofen', 'vitamin d', 'nasenspray'). Uses DocMorris search.

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

Category or product URLs to scrape. Example: https://www.docmorris.de/arzneimittel-gesundheit or https://www.docmorris.de/bepanthen-augen-und-nasensalbe/01578675

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

Maximum number of products to return.

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

Proxy settings. Recommended: use Apify residential proxies with DE country for best results.

## Actor input object example

```json
{
  "searchQuery": "ibuprofen",
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "DE"
  }
}
```

# 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 = {
    "searchQuery": "ibuprofen",
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "DE"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/docmorris-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 = {
    "searchQuery": "ibuprofen",
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "DE",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/docmorris-scraper").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 '{
  "searchQuery": "ibuprofen",
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "DE"
  }
}' |
apify call studio-amba/docmorris-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "DocMorris Scraper - German Online Pharmacy Products",
        "description": "Scrape products, prices, PZN codes, and availability from DocMorris.de, Europe's largest online pharmacy. Supports keyword search, category browsing, and direct product URLs. No login required.",
        "version": "0.1",
        "x-build-id": "AorkyFVzFNI0KPn0F"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/studio-amba~docmorris-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-studio-amba-docmorris-scraper",
                "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/studio-amba~docmorris-scraper/runs": {
            "post": {
                "operationId": "runs-sync-studio-amba-docmorris-scraper",
                "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/studio-amba~docmorris-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-studio-amba-docmorris-scraper",
                "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",
                "properties": {
                    "searchQuery": {
                        "title": "Search Query",
                        "type": "string",
                        "description": "Search for products by keyword (e.g., 'ibuprofen', 'vitamin d', 'nasenspray'). Uses DocMorris search."
                    },
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "Category or product URLs to scrape. Example: https://www.docmorris.de/arzneimittel-gesundheit or https://www.docmorris.de/bepanthen-augen-und-nasensalbe/01578675",
                        "items": {
                            "type": "object",
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL",
                                    "description": "Direct URL to a DocMorris category or product page to scrape."
                                }
                            },
                            "required": [
                                "url"
                            ]
                        }
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of products to return.",
                        "default": 100
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings. Recommended: use Apify residential proxies with DE country for best results."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
