# Worten Product Details API Documentation

`GET /api/worten/product` returns one Worten Portugal product as JSON. Pass the `id` from a search result or the public sitemap unchanged.

## What you get

`product` holds title, brand, EAN, sku, full-size image, `price`, `original_price`, `discount_percent`, currency, `in_stock`, `rating`, `review_count`, seller, shipping and the public text attributes. Prices and ratings are numbers in EUR. Product detail HTML also carries a public structured-data block; the JSON endpoint stays the primary source.

## Credits

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

- **Documentation:** [https://scrappa.co/docs/worten-api/worten_product](https://scrappa.co/docs/worten-api/worten_product)
- **API group:** Worten API
- **Endpoint:** `GET https://scrappa.co/api/worten/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 |
| --- | --- | --- | --- |
| `id` | string | Yes | Product id from a search result or the sitemap. |
| `ref` | string | No | sku or product_id. Detected from the id when omitted. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/worten/product?id=8600340"
```

## Example response

```json
{
    "success": true,
    "site": "pt",
    "product": {
        "id": "8600340",
        "sku": "8600340",
        "ean": [
            "5601234567890"
        ],
        "title": "Example iPhone",
        "brand": "APPLE",
        "price": 899,
        "original_price": 999,
        "discount_percent": 10,
        "currency": "EUR",
        "rating": 4.5,
        "review_count": 120,
        "in_stock": true
    },
    "meta": {
        "endpoint_family": "worten-product",
        "billable": true,
        "attempts": 1,
        "credits_charged": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The storefront has no product with that id (`not_found`). Non-billable. |
| 422 | Validation Error | A parameter is missing or unsupported. Only page sizes 24 and 48 are accepted, and filters use facet slugs from the search result. Non-billable. |
| 503 | Upstream Unavailable | The storefront could not be reached, answered with a challenge, or changed its response 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)
