# Breuninger Product Search API Documentation

`GET /api/breuninger/search` returns public German Breuninger products as JSON. Use exactly one of `query`, `category` or `brand`.

## What you get

Each item has `id`, `colour_id`, `brand`, `name`, `subname`, `price`, `image`, `url`, `position` and `is_sponsored`. Use `id` unchanged with the product endpoint; use `colour_id` as its `variant`. Sponsored tiles are skipped.

## Prices, filters and pages

Prices are numbers in EUR. `min_price`, `max_price` and `price` filter the returned tiles; an item that violates a requested bound is never returned. `sort` accepts `relevance`, `price_asc`, `price_desc` and `newest`. Page one is the full page; deeper pages use the storefront continuation fragment, so page N is never page one relabelled. A filtered page can be empty while `has_more` is true; `meta.unavailable_reason.filtered_out` says why. An empty result is HTTP 200 with `items: []` and no charge. Strike prices, stock, rating and on-site review count are not available on tiles and are not invented.

## Credits

A successful request costs **1 credit**. Errors, challenges and `404` answers cost nothing. The response shows the charge in `meta.credits_charged`.

- **Documentation:** [https://scrappa.co/docs/breuninger-api/breuninger_search](https://scrappa.co/docs/breuninger-api/breuninger_search)
- **API group:** Breuninger API
- **Endpoint:** `GET https://scrappa.co/api/breuninger/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 | Search words. Use exactly one of query, category or brand. |
| `category` | string | No | Category path such as damen/bekleidung/kleider. |
| `brand` | string | No | Brand slug from the ids route, such as riani. |
| `sort` | string | No | relevance (default), price_asc, price_desc or newest. |
| `min_price` | number | No | Lowest price in euros. |
| `max_price` | number | No | Highest price in euros. |
| `price` | number | No | Highest price in euros. Alias for max_price. |
| `page` | integer | No | Result page, 1-30. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/breuninger/search?query=kleid"
```

## Example response

```json
{
    "success": true,
    "query": "kleid",
    "category": null,
    "brand": null,
    "sort": "relevance",
    "items": [
        {
            "id": "1003244478",
            "colour_id": "471cb8b9a5504e44b666ae9fc9b0fae9",
            "brand": "Riani",
            "name": "Cocktailkleid",
            "subname": null,
            "price": 109.99,
            "image": "https://cms.brnstc.de/product_images/1122x1536_retina/example.jpg",
            "url": "https://www.breuninger.com/de/marken/riani/cocktailkleid/1003244478/p/",
            "position": 1,
            "is_sponsored": false
        }
    ],
    "page": 1,
    "page_size": 96,
    "has_more": true,
    "next_page": 2,
    "applied_filters": {
        "query": "kleid"
    },
    "meta": {
        "endpoint_family": "breuninger-search",
        "billable": true,
        "attempts": 1,
        "credits_charged": 1,
        "unavailable_reason": []
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing, unknown, conflicting or unusable. Unknown parameters are rejected, never ignored. Non-billable. |
| 503 | Upstream Unavailable | Breuninger could not be reached, answered with a challenge, or changed its page shape (`upstream_blocked`, `upstream_unavailable`, `parser_drift`). Retryable and never billed. Clients are never rate limited. |

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