---
title: "Get Fipe History"
method: GET
path: "/api/fipe/history"
---

# Get Fipe History

`GET /api/fipe/history`

## 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/fipe/history`
- Auth: none declared

Monthly FIPE price of (fipe_code, year): FIPE's own tables plus the price history back
to Dez/2007 (migration 053) — ONE fuel's line, the listing's `fuel` when FIPE prices it
(fipe_series.py explains the rule; mixing fuels drew a zigzag).

A model year FIPE does not price falls back to the 0 km rows the old loader stamped with
that year (`zero_km: true`) — exactly what this showed before the switch; fipe_years.py.

Beside it (migration 058, fipe_outlook.py): `market`, the monthly median asking price of our
ads for this code and year, and `forecast`, the next 6 months of FIPE with an 80% band —
neither for a 0 km stand-in. A plain `def`: its database work blocks, and as a coroutine it
froze the worker for every visitor while it ran.

## Query parameters

- `fipe_code` string, required
- `year` integer, required
- `fuel` 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)
