# BRACK.CH Product Details API Documentation

`GET /api/brack/product` returns one product as structured JSON. Pass the `url` from a search result or the sitemap unchanged. An optional `id` must match the id in that link. A bare id is not a product page on the storefront, so it is rejected with a structured 422 and costs nothing.

## What you get

`product` holds title, brand, GTIN, MPN, price, list price, discount in CHF and percent, availability, stock count, full-size image links, canonical and raw specs, and technical details. Prices are numbers in CHF. Stock is `in_stock` plus a positive `stock_count` only.

## Reviews

BRACK.CH publishes an aggregate rating and a review count. It does not publish review text on a public page. `reviews` is always empty; no text, author or date is invented.

## 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_product](https://scrappa.co/docs/brack-api/brack_product)
- **API group:** BRACK.CH API
- **Endpoint:** `GET https://scrappa.co/api/brack/product`

## 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 |
| --- | --- | --- | --- |
| `url` | string | Yes | Product link from search results or the sitemap. Required. |
| `id` | string | No | Optional id from search or the sitemap. Must match the id in url. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/brack/product?url=https%3A%2F%2Fwww.brack.ch%2Fapple-iphone-17-512-gb-sage-1955309"
```

## Example response

```json
{
    "success": true,
    "product": {
        "id": "1955309",
        "sku": "1955309",
        "title": "Example iPhone",
        "brand": "ExampleBrand",
        "gtin": null,
        "mpn": null,
        "url": "https://www.brack.ch/apple-iphone-17-512-gb-sage-1955309",
        "price": 13.95,
        "original_price": 29.9,
        "discount": 15.95,
        "discount_percent": 53,
        "currency": "CHF",
        "in_stock": true,
        "stock_count": 3,
        "availability": "InStock",
        "rating": 4,
        "review_count": 1,
        "images": [],
        "specs": {
            "canonical": [],
            "raw": []
        },
        "technical_details": null
    },
    "reviews": [],
    "meta": {
        "endpoint_family": "brack-product",
        "billable": true,
        "attempts": 1,
        "credits_charged": 1,
        "unavailable_reason": {
            "review_text": "BRACK.CH publishes an aggregate rating only, not review text."
        }
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The storefront has no product with that id or link (`not_found`). Non-billable. |
| 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)
