# BRACK.CH Sitemap Product Ids API Documentation

`GET /api/brack/sitemap` lists the product ids published in the BRACK.CH sitemap. Each entry in `products` has an `id` and its `url`. Pass the `url` to the product route unchanged; a bare id is not a product page.

## Locales

`locale` is `de`, the only published option. `fr` is a named deferral until its own production parity check passes; it returns a structured 422 and costs nothing. The route reports `ids` as strings and `count` as a number, so it is a public id source inside the shipped routes. An empty sitemap is not billed.

## Credits

A successful request with data costs **1 credit**. Errors, challenges and empty pages cost nothing. The response shows the charge in `meta.credits_charged`.

- **Documentation:** [https://scrappa.co/docs/brack-api/brack_sitemap](https://scrappa.co/docs/brack-api/brack_sitemap)
- **API group:** BRACK.CH API
- **Endpoint:** `GET https://scrappa.co/api/brack/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 |
| --- | --- | --- | --- |
| `locale` | string | No | de only. fr is deferred until its own parity check passes. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/brack/sitemap?locale=de"
```

## Example response

```json
{
    "success": true,
    "locale": "de",
    "ids": [
        "1955309",
        "1955304"
    ],
    "products": [
        {
            "id": "1955309",
            "url": "https://www.brack.ch/apple-iphone-17-512-gb-sage-1955309"
        }
    ],
    "count": 2,
    "meta": {
        "endpoint_family": "brack-sitemap",
        "billable": true,
        "attempts": 2,
        "credits_charged": 1,
        "unavailable_reason": []
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing, unknown, conflicting or unusable. Unknown parameters are rejected, never ignored. Non-billable. |
| 503 | Upstream Unavailable | The storefront could not be reached, answered with a challenge, or changed its page shape. 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)
