Access Brazilian Data via APIs and Curated Datasets
Overview
Provides functions to access data from the 'BrasilAPI', 'Nager.Date API', and 'World Bank API', related to Brazil's postal codes, banks, holidays, company registrations, and economic development data. Additionally, the package includes curated datasets related to Brazil, covering topics such as demographic data (males and females by state and year), river levels, environmental emission factors, film festivals, and yellow fever outbreak records. The package supports research and analysis focused on Brazil by integrating open APIs with high-quality datasets from multiple domains. For more information on the APIs, see: 'BrasilAPI' https://brasilapi.com.br/, 'Nager.Date' https://date.nager.at/Api, 'World Bank API' https://datahelpdesk.worldbank.org/knowledgebase/articles/889392.
Breaking Changes
get_country_info_br()was removed from the package. The 'REST Countries API' v3.1 endpoint it depended on was deprecated by its provider. The replacement v5 endpoint now requires an API key, which is incompatible with CRAN's policy on packages using Internet resources (they must work without user-provided credentials). As a consequence, the 'REST Countries API' is no longer used byBrazilDataAPI.get_brazil_vehicle_brands()was removed from the package due to persistent server errors (HTTP status 500) returned by its underlying data source, which prevented the function from reliably retrieving data and caused it to fail CRAN's requirement that functions using Internet resources fail gracefully rather than error out.
---
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-09
- ERROR12 OK, 1 ERROR2026-06-12
- OK13 OK2026-06-07
Show 4 earlier changesHide 4 earlier changes
- ERROR12 OK, 1 ERROR2026-05-31
- OK13 OK2026-05-05
- ERROR12 OK, 1 ERROR2026-04-30
- OK14 OK2026-03-10
Documentation
- Help pages
- 24includes a package overview page
- Examples that run
- 59%10 run in a plain check (9 of them under a condition) · 1 only when donttest examples are enabled (R CMD check --as-cran) · 6 never run
- Exported functions with examples
- 74%
- Documented parameters
- 45%
- Return-value docs
- 74%
- Help pages citing references
- 0%
Downloads
Repository
Stars over time
Issues over time
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/lightbluetitan/brazildataapi on 2026-10-21.
Dependencies
Installing BrazilDataAPI adds 27 packages (16 with compiled code, 11 MB of source tarballs). Heaviest: farver 1.2 MB, viridisLite 1.2 MB, openssl 1.1 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.3.0Latest2026-07-02 · current release · diff ↗ ·
removed 2 exports
get_brazil_vehicle_brands, get_country_info_br - RR 4.6.0 released · 2026-04-24
- 0.2.02025-09-15 · diff ↗ ·
removed 1 export
get_country_infoadded 11 exports
get_brazil_child_mortality, get_brazil_cpi, get_brazil_energy_use, get_brazil_gdp, get_brazil_holidays, get_brazil_hospital_beds, get_brazil_life_expectancy, get_brazil_literacy_rate, get_brazil_population, get_brazil_unemployment, get_country_info_br - 0.1.02025-07-09
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-07-09
- Total releases
- 3 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 20 KB / 6 files
- Download size
- 164 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("BrazilDataAPI")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.