# Kieskeurig Suggestions API Documentation

Scrappa's `GET /api/kieskeurig/autocomplete` endpoint returns product name suggestions for a short token as structured JSON. It is a suggestion source, not a full-text search. Use the returned id with `GET /api/kieskeurig/product`. One request costs one credit. Failed requests are not billed.

- **Documentation:** [https://scrappa.co/docs/kieskeurig-api/kieskeurig_autocomplete](https://scrappa.co/docs/kieskeurig-api/kieskeurig_autocomplete)
- **API group:** Kieskeurig API
- **Endpoint:** `GET https://scrappa.co/api/kieskeurig/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 | Short product name token, e.g. koelkast. Required. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/kieskeurig/autocomplete?q=koelkast"
```

## Example response

```json
{
    "success": true,
    "q": "koelkast",
    "suggestions": [
        {
            "id": 52156666,
            "title": "Samsung Koelkast RB37",
            "brand": "Samsung",
            "price": 699,
            "currency": "EUR"
        }
    ],
    "count": 1,
    "meta": {
        "duration_ms": 536,
        "attempts": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | One or more query parameters failed validation. |
| 422 | Invalid Category | The category slug is not public. Use a slug from the categories endpoint. |
| 422 | Invalid Brand | The brand is not present in the returned category set. Allowed brands are listed in error.brands. Not billed. |
| 404 | No Public Offers | No public shop offers are available for this product. Not billed. |
| 404 | No Public Price History | No public dated price points are available for this product. Not billed. |
| 503 | Upstream Unavailable | Kieskeurig did not return usable public data. Please retry. |

## 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)
