# LOOKFANTASTIC Autocomplete API Documentation

<p><strong>LOOKFANTASTIC Autocomplete API</strong> returns instant search corrections, suggested queries and product hits with sku, title and full-size images. The skus pass unchanged into the product and reviews routes.</p><p><strong>Cost:</strong> 1 credit per request. Failed requests are not billed.</p>

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

## 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 |
| --- | --- | --- | --- |
| `q` | string | Yes | Search text, 2 to 100 characters. |
| `limit` | integer | No | Maximum product hits, 1 to 20 (default 5). |

## Example response

```json
{
    "data": {
        "query": "serum",
        "products": [
            {
                "sku": "14300780",
                "url": "https://www.lookfantastic.com/p/vitamin-c-serum/14300780/",
                "title": "Vitamin C Serum",
                "images": []
            }
        ],
        "corrections": [],
        "suggested_queries": [
            "vitamin c serum"
        ]
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "autocomplete"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Error | The query or limit 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)
