---
title: "Vehicle"
method: GET
path: "/api/calculator/vehicle/{fipe_code}"
tags: ["calculator"]
---

# Vehicle

`GET /api/calculator/vehicle/{fipe_code}`

## 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/vehicle/{fipe_code}`
- Auth: none declared

Everything the result page shows, in one call, for anyone (no login):
- the version's variants (year x fuel) from ONE FIPE table (see _LATEST_MONTH_OF);
- the chosen variant's price and its monthly history back to Dez/2007 (fipe_series.py),
  with the 1- and 12-month change;
- what the market asks for it: live ads with this FIPE code and model year (median and
  quartiles; index-only on idx_car_listings_fipe_cover), and a link to those ads.

## Path parameters

- `fipe_code` string, required

## Query parameters

- `ano` string, nullable: 2020, 0km …
- `combustivel` string, nullable

## 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)
