# Heureka Product Details API Documentation

`GET /api/heureka/product` Returns one public product with name, brand, category, params, full-size images, breadcrumbs, rating value and counts, low and high price, offer count and currency on a 0-100 rating scale. `id` is the canonical public url, also published as `public_id`, so it chains to the detail routes unchanged. Pass the canonical `url` from search unchanged. Any canonical Heureka url published by search or category is accepted, including article paths and ids with underscores. A bare slug or numeric id has no verified public page and returns 422.

## Credits

A successful request costs **110 credits**. Errors, challenges and empty results cost nothing. Clients are never rate limited.

- **Documentation:** [https://scrappa.co/docs/heureka-api/heureka_product](https://scrappa.co/docs/heureka-api/heureka_product)
- **API group:** Heureka API
- **Endpoint:** `GET https://scrappa.co/api/heureka/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 | Canonical product url from search results. |
| `market` | string | No | Site variant: cz or sk. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/heureka/product?id=https%3A%2F%2Fmobilni-telefony.heureka.cz%2Fapple-iphone-17-256gb-black%2F&market=cz"
```

## Example response

```json
{
    "success": true,
    "product": {
        "name": "Example phone",
        "low_price": 21996,
        "high_price": 37386,
        "offer_count": 10,
        "currency": "CZK",
        "rating_scale": "0-100"
    },
    "meta": {
        "endpoint_family": "heureka-product",
        "billable": true,
        "attempts": 1,
        "credits_charged": 110
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The public page has no product with that id. Non-billable. |
| 422 | Parameter Not Available | The market or page has not passed its production soak. Non-billable. |
| 422 | Validation Error | A query parameter is missing, unknown, conflicting or unusable. Non-billable. |
| 503 | Upstream Unavailable | The source could not be reached or answered with a challenge. Retryable and never billed. |

## 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)
