# DocMorris Search API Documentation

<p>Search DocMorris products by keyword or 8 digit PZN with a zero based page. Cards carry PZN, numeric EUR price, original price, discount, Grundpreis, pharmacy-only and Rx flags, rating and full size images. Sort and numeric price filters are not supported by the public source and return 422. For Rx items the search price is the private price; base price amount and unit are null. One credit per successful request.</p>

- **Documentation:** [https://scrappa.co/docs/docmorris-api/docmorris_search](https://scrappa.co/docs/docmorris-api/docmorris_search)
- **API group:** DocMorris API
- **Endpoint:** `GET https://scrappa.co/api/docmorris/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 | No | Keywords to search; required unless pzn or pzns is given. |
| `pzn` | string | No | One 8 digit PZN from a product link or search result. |
| `pzns` | string | No | Comma separated 8 digit PZNs, up to 20. |
| `rx` | string | No | Set true to search the prescription index. |
| `page` | string | No | Zero based page number, default 0. |
| `hitsPerPage` | string | No | Results per page, 1 to 100, default 20. |

## Example response

```json
{
    "data": {
        "rx": false,
        "page": 0,
        "items": [
            {
                "pzn": "03161577",
                "name": "Ibuprofen 400 mg",
                "image": "https://statics.docmorris.de/full/03161577.jpg",
                "price": 4.95,
                "rating": {
                    "total_reviews": 120,
                    "average_overall": 4.5
                },
                "currency": "EUR",
                "has_stock": true,
                "base_price": {
                    "unit": "kg",
                    "value": 49.5,
                    "amount": 1
                },
                "original_price": 5.95,
                "discount_percent": 17,
                "requiresPrescription": false
            }
        ],
        "query": "ibuprofen",
        "total": 27,
        "has_more": true,
        "nb_pages": 2,
        "hits_per_page": 20
    },
    "meta": {
        "billable": true
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A filter or identifier failed validation. No credit is charged. |
| 503 | Upstream Unavailable | The public source is temporarily unavailable. No credit is charged. |

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