---
title: "Search Vehicles"
method: GET
path: "/api/calculator/search"
tags: ["calculator"]
---

# Search Vehicles

`GET /api/calculator/search`

## 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/calculator/search`
- Auth: none declared

Type-ahead over FIPE's current table (fipe_search.py): versions ranked by match and by
how many ads we have of them, plus the brands the first word could mean. An empty query
returns the popular brands and versions instead.

## Query parameters

- `q` string: Marca, modelo, versão, ano ou código FIPE
- `tipo` string, nullable: carros | motos | caminhoes
- `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)
