Skip to content
Scrappa Get API key
LOOKFANTASTIC API 1 credit / request

LOOKFANTASTIC Autocomplete API Documentation

GET https://scrappa.co/api/lookfantastic/autocomplete

LOOKFANTASTIC Autocomplete API 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.

Cost: 1 credit per request. Failed requests are not billed.

LOOKFANTASTIC Autocomplete API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/lookfantastic/autocomplete
Auth header
x-api-key
Cost
1 credit / request
q = coffee shops
Response preview
200 OK
{
    "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"
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

1 optional filter available.

q string Required

Search text, 2 to 100 characters.

Example value coffee shops
limit integer Optional

Maximum product hits, 1 to 20 (default 5).

Example value 10

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "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

Handle these documented responses before retrying or showing customer-facing failures.

VALIDATION_ERROR

HTTP VALIDATION_ERROR

The query or limit is invalid. Not billed.

UPSTREAM_UNAVAILABLE

HTTP UPSTREAM_UNAVAILABLE

The public source could not be reached. Not billed.

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.