# Medpex Search API Documentation

<p>Search the public medpex pharmacy catalogue. Returns rich cards with numeric EUR prices, list price, discount, base price, PZN, pharmacy-only flag, full-size images and paging. 1 credit per successful request.</p>

- **Documentation:** [https://scrappa.co/docs/medpex-api/medpex_search](https://scrappa.co/docs/medpex-api/medpex_search)
- **API group:** Medpex API
- **Endpoint:** `GET https://scrappa.co/api/medpex/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. Required. |
| `page` | integer | No | 1-based page, default 1. |
| `min_price` | number | No | Lowest EUR price. |
| `max_price` | number | No | Highest EUR price. |
| `min_rating` | number | No | Lowest average rating, 0 to 5. |
| `facet_name` | string | No | Facet to refine. |
| `facet_value` | string | No | Value for the facet. |
| `rx` | boolean | No | Set to true for prescription-only products. |

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 503 | Error | A returned row did not obey a requested filter. 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)
