# Universal.at Category Products API Documentation

Scrappa's `GET /api/universal-at/category_products` returns the products of one category in the same item shape as search. Pass a `path` from `categories`, unchanged. `categories` is the only source for paths.

## Landing paths

A path without a product list, such as `/mode/damen/`, answers with `has_products: false`, empty `items` and a `children` list. Each child has `id`, `name`, `path`, `level`, `parent_id` and `has_children`. Follow a child `path` in this same route to reach a leaf with products. A leaf answers with `has_products: true`. One upstream lookup serves both cases.

## Pages

`page` starts at 1 and holds 12 items. `sort` is `relevance`, `price-asc` or `price-desc`. The offset is applied at the source; a later page never returns page 1 items. `has_more` says whether another page exists.

## Credits

A successful request costs **1 credit**. Errors and `404` answers cost nothing. The response shows the charge in `meta.credits_charged`.

- **Documentation:** [https://scrappa.co/docs/universal-at-api/universal_at_category_products](https://scrappa.co/docs/universal-at-api/universal_at_category_products)
- **API group:** Universal.at API
- **Endpoint:** `GET https://scrappa.co/api/universal-at/category_products`

## 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 |
| --- | --- | --- | --- |
| `path` | string | Yes | Category path, for example /mode/damen/waesche-bademode/bademode/. |
| `sort` | string | No | relevance, price-asc or price-desc. |
| `page` | integer | No | Result page of 12 items. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/universal-at/category_products?path=%2Fmode%2Fdamen%2Fwaesche-bademode%2Fbademode%2F&page=1"
```

## Example response

```json
{
    "success": true,
    "path": "/mode/damen/waesche-bademode/bademode/",
    "items": [
        {
            "position": 1,
            "id": "AKLBB2029112026",
            "style_id": "AKLBB2029112026",
            "sku": "2340273220-0-2029112026",
            "article_number": "23402732",
            "title": "Smartphone \u00bbiPhone 17\u00ab Lavendel",
            "brand": "Apple",
            "category": "Technik",
            "selling_points": [
                "6,3 Zoll Display",
                "Ceramic Shield 2"
            ],
            "url": "/p/AKLBB2029112026?sku=2340273220-0",
            "price": 1031.08,
            "original_price": 1099,
            "price_difference": 67.92,
            "discount_percentage": 6.18,
            "currency": "EUR",
            "price_from": true,
            "rating": 4.3,
            "review_count": 4,
            "availability": "vorr\u00e4tig - kommt in 4 bis 6 Werktagen",
            "image": "https://bilder.universal.at/i/empiriecom/826fea89c3154df9201ad925433381dd.jpg"
        }
    ],
    "total": 3596,
    "page": 1,
    "page_size": 12,
    "has_more": true,
    "sort": "relevance",
    "has_products": true,
    "applied_filters": {
        "path": "/mode/damen/waesche-bademode/bademode/"
    },
    "filtered_out": 0,
    "meta": {
        "endpoint_family": "universal-at-category-products",
        "billable": true,
        "attempts": 1,
        "credits_charged": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing, unknown or unusable. Unknown parameters are rejected, never ignored. Non-billable. |
| 503 | Upstream Unavailable | Universal.at could not be reached in time. Retryable and never billed. Clients are never rate limited. |
| 503 | Unexpected Answer Shape | Universal.at answered with an unknown shape. Not retryable and never billed: a retry of the same call cannot change the shape. |

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