# DocMorris Category API Documentation

<p>Browse DocMorris products in a category with facet counts and a zero based page. Pass the category id from a search result or the full facet label, commas included. Unknown categories return 404. Cards carry PZN, numeric EUR price, original price, discount, Grundpreis and Rx flag. One credit per successful request.</p>

- **Documentation:** [https://scrappa.co/docs/docmorris-api/docmorris_category](https://scrappa.co/docs/docmorris-api/docmorris_category)
- **API group:** DocMorris API
- **Endpoint:** `GET https://scrappa.co/api/docmorris/category`

## 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 |
| --- | --- | --- | --- |
| `category` | string | Yes | Category id from a search result (slug path) or the full facet label, commas included. |
| `page` | string | No | Zero based page number, default 0. |
| `hitsPerPage` | string | No | Results per page, 1 to 100, default 20. |

## Example response

```json
{
    "data": {
        "page": 0,
        "items": [
            {
                "pzn": "03161577",
                "name": "Ibuprofen 400 mg",
                "price": 4.95,
                "currency": "EUR",
                "requiresPrescription": false
            }
        ],
        "total": 529,
        "facets": {
            "brand_names": {
                "Alverde": 42
            }
        },
        "category": "Arzneimittel & Gesundheit > Schmerzmittel",
        "has_more": true
    },
    "meta": {
        "billable": true
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A filter 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)
