# 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, 79.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 result scrapeds

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

## 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 takes longer to run than an HTTP-only scraper -- but Apify's Pay-Per-Event pricing here charges a flat price per result, not by compute time. It charges $0.02 per run (start fee, based on its 4 GB memory allocation) plus $0.002 per result. 100 products costs about $0.22; 1,000 about $2.02. A run's usage cost only settles after it reports SUCCEEDED.

### 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"
  }
}
```

# Actor output Schema

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

No description

# 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(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 '{
  "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": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,studio-amba/docmorris-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/GR6BS6T1IMGFWEapP/builds/wDbGNcpfvSkzmDqbb/openapi.json
