Brazil API
Overview
BrasilAPI is a free, community-driven API that centralizes public data about Brazil in one easy-to-use place. You can look up ZIP codes, bank information, CNPJ company data, Brazilian holidays, and much more without any API key. It is one of the best open APIs for developers working with Brazilian data.
Beginner Tip
Start with the CEP (ZIP code) endpoint—it is the most straightforward and returns rich address data including city, state, and neighborhood in a clean JSON format.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from Brazil",
"description": "Community driven API for Brazil Public Data",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
cep The 8-digit Brazilian postal code (CEP) that was queried state Two-letter Brazilian state abbreviation (e.g. SP, RJ) city Name of the city corresponding to the ZIP code neighborhood Neighborhood or district within the city street Street name associated with the postal code Implementation Example
const url = "https://brasilapi.com.br/";
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
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Bank Negara Malaysia Open Data
⭐ Beginner's PickBank Negara Malaysia Open Data provides free access to official financial data published by Malaysia's central bank, including exchange rates, interest rates, and key economic indicators.
BCLaws
BCLaws gives you free access to the full text of British Columbia's laws and regulations.
Brazil Central Bank Open Data
The Brazil Central Bank Open Data API provides free access to official financial and economic data from Brazil s central bank (Banco Central do Brasil).
Brazil Receita WS
Brazil Receita WS lets you look up official information about Brazilian companies using their CNPJ (tax registration number).
Brazilian Chamber of Deputies Open Data
The Brazilian Chamber of Deputies Open Data API provides free access to legislative information from Brazil s lower house of Congress.