Skip to content

BrazilDataAPI

0.3.0Package record

Access Brazilian Data via APIs and Curated Datasets

1packages depend
5.6Kdownloads / year
81.5%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.3.0

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 by BrazilDataAPI.
  • 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

CRAN checks
13OK
Slowest check: 1.8 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 0.3.0
READMEYes · 484 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.3.0Citation fileYes · software entry onlyWebsiteYes · pkgdown
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

5.6K
CRAN downloads in the past year
Rank #9,434 · ~15/day · ~466/mo
Daily download trend is not available in this view yet.
37730 days
1K90 days
5.6K1 year
Compare downloads with other packages →
Also on75 r2u40 autocran

Repository

3Stars
0Forks
1Open issues
0Open PRs
0Releases
6Commits
1Commit identities
6 commits · Last activity 2026-07-02 · 0% stars, 30d
Responsiveness
not measured

Stars over time

2026-01-04 · 12026-07-07 · 3
PracticesBeta

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.

Docs source (2)
pkgdown

GitHub Pages site last deployed 2026-07-02

pkgdown site last built 2026-07-02

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Depends 1
Depends, Imports or LinkingTo, most downloaded first

Datasets

People & History

People (1)
Author, Maintainer since 0.1.0 (2025)
Releases (3)

Pick two releases to compare their code metrics.

  • 0.3.0Latest
    record
    2026-07-02 · current release · diff ↗ ·
    removed 2 exports
    get_brazil_vehicle_brands, get_country_info_br
  • R
    R 4.6.0 released · 2026-04-24
  • 0.2.0
    record
    2025-09-15 · diff ↗ ·
    removed 1 export
    get_country_info
    added 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.0
    record
    2025-07-09
  • R
    R 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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for BrazilDataAPI version 0.3.0 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy