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

[APIs](https://perceptlayer.com/apis) / [Empik](https://perceptlayer.com/apis/empik) / Autocomplete

# Empik: Autocomplete

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

GET `/v1/empik/autocomplete`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `q` | string | Required | Up to 100 characters |

## Example request

Empik

GET /v1/empik/autocomplete?q=wiedzmin 

```
{
  "success": true,
  "query": "wiedzmin",
  "products": [
    "p1102239921",
    "p1766399050",
    "p1102239806"
  ],
  "categories": [
    {
      "id": "31",
      "name": "Książki"
    },
    {
      "id": "37",
      "name": "Zabawki"
    },
    {
      "id": "3763",
      "name": "Gry"
    }
  ],
  "meta": {
    "endpoint_family": "autocomplete",
    "attempts": 1
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded 30 Nov 2026 and shortened.

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

## Response fields

Each item in `categories` has these 2 fields, read from a recorded call that returned 38 items. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `id` | string |
| `name` | string |
