# SHOP APOTHEKE Search API Documentation

<p><strong>SHOP APOTHEKE Search API</strong> returns products from the public German pharmacy catalogue. Search by keyword, choose a sort value, filter by category, price or discount, and page with the page parameter.</p><p>Prices are numbers with EUR as currency. Base prices are numeric EUR amounts with currency. Canonical PZN and pharmacy-only flags are included. Images are full-size urls. The html source is a fallback for a query only: it cannot honour paging, sort or filters, so sending those with source=html returns a validation error. <strong>Cost:</strong> 1 credit per request. Failed requests are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/shop-apotheke-api/shop_apotheke_search](https://scrappa.co/docs/shop-apotheke-api/shop_apotheke_search)
- **API group:** SHOP APOTHEKE API
- **Endpoint:** `GET https://scrappa.co/api/shop-apotheke/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | Yes | Search text, 2 to 100 characters. |
| `category` | string | No | Category code from data.categories in a search answer. |
| `min_price` | number | No | Minimum price in EUR. |
| `max_price` | number | No | Maximum price in EUR. |
| `discount` | integer | No | Minimum discount in percent. |
| `sort` | string | No | One of relevance, price_asc, price_desc, topseller or newest. |
| `page` | integer | No | One-based page number. Default 1. |
| `per_page` | integer | No | 24, 50 or 100 hits. Default 24. |
| `source` | string | No | json for the rich index or html for the public result page. The html source accepts query only. Sending page, sort, per_page, category, min_price, max_price or discount with source=html returns a validation error. |

## Example response

```json
{
    "data": {
        "items": [
            {
                "pzn": "10019621",
                "name": "Ibuprofen 400 mg",
                "image": "https://cdn.shop-apotheke.com/images/D10/019/621/D10019621-p1.jpg",
                "price": 3.99,
                "currency": "EUR",
                "in_stock": true,
                "object_id": "10019621",
                "base_price": {
                    "amount": 0.08,
                    "currency": "EUR",
                    "formatted": "0,08 EUR / 1 St"
                },
                "list_price": 13.99,
                "rating_count": 474,
                "variant_code": "3339743300",
                "pharmacy_only": true,
                "average_rating": 4.8,
                "discount_percent": 71
            }
        ],
        "pagination": {
            "page": 1,
            "total": 580,
            "per_page": 24,
            "total_pages": 25,
            "has_next_page": true
        }
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Validation error | No query was sent or a filter value is not valid |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
