# FIPE Brazil Vehicle Prices & Valuation — Cars, Motos & Trucks (`aleandrade.ia/fipe-brazil-vehicle-prices-api`) Actor

Extract official Tabela FIPE Brazil vehicle market valuations in BRL for cars, motorcycles, and trucks. List brands, search models by keyword, or look up direct FIPE codes across model years.

- **URL**: https://apify.com/aleandrade.ia/fipe-brazil-vehicle-prices-api.md
- **Developed by:** [Alexandre Andrade](https://apify.com/aleandrade.ia) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## FIPE Brazil Vehicle Prices & Valuation API — Cars, Motorcycles & Trucks (Tabela FIPE Oficial)

Extract **official Brazilian Tabela FIPE market valuations in BRL (`R$`)** for **cars (`carros`), motorcycles (`motos`), and trucks (`caminhoes`)** in seconds — ready for **JSON, CSV, Excel, n8n, Make, WhatsApp bots, auction margin calculators, insurance platforms, and dealership CRMs**.

> **Português (PT-BR):** Extraia preços atualizados da **Tabela FIPE Oficial** (carros, motos e caminhões) com código FIPE, valor em reais (`R$` + numérico), ano-modelo, Zero KM, combustível e mês de referência — ideal para lojistas, repasses, leilões (Superbid/Copart/Sodré Santoro), seguradoras e bots de WhatsApp/n8n.

***

### Key Features / Funcionalidades

1. **Search by Brand & Model Keyword (`mode: "valuations"`):**
   - Query any brand and model keyword — e.g., `brandQuery: "honda"`, `modelQuery: "cg 160"` or `"civic"`, `"corolla"`, `"fazer"`, `"onix"`, `"hilux"`, `"delivery"` — and automatically extract current BRL market prices across model years (sorted newest first, including Zero KM).
2. **Direct FIPE Code Lookup (`fipeCodes: ["004278-1", "811192-8"]`):**
   - Pass an array of FIPE codes (cars, motorcycles, or trucks mixed together!) and automatically resolve vehicle category, model years, and official BRL valuations.
3. **Full Brand Directory (`mode: "brands"`):**
   - List all official FIPE brands (`codigoMarca`, `marca`) for `carros`, `motos`, or `caminhoes`.
4. **Dual-Engine High Availability & Ultra-Low Compute Cost:**
   - Pure, fast HTTP JSON architecture with automatic failover between Official FIPE (`veiculos.fipe.org.br`) and Parallelum FIPE CDN — **zero headless browser bloat** and **no residential proxy required**.

***

### Sample Output / Exemplo de Saída JSON

```json
{
  "recordType": "valuation",
  "codigoFipe": "811192-8",
  "marca": "HONDA",
  "modelo": "CG 160 TITAN",
  "anoModelo": 2026,
  "anoModeloLabel": "2026",
  "isZeroKm": false,
  "combustivel": "Flex",
  "siglaCombustivel": "F",
  "valor": "R$ 21.503,00",
  "valorNumerico": 21503,
  "moeda": "BRL",
  "mesReferencia": "novembro de 2026",
  "categoriaVeiculo": "motos",
  "tipoVeiculo": 2,
  "codigoMarca": "80",
  "codigoModelo": "11667",
  "codigoAno": "2026-5",
  "autenticacaoFipe": "mch8z80t4xc0",
  "fonte": "fipe-oficial",
  "scrapedAt": "2026-11-23T05:20:00.000Z"
}
```

***

### Quick Input Examples / Exemplos Rápidos de Uso

#### 1. Honda CG 160 Motorcycles (Motos)

```json
{
  "mode": "valuations",
  "vehicleType": "motos",
  "brandQuery": "honda",
  "modelQuery": "cg 160",
  "maxYearsPerModel": 4,
  "maxItems": 20
}
```

#### 2. Direct FIPE Codes Lookup (Cars + Motorcycles Mixed)

```json
{
  "fipeCodes": ["004278-1", "811192-8"],
  "maxYearsPerModel": 5
}
```

#### 3. List All Motorcycle or Truck Brands

```json
{
  "mode": "brands",
  "vehicleType": "motos",
  "maxItems": 200
}
```

***

### Top Use Cases / Casos de Uso

- **Auction Snipers & Flippers (Leilões de Veículos):** Compare live auction bids (Superbid, Copart, Sodré Santoro, VIP Leilões) against real-time `valorNumerico` FIPE prices to calculate instant profit margins (`% abaixo da FIPE`).
- **WhatsApp & n8n Dealership Bots:** Power instant trade-in valuation workflows when leads send vehicle model & year on WhatsApp.
- **Insurance Tech, Fleet & Financing Analytics:** Track monthly vehicle depreciation curves across `carros`, `motos`, and `caminhoes`.

# Actor input Schema

## `mode` (type: `string`):

Choose 'valuations' to search brands/models and extract BRL FIPE prices, 'fipe_codes' for direct FIPE code lookup, or 'brands' to list all brands.

## `vehicleType` (type: `string`):

Select 'carros' (cars & utilities), 'motos' (motorcycles & scooters), or 'caminhoes' (trucks & buses).

## `brandQuery` (type: `string`):

Brand name filter (e.g., 'honda', 'yamaha', 'toyota', 'vw', 'chevrolet', 'fiat', 'byd', 'scania'). Leave empty to scan popular brands automatically.

## `modelQuery` (type: `string`):

Model name or keyword filter (e.g., 'civic', 'corolla', 'cg 160', 'fazer', 'onix', 'hilux'). Multi-word queries match flexibly.

## `fipeCodes` (type: `array`):

List of FIPE codes (e.g., \['004278-1', '811192-8']) to look up directly across model years. Automatically runs direct code lookup when provided.

## `yearFilter` (type: `string`):

Filter for a specific model year (e.g., '2026', '2025', '2024') or 'zero' / '32000' for Zero KM brand-new valuations.

## `includeZeroKm` (type: `boolean`):

Include Zero KM (code 32000) brand-new showroom prices alongside used model years.

## `maxYearsPerModel` (type: `integer`):

Maximum number of model years (newest first) to fetch per matched vehicle model or FIPE code.

## `maxItems` (type: `integer`):

Maximum total number of FIPE records to return in the dataset.

## Actor input object example

```json
{
  "mode": "valuations",
  "vehicleType": "carros",
  "brandQuery": "Honda",
  "modelQuery": "Civic",
  "fipeCodes": [],
  "includeZeroKm": true,
  "maxYearsPerModel": 5,
  "maxItems": 25
}
```

# Actor output Schema

## `valuations` (type: `string`):

Structured dataset containing extracted FIPE vehicle valuations, brands, or model records in JSON/CSV/Excel.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "brandQuery": "Honda",
    "modelQuery": "Civic"
};

// Run the Actor and wait for it to finish
const run = await client.actor("aleandrade.ia/fipe-brazil-vehicle-prices-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "brandQuery": "Honda",
    "modelQuery": "Civic",
}

# Run the Actor and wait for it to finish
run = client.actor("aleandrade.ia/fipe-brazil-vehicle-prices-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "brandQuery": "Honda",
  "modelQuery": "Civic"
}' |
apify call aleandrade.ia/fipe-brazil-vehicle-prices-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,aleandrade.ia/fipe-brazil-vehicle-prices-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/HHcMVO5xj1lBcMd8P/builds/Uo5ZpdwOSk5dDCpYq/openapi.json
