Brazilian Vehicles and Prices API

⭐ Beginner's Pick Vehicle / No Auth Required Beginner HTTPS
Free to Use Varies (check documentation)

Overview

This API provides official vehicle pricing data from FIPE (Fundacao Instituto de Pesquisas Economicas), Brazil's most trusted automotive price guide. You can query prices for cars, motorcycles, and trucks by brand, model, and year. No API key is required, making it easy to start using immediately.

💡

Beginner Tip

The API works in steps: first fetch brands, then models for a brand, then years, and finally the price for a specific year. Start by calling the brands endpoint to understand the data structure before building your queries.

Available Data

vehicle make and model
year and specifications
fuel economy
VIN decode data

Example Response

JSON Response
{
  "make": "Toyota",
  "model": "Camry",
  "year": 2025,
  "engine": "2.5L 4-cylinder",
  "fuel_economy": {
    "city_mpg": 28,
    "highway_mpg": 39
  },
  "msrp": 28400
}

Field Reference

codigo Unique code for the brand, model, or year — used to build subsequent queries.
nome Human-readable name of the brand, model, or fuel type.
Valor FIPE reference price formatted as a Brazilian Real string (e.g., "R$ 45.000,00").
Marca Vehicle manufacturer name.
Modelo Vehicle model name.
AnoModelo Model year of the vehicle.

Implementation Example

const url = "https://deividfortuna.github.io/fipe/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

404 Not Found The brand code, model code, or year code provided does not exist.
Always fetch valid codes from the previous step in the hierarchy (brands then models then years then price) rather than guessing IDs.
Empty response Querying a vehicle type that has no data for the given parameters.
Make sure you use the correct vehicle type path: "carros" for cars, "motos" for motorcycles, "caminhoes" for trucks.
CORS error in browser The API may block cross-origin requests from browser-based apps.
Use a server-side proxy or a backend function to call the API instead of directly from client-side JavaScript.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 20/20
🔒 Security 15/15
🛠 Developer XP 20/20
✓ Reliability 7/15
Response Time 28ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS NO
Category Vehicle
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →