---
title: "Search Suggest"
method: GET
path: "/api/search-suggest"
---

# Search Suggest

`GET /api/search-suggest`

## Request

- Base URL: `https://pegarex.com.br` (the document declares no server; this is the origin it was published from)
- URL: `https://pegarex.com.br/api/search-suggest`
- Auth: none declared

Autocomplete suggestions for the smart search input.

Parses ``q`` into year tokens (4-digit numbers in 1950–2030) and word tokens,
then matches word tokens against brands → models → versions, returning the
top-N most-listed combinations. Each suggestion carries the IDs the frontend
needs to set filters directly.

## Query parameters

- `q` string, required
- `category` string
- `limit` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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