---
title: "Autocomplete Product Search"
method: GET
path: "/food/products/suggest"
tags: ["products"]
---

# Autocomplete Product Search

`GET /food/products/suggest`

## Request

- Base URL: `https://api.spoonacular.com`
- URL: `https://api.spoonacular.com/food/products/suggest`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/spoonacular/apis/spoonacular-api/docs/food/products/suggest/get.ts> (a function with typed inputs; its response is checked against the schema)

Generate suggestions for grocery products based on a (partial) query. The matches will be found by looking in the title only.

## Query parameters

- `query` string, required
- `number` integer

## Response `200`

Success

- object
  - `results` object[], required
    - `id` integer, required
    - `title` string, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/spoonacular/apis/spoonacular-api.md) - [All operations](https://skmtc.dev/spoonacular/apis/spoonacular-api/llms.txt) - [OpenAPI document](https://skmtc.dev/spoonacular/apis/spoonacular-api/revisions/bc2fbe4e8981?raw)
