# LOOKFANTASTIC Category API Documentation

<p><strong>LOOKFANTASTIC Category API</strong> returns the product grid and facet tree of a public category path. Sponsored tiles are excluded. The path comes from the ids route or from the public site. Price, brand, sort and one-based page are honoured. Brand and price are checked again after the upstream call; see <code>pagination.post_filtered</code> and <code>pagination.filtered_count</code>.</p><p><strong>Cost:</strong> 1 credit per request. Failed requests are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/lookfantastic-api/lookfantastic_category](https://scrappa.co/docs/lookfantastic-api/lookfantastic_category)
- **API group:** LOOKFANTASTIC API
- **Endpoint:** `GET https://scrappa.co/api/lookfantastic/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 |
| --- | --- | --- | --- |
| `path` | string | Yes | Public category path, for example /health-beauty/face/vitamin-c/serums. |
| `brand` | string | No | Brand from the facet tree. |
| `price_min` | number | No | Minimum numeric price. |
| `price_max` | number | No | Maximum numeric price. |
| `sort` | string | No | A supported sort value. |
| `page` | integer | No | One-based page number, 1 to 50 (default 1). |
| `limit` | integer | No | Products per page, 1 to 100 (default 20). |

## Example response

```json
{
    "data": {
        "path": "/health-beauty/face/vitamin-c/serums",
        "facets": [],
        "products": [
            {
                "sku": "14300780",
                "price": {
                    "current": 10.04,
                    "currency": "GBP",
                    "discount": 4.95,
                    "original": 14.99
                },
                "title": "Vitamin C Serum"
            }
        ],
        "pagination": {
            "page": 1,
            "limit": 20,
            "total": 42,
            "has_more": true
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "category"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Error | The path or a filter is invalid. Not billed. |
|  | Error | No such category. Not billed. |
|  | Error | The public source could not be reached. Not 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)
