# Apotheka Estonia Scraper - Pharmacy Products (`studio-amba/apotheka-ee-scraper`) Actor

Scrape products, prices, and availability from Apotheka.ee — Estonia's largest pharmacy chain. Supports search queries and category browsing. Extracts product names, prices, brands, images, and stock status. No login required.

- **URL**: https://apify.com/studio-amba/apotheka-ee-scraper.md
- **Developed by:** [Studio Amba](https://apify.com/studio-amba) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% 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

## Apotheka Estonia Scraper

Scrape product data, prices, and availability from Apotheka.ee -- Estonia's largest pharmacy chain with an extensive online catalog of medications, supplements, personal care, baby products, and beauty items.

### How to scrape Apotheka Estonia data

1. Go to the actor page on the Apify Store.
2. Click "Start" to open the input configuration.
3. Enter a search query in Estonian (e.g., "vitamiinid" for vitamins, "kreemid" for creams) or provide a category URL.
4. Set the maximum number of results you want.
5. Click "Start" to run the actor.
6. When finished, download your data in JSON, CSV, Excel, or any other supported format.

You can also run this actor programmatically using the Apify API or one of the official client libraries (Python, JavaScript, Node.js).

### Why use this actor?

Apotheka is the largest pharmacy chain in Estonia, operating both physical stores and an online pharmacy at apotheka.ee. Their online catalog contains thousands of products across health, beauty, baby care, and wellness categories.

This actor lets you extract structured product data from Apotheka.ee without manual browsing, enabling:

- Price monitoring across pharmacy and health product categories
- Competitive analysis for Estonian pharmacy market research
- Product catalog tracking for supplement and medication availability
- Market research on Estonian consumer health product pricing

No login or cookies required. All data is extracted from publicly available pages.

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `searchQuery` | String | No | Search for products by keyword. Defaults to "vitamiinid" if empty. |
| `categoryUrl` | String | No | Apotheka.ee category page URL to scrape directly. |
| `maxResults` | Integer | No | Maximum number of products to return (default: 50). |
| `proxyConfiguration` | Object | No | Proxy settings. Residential proxies with EE country code recommended. |

If both `searchQuery` and `categoryUrl` are empty, the actor defaults to searching "vitamiinid" (vitamins) so it always returns data.

#### Example category URLs

- Vitamins: `https://www.apotheka.ee/tooted/tervis/vitamiinid-ja-mineraalained/vitamiinid`
- Pain relief: `https://www.apotheka.ee/tooted/tervis/kulmetus-ja-valu`
- Beauty: `https://www.apotheka.ee/tooted/ilu`
- Baby products: `https://www.apotheka.ee/tooted/lapsed`
- Personal care: `https://www.apotheka.ee/tooted/ilu/kehahooldus`

### Output

Each product in the dataset contains:

| Field | Type | Example |
|-------|------|---------|
| `productName` | String | `"VITAMIN D3 PRO EXPERT 2500IU KAPSLID N90"` |
| `brand` | String | `"VITAMIN D3 PRO EXPERT"` |
| `price` | Number | `9.10` |
| `originalPrice` | Number | `18.40` |
| `currency` | String | `"EUR"` |
| `inStock` | Boolean | `true` |
| `ean` | String | `null` |
| `category` | String | `"Toidulisand"` |
| `imageUrl` | String | Product image URL |
| `url` | String | Full product page URL |
| `scrapedAt` | String | `"2026-06-09T14:30:00.000Z"` |

### Example output

```json
{
    "productName": "VITAMIN D3 PRO EXPERT 2500IU KAPSLID N90",
    "brand": "VITAMIN D3 PRO EXPERT",
    "price": 9.10,
    "originalPrice": 18.40,
    "currency": "EUR",
    "inStock": true,
    "ean": null,
    "category": "Toidulisand",
    "imageUrl": "https://www.apotheka.ee/media/catalog/product/cache/...",
    "url": "https://www.apotheka.ee/vitamin-d3-pro-expert-2500iu-kapslid-n90-pmm0139452ee",
    "scrapedAt": "2026-06-09T14:30:00.000Z"
}
````

### Integrations and usage

This actor can be connected to various tools and workflows:

- **Google Sheets** -- Export results directly to a spreadsheet for analysis.
- **Slack / Email** -- Get notified when new products appear or prices change.
- **API** -- Call the actor programmatically and retrieve results via the Apify API.
- **Webhooks** -- Trigger downstream workflows when the actor finishes.
- **Scheduled runs** -- Set up automatic daily or weekly scraping to track price changes.

### Cost estimate

This actor uses Playwright (browser-based crawling) with residential proxies. Approximate costs:

- \~0.5 compute units per 100 results
- At standard Apify pricing, roughly $2.50 per 1,000 products
- Costs depend on the number of pagination pages and proxy usage

### Technical details

- Built with PlaywrightCrawler for full browser rendering (Magento-based site)
- Handles Estonian price format (comma as decimal separator)
- Automatic pagination through Magento's standard `?p=N` pattern
- Browser fingerprint randomization for reliable access
- Residential proxy support with Estonian country code

### Limitations

- EAN (barcode) data is not available on listing pages and returns null
- Brand extraction is heuristic-based from the product name
- Stock status is inferred from the presence of a buy button
- Data is scraped from the public website and may change without notice
- Some products marked "Ainult e-apteegis" (e-pharmacy only) are included
- Respect the website's terms of service and use responsibly

# Actor input Schema

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

Search for products by keyword (e.g., 'vitamiinid', 'ibuprofen', 'kreemid'). Uses Apotheka's search page.

## `categoryUrl` (type: `string`):

An Apotheka.ee category page URL to scrape. Example: https://www.apotheka.ee/tooted/tervis/vitamiinid-ja-mineraalained. If empty and no search query, defaults to searching 'vitamiinid'.

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

Maximum number of products to return.

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

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

## Actor input object example

```json
{
  "searchQuery": "vitamiinid",
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "EE"
  }
}
```

# 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": "vitamiinid",
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "EE"
    }
};

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

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

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Apotheka Estonia Scraper - Pharmacy Products",
        "description": "Scrape products, prices, and availability from Apotheka.ee — Estonia's largest pharmacy chain. Supports search queries and category browsing. Extracts product names, prices, brands, images, and stock status. No login required.",
        "version": "0.1",
        "x-build-id": "4JwuGRPE4hzO8VvTP"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/studio-amba~apotheka-ee-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-studio-amba-apotheka-ee-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~apotheka-ee-scraper/runs": {
            "post": {
                "operationId": "runs-sync-studio-amba-apotheka-ee-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~apotheka-ee-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-studio-amba-apotheka-ee-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., 'vitamiinid', 'ibuprofen', 'kreemid'). Uses Apotheka's search page."
                    },
                    "categoryUrl": {
                        "title": "Category URL",
                        "type": "string",
                        "description": "An Apotheka.ee category page URL to scrape. Example: https://www.apotheka.ee/tooted/tervis/vitamiinid-ja-mineraalained. If empty and no search query, defaults to searching 'vitamiinid'."
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of products to return.",
                        "default": 50
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings. Recommended: use Apify residential proxies with Estonian country code 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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
