Brasil API
@Brasil API
Acesso programático de informações é algo fundamental na comunicação entre sistemas, mas, para nossa surpresa, uma informação tão útil e pública quanto um CEP não consegue ser acessada diretamente por um navegador por conta da API dos Correios não possuir
Transformando o Brasil em uma API
The BrasilAPI is a collaborative open-source project that centralizes and standardizes essential Brazilian public and business data. It makes information such as postal codes, banks, CNPJs, holidays, and financial indicators available via a unified REST API.
With XPack, BrasilAPI becomes an MCP service — enabling AI Agents to instantly query Brazil’s data ecosystem conversationally.
📚 API Features
📍 CEP (Postal Codes)
GET /cep/v1/{cep}
→ Retrieve address info (street, city, state) for a given ZIP code.- Supports multiple providers for redundancy (Correios, ViaCEP, etc.).
🏦 Banks
GET /banks/v1
→ List all registered Brazilian banks.GET /banks/v1/{code}
→ Get details for a specific bank by code.
🆔 CNPJ (Company Registry)
GET /cnpj/v1/{cnpj}
→ Retrieve company registration data, including name, address, and economic activity (CNAE).
🗓️ Holidays
GET /feriados/v1/{ano}
→ List all national holidays for a given year.
💱 Financial Indicators
GET /taxas/v1
→ Access official rates and indicators (SELIC, CDI, etc.).
📚 ISBN
GET /isbn/v1/{isbn}
→ Look up book metadata from ISBN codes.
🌐 Domain Info
GET /registrobr/v1/{domain}
→ Check availability and registration info for .br domains.
🎨 Miscellaneous
- IBGE data, vehicle info, and other public datasets are available depending on provider updates.
🚀 Example Use Cases
- 📱 E-commerce Apps — Auto-fill address fields by CEP lookup.
- 📊 Fintech Platforms — Validate bank codes, fetch SELIC/CDI rates, or verify CNPJs.
- 🏛️ GovTech Solutions — Build dashboards combining economic and registry data.
- 🤖 AI Assistants — Answer queries like “What are the holidays in Brazil for 2025?” or “Get info on bank code 237.”
⚡ Powered by XPack
Normally, developers must integrate each dataset separately. With XPack, BrasilAPI is converted into a single MCP service, making it:
- 🚀 Plug-and-play for AI Agents.
- ⚡ Monetizable via per-call billing.
- 🌍 Part of a growing marketplace of conversational APIs.
👉 Just like BrasilAPI unified Brazilian open data, XPack unifies APIs into AI-ready MCP services. Learn more at XPack.