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

Lyko Autocomplete API Documentation

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

Lyko Autocomplete API returns the public search suggestions for a query prefix. Each item has the suggestion text and the search url it opens. Analytics fields from the source are removed.

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

Lyko Autocomplete API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/lyko/autocomplete
Auth header
x-api-key
Cost
1 credit / request
query = coffee shops
Response preview
200 OK
{
    "data": {
        "suggestions": [
            {
                "url": "/sok?q=serum",
                "text": "serum"
            }
        ]
    },
    "success": true
}

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.

query string Required

Query prefix, 1 to 100 characters.

Example value coffee shops
locale string Optional

Site path. Default sv.

Example value en-US

Response Schema

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

Example response fields

Scan these fields before integrating.

data success
JSON Response
200 OK
{
    "data": {
        "suggestions": [
            {
                "url": "/sok?q=serum",
                "text": "serum"
            }
        ]
    },
    "success": true
}

Errors

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

Validation error

No query was sent

{
    "meta": {
        "billable": false
    },
    "error": {
        "code": "VALIDATION_ERROR",
        "message": "The request cannot be served as sent."
    },
    "success": false
}

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.