BrasilAPI
APICommunity-driven API for Brazil's public government data
Overview
BrasilAPI provides RESTful endpoints for accessing Brazil’s public government data, including CEP (ZIP code) details, IBGE geographic data (states, cities), CPF/CNPJ tax ID validation, bank information, national holidays, and more. Responses are in JSON format. It’s community-maintained, so endpoints are updated by contributors. Use cases include integrating address validation in e-commerce apps, verifying tax IDs for fintech services, displaying local holidays in travel tools, or accessing geographic data for regional Brazilian apps.
Example Integration (JavaScript)
fetch('https://brasilapi.com.br/')
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error(err)); Key Features
- RESTful API design
- JSON response format
- No API key required for most endpoints
- Community-driven development
- Covers diverse public data domains (geography, finance, identity)
- Open-source project
Frequently Asked Questions
? Is BrasilAPI free to use?
Yes, BrasilAPI is completely free for all users, including commercial applications, as per its open-source license.
? Does it require an API Key?
Most endpoints do not require an API key. You can access them directly without authentication for basic usage.
? What is the response format?
All endpoints return data in JSON format, which is standard and easy to parse for most programming languages.
Top Alternatives
People Also Ask about BrasilAPI
Tool Info
Pros
- ⊕ Free for commercial and non-commercial use
- ⊕ Easy to integrate with standard REST practices
- ⊕ Wide range of Brazilian public data endpoints
- ⊕ Regular updates from community contributors
- ⊕ No rate limits for non-commercial usage
- ⊕ Lightweight and fast responses
Cons
- ⊖ No official service level agreement (SLA)
- ⊖ Occasional data delays possible due to community maintenance
- ⊖ Limited support for niche public data categories
- ⊖ No paid tiers for priority support or higher rate limits