# Digitec Switzerland Product Reviews API Documentation

`GET /api/digitec_ch/reviews` returns the published rating and count from the product's public detail payload, plus pros and cons when the storefront supplies them. Individual review texts are not published and are not invented. When pros or cons are absent they stay empty and `meta.unavailable_reason` names the gap.

## Pages

Only the published summary exists. A `page` above one returns a structured 422 with `unsupported_page` and costs nothing.

## Credits

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

- **Documentation:** [https://scrappa.co/docs/galaxus-api/digitec_ch_reviews](https://scrappa.co/docs/galaxus-api/digitec_ch_reviews)
- **API group:** Galaxus and Digitec API
- **Endpoint:** `GET https://scrappa.co/api/digitec-ch/reviews`

## 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 |
| --- | --- | --- | --- |
| `id` | string | Yes | Product id from a search result. |
| `page` | integer | No | Only page 1 is available. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/digitec-ch/reviews?id=62514025&page=1"
```

## Example response

```json
{
    "success": true,
    "site": "digitec_ch",
    "product_id": "62514025",
    "rating": 4.5,
    "review_count": 120,
    "pros": [
        "Good build quality"
    ],
    "cons": [],
    "reviews": [],
    "page": 1,
    "has_more": false,
    "total": 120,
    "unavailable_reason": {
        "review_texts": "Individual review texts are not published by this data surface."
    },
    "meta": {
        "endpoint_family": "galaxus-reviews",
        "billable": true,
        "attempts": 1,
        "credits_charged": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Review Page Not Available | Only the published rating summary exists. A page above one returns `unsupported_page`. Non-billable. |
| 404 | Not Found | The storefront has no product with that id (`not_found`). Non-billable. |
| 422 | Validation Error | A query 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 data 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)
