# Heureka Category Products API Documentation

`GET /api/heureka/category` Returns a category page with public rows as in search. The `id` is a category slug from search results. The public category id comes from the site category tree. Name and breadcrumb fall back to the verified page heading when the tree lacks a slug. Missing fields are null and named in `unavailable_fields`. `public_ids` lists canonical urls that the detail routes accept unchanged. Each market keeps its own id set.

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

## 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 | Category slug from search results. |
| `market` | string | No | Site variant: cz or sk. |
| `page` | integer | No | Result page. |
| `sort` | string | No | Numeric sort code published by the site. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/heureka/category?id=mobilni-telefony&market=cz&sort=1"
```

## Example response

```json
{
    "success": true,
    "category": {
        "slug": "mobilni-telefony",
        "id": "12345",
        "name": "Mobiln\u00ed telefony",
        "breadcrumb": "Elektronika > Mobiln\u00ed telefony"
    },
    "meta": {
        "endpoint_family": "heureka-category",
        "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)
