# bonprix Recommendations API Documentation

Scrappa's `GET /api/bonprix/recommendations` returns a public bonprix recommendation carousel as JSON. Use `type=home` for top sellers, `shop` with `shop_id` for a shop carousel, or `product` with `item_number` and `shop_id` for related products.

## What you get

`items[]` holds `article_id`, `title`, numeric `price`, `original_price`, `discount_percent`, `currency`, `available`, a full-size `image` and `url`. Ids pass unchanged to the product, reviews and category endpoints. Get `shop_id` from a category response.

## Credits

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

- **Documentation:** [https://scrappa.co/docs/bonprix-api/bonprix_recommendations](https://scrappa.co/docs/bonprix-api/bonprix_recommendations)
- **API group:** bonprix API
- **Endpoint:** `GET https://scrappa.co/api/bonprix/recommendations`

## 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 |
| --- | --- | --- | --- |
| `type` | string | Yes | home, shop or product. |
| `shop_id` | string | No | Shop id from a category page. Required for shop and product. |
| `item_number` | string | No | Article id. Required for product. |
| `site` | string | No | Storefront: DE (default) or AT. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/bonprix/recommendations?type=home"
```

## Example response

```json
{
    "success": true,
    "type": "home",
    "shop_id": null,
    "item_number": null,
    "items": [
        {
            "article_id": "926761",
            "title": "Kleid aus Baumwolle",
            "price": 17.99,
            "original_price": 24.99,
            "discount_percent": 28,
            "currency": "EUR",
            "available": true,
            "image": "https://www.bonprix.de/image/926761/1400x1960.jpg"
        }
    ],
    "meta": {
        "endpoint_family": "bonprix-recommendations",
        "billable": true,
        "attempts": 1,
        "credits_charged": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Page Not Applied | bonprix did not apply the requested page or identifier (`upstream_rejected`). The request fails instead of returning unchecked results. Non-billable. |
| 422 | Validation Error | A query parameter is missing, unknown or unusable. Unknown parameters are rejected, never ignored. Non-billable. |
| 503 | Upstream Unavailable | bonprix could not be reached in time, answered with a block or returned an unexpected page. 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)
