---
title: "Knuspr API: Autocomplete | Perceptlayer"
description: "Autocomplete from Knuspr as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/knuspr/autocomplete
---

[APIs](https://perceptlayer.com/apis) / [Knuspr](https://perceptlayer.com/apis/knuspr) / Autocomplete

# Knuspr: Autocomplete

Autocomplete from Knuspr as JSON. 1 credit per successful call.

GET `/v1/knuspr/autocomplete`

## Parameters

Send parameters in the query string.

Required Send `query` or `suggestion`.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Optional | Up to 120 characters |
| `suggestion` | boolean | Optional | Any |
| `limit` | integer | Optional | Any |

## Example request

Knuspr

GET /v1/knuspr/autocomplete?query=milch 

```
{
  "success": true,
  "data": {
    "query": "milch",
    "mode": "typeahead",
    "autocomplete": {
      "query": "milch",
      "product_ids": [
        "97820",
        "79540",
        "95793"
      ],
      "categories": [
        {
          "id": "533",
          "name": "Milch, Molkerei & Butter",
          "link": "/c533-milch-molkerei-butter",
          "type": "CATEGORY"
        },
        {
          "id": "546",
          "name": "Frischmilch",
          "link": "/c546-frischmilch",
          "type": "CATEGORY"
        },
        {
          "id": "5463",
          "name": "Haltbare Milch (H-Milch)",
          "link": "/c5463-haltbare-milch-h-milch",
          "type": "CATEGORY"
        }
      ],
      "recipes": [
        "60",
        "1045",
        "4626"
      ],
      "total_hits": 1066,
      "total_category_hits": 3,
      "total_recipe_hits": 16,
      "show_all_link": "/suche/milch"
    }
  },
  "meta": {
    "endpoint_family": "autocomplete"
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded 30 Nov 2026 and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/knuspr?try=autocomplete#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

`data` has these 2 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `mode` | string |
| `autocomplete` | object |
