# Heureka Shop Offers API Documentation

`GET /api/heureka/offers` Returns the first public offer rows with shop, price, currency, availability and delivery price only when the site isolates it. `url` and `delivery_price` are null when the site does not publish them and are named in `unavailable_fields`. `offer_count` is the whole published count, while the returned array is only the published rows; `complete` is always false.

## 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_offers](https://scrappa.co/docs/heureka-api/heureka_offers)
- **API group:** Heureka API
- **Endpoint:** `GET https://scrappa.co/api/heureka/offers`

## 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/offers?id=https%3A%2F%2Fmobilni-telefony.heureka.cz%2Fapple-iphone-17-256gb-black%2F&market=cz"
```

## Example response

```json
{
    "success": true,
    "offers": [
        {
            "shop": "ExampleShop",
            "price": 21996,
            "currency": "CZK",
            "availability": "InStock"
        }
    ],
    "complete": false,
    "meta": {
        "endpoint_family": "heureka-offers",
        "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)
