# bonprix Sitemap Ids API Documentation

Scrappa's `GET /api/bonprix/sitemap` returns public product ids or category slugs from the bonprix sitemap as JSON. Use it as the id source for the search, product, reviews and recommendations endpoints.

## What you get

`ids[]` holds entries with `type`, `url` and either `article_id` (product) or `slug` (category). `total`, `offset` and `limit` describe the page of ids. The sitemap is cached, so repeated calls stay cheap.

## 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_sitemap](https://scrappa.co/docs/bonprix-api/bonprix_sitemap)
- **API group:** bonprix API
- **Endpoint:** `GET https://scrappa.co/api/bonprix/sitemap`

## 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 | No | product (default) or category. |
| `offset` | integer | No | Zero-based id offset. |
| `limit` | integer | No | Ids per page, 1-1000. |
| `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/sitemap?type=product&limit=100"
```

## Example response

```json
{
    "success": true,
    "type": "product",
    "offset": 0,
    "limit": 100,
    "total": 42000,
    "ids": [
        {
            "type": "product",
            "article_id": "926761",
            "url": "https://www.bonprix.de/produkt/kleid-926761/"
        }
    ],
    "meta": {
        "endpoint_family": "bonprix-sitemap",
        "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)
