# LOOKFANTASTIC Ids API Documentation

<p><strong>LOOKFANTASTIC Ids API</strong> returns public 8-digit skus and urls from a verified category page. The skus pass unchanged into the product, reviews and category routes. One lookup per request.</p><p><strong>Cost:</strong> 1 credit per request. Failed requests are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/lookfantastic-api/lookfantastic_ids](https://scrappa.co/docs/lookfantastic-api/lookfantastic_ids)
- **API group:** LOOKFANTASTIC API
- **Endpoint:** `GET https://scrappa.co/api/lookfantastic/ids`

## 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 |
| --- | --- | --- | --- |
| `source` | string | No | products (default). |
| `path` | string | No | Public category path, for example /health-beauty/face/vitamin-c/serums. |
| `page` | integer | No | One-based page number (default 1). |
| `per_page` | integer | No | Ids per page, 1 to 100 (default 20). |

## Example response

```json
{
    "data": {
        "items": [
            {
                "id": "14300780",
                "url": "https://www.lookfantastic.com/p/vitamin-c-serum/14300780/"
            }
        ],
        "source": "products",
        "pagination": {
            "page": 1,
            "total": 42,
            "has_more": true,
            "per_page": 20
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "ids"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Error | The source or paging value is invalid. 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)
