# PcComponentes Product Reviews API Documentation

`GET /api/pccomponentes/reviews` returns the newest written reviews of one product. Pass the `slug` from a search result, and its `id` when you have it.

## What you get

`rating` is the average as a number. `reviewCount` and `ratingCount` are separate numbers. Each review has `id`, `date` as ISO 8601, numeric `rating`, `title`, `text` and `author`. The page carries about 15 written reviews; a value the page does not publish stays `null`. Only page 1 exists. `page=2` or higher returns a structured 422 and costs nothing.

## Credits

A successful request costs **63 credits**. Errors, challenges and `404` answers cost nothing. The response shows the charge in `meta.credits_charged`.

- **Documentation:** [https://scrappa.co/docs/pccomponentes-api/pccomponentes_reviews](https://scrappa.co/docs/pccomponentes-api/pccomponentes_reviews)
- **API group:** PcComponentes API
- **Endpoint:** `GET https://scrappa.co/api/pccomponentes/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 |
| --- | --- | --- | --- |
| `slug` | string | Yes | Product slug from a search result. |
| `id` | string | No | 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/pccomponentes/reviews?slug=portatil-asus-vivobook-15-oled&id=10810270&page=1"
```

## Example response

```json
{
    "success": true,
    "product_id": "10810270",
    "slug": "portatil-asus-vivobook-15-oled",
    "rating": 4.455,
    "reviewCount": 99,
    "ratingCount": 189,
    "reviews": [
        {
            "id": "review-1",
            "date": "2026-11-02T00:00:00+00:00",
            "rating": 5,
            "title": "Good laptop",
            "text": "Works as expected.",
            "author": "Example user"
        }
    ],
    "page": 1,
    "page_size": 1,
    "has_more": false,
    "meta": {
        "endpoint_family": "pccomponentes-reviews",
        "billable": true,
        "attempts": 1,
        "credits_charged": 63
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Review Page Not Available | Only the first review page is public (`unsupported_page`). A later page is rejected instead of repeating page one under a new number. Non-billable. |
| 404 | Not Found | The storefront has no page for that product slug (`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 page shape (`upstream_blocked`, `upstream_unavailable`, `parser_drift`). 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)
