# PriceRunner Category API Documentation

GET /api/pricerunner/category returns products, filter ranges and the category tree for a category id from the navigation endpoint. It returns the first 48 results only. There is no page or offset parameter.

- **Documentation:** [https://scrappa.co/docs/pricerunner-api/pricerunner_category](https://scrappa.co/docs/pricerunner-api/pricerunner_category)
- **API group:** PriceRunner API
- **Endpoint:** `GET https://scrappa.co/api/pricerunner/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 |
| --- | --- | --- | --- |
| `category` | string | Yes | Category id or slug from the navigation endpoint. |

## Example response

```json
{
    "meta": {
        "attempts": 1,
        "billable": true
    },
    "total": 0,
    "filters": [],
    "success": true,
    "products": [],
    "pagination": {
        "note": "First 48 results only.",
        "size": 48,
        "first_page_only": true
    },
    "category_tree": []
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | One or more query parameters failed validation. |
| 503 | Upstream Unavailable | The public source is temporarily unavailable through every approved route. |

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