---
title: "Product search autocomplete"
method: GET
path: "/buscaautocomplete"
tags: ["Autocomplete"]
---

# Product search autocomplete

`GET /buscaautocomplete`

Retrieves product's information related to the searched string.
`{{searchString}} is the part of string the user is looking for.
E.g.: `ref` | `refrig` | `refrigerator`

## Query parameters

- `productNameContains` string, required

## Headers

- `Content-Type` string, required
- `Accept` string, required

## Response `200`

OK

- object — The root schema comprises the entire JSON document.
  - `itemsReturned` object[], required — Autocomplete returned items.
    - `items` object[], required — Array of products.
      - `productId` string — Product ID.
      - `itemId` string — Item ID.
      - `name` string — Product name.
      - `nameComplete` string — Complete product name.
      - `imageUrl` string — Product image URL.
    - `thumb` string, required — Item thumbnail.
    - `thumbUrl` string, nullable, required — Item thumbnail URL.
    - `name` string, required — Item name.
    - `href` string, required — Item URL.
    - `criteria` string, nullable, required — Item criteria.

---

[API](https://skmtc.dev/vtex/apis/legacy-search-api.md) · [All operations](https://skmtc.dev/vtex/apis/legacy-search-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vtex/legacy-search-api/revisions/f6572c6b745b/schema)
