BrasilAPI
APICommunity-driven API for Brazil's public government data
Overview
BrasilAPI is a community-maintained RESTful API providing access to Brazil’s public government data. It offers endpoints for CEP lookup, IBGE geographic data (states, cities, regions), CPF/CNPJ validation, bank details, national holidays, and more. Responses are in JSON format, simplifying integration into apps. Use cases include building location-based services, validating user documents in e-commerce, integrating holiday calendars, and accessing official stats for research or business intelligence. The API is free, with rate limits to ensure fair usage for all users.
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
- JSON Support
- No API Key Required
- Multiple Public Data Endpoints
- Community Maintained
Frequently Asked Questions
? Is BrasilAPI free to use?
Yes, BrasilAPI is completely free for personal and commercial use, with rate limits to prevent abuse.
? Does BrasilAPI require an API key?
No, most endpoints do not need an API key—you can start using them immediately.
? What is the response format?
All responses are in JSON format, which is lightweight and easy to parse across programming languages.
Top Alternatives
People Also Ask about BrasilAPI
Tool Info
Pros
- ⊕ Free to use
- ⊕ Wide range of public data
- ⊕ Easy integration
- ⊕ Well-documented
- ⊕ Regular updates
Cons
- ⊖ Rate limits on some endpoints
- ⊖ No official SLA
- ⊖ Limited support channels
- ⊖ Data source delays possible