# GAMMA Reviews API Documentation

`GET /api/gamma/reviews?id=...` returns the embedded reviews with numeric rating, title, text, author and ISO 8601 dates, plus a rating distribution. Only the embedded set is published, not a full archive.

## Credits

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

- **Documentation:** [https://scrappa.co/docs/gamma-api/gamma_reviews](https://scrappa.co/docs/gamma-api/gamma_reviews)
- **API group:** GAMMA API
- **Endpoint:** `GET https://scrappa.co/api/gamma/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 code from search, such as B478898. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/gamma/reviews?id=B478898"
```

## Example response

```json
{
    "success": true,
    "site": "nl",
    "product_id": "B478898",
    "page": 1,
    "rating": {
        "average": 4.6,
        "count": 20
    },
    "review_count": 20,
    "reviews": [
        {
            "id": "1180301736",
            "rating": 5,
            "date": "2025-02-06T12:58:16Z"
        }
    ],
    "is_partial_archive": true,
    "meta": {
        "endpoint_family": "gamma-reviews",
        "billable": true,
        "credits_charged": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The upstream has no product with that code (`not_found`). Non-billable. |
| 422 | Validation Error | A parameter is missing, unknown or malformed. Unknown parameters are rejected. Non-billable. |
| 503 | Upstream Unavailable | The upstream could not be reached or changed its public 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)
