Access Mexican Data via APIs and Curated Datasets
Overview
Provides functions to access data from public RESTful APIs including 'World Bank API', and 'Nager.Date API', covering Mexico's economic indicators, population statistics, literacy rates, and official public holidays. The package also includes curated datasets related to Mexico such as air quality monitoring stations, pollution zones, income surveys, postal abbreviations, election studies, forest productivity and demographic data by state. It supports research and analysis focused on Mexico by integrating reliable global APIs with structured national datasets drawn from open and academic sources. For more information on the APIs, see: 'World Bank API' https://datahelpdesk.worldbank.org/knowledgebase/articles/889392, and 'Nager.Date API' https://date.nager.at/Api.
Breaking Changes
get_country_info_mx()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 byMexicoDataAPI.
---
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-05-05
Show 4 earlier changesHide 4 earlier changes
- ERROR12 OK, 1 ERROR2026-04-30
- OK13 OK2026-04-29
- ERROR13 OK, 1 ERROR2026-04-24
- OK14 OK2026-03-10
Documentation
- Help pages
- 18includes a package overview page
- Examples that run
- 75%6 run in a plain check (5 of them under a condition) · 2 never run
- Exported functions with examples
- 47%
- Documented parameters
- 10%
- Return-value docs
- 47%
- Help pages citing references
- 0%
Downloads
Repository
Stars over time
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/lightbluetitan/mexicodataapi on 2026-10-22.
GitHub Pages site last deployed 2026-07-01
pkgdown site last built 2026-07-01, before release 0.3.0 (2026-07-02)
Dependencies
Installing MexicoDataAPI 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.
- RR 4.6.0 released · 2026-04-24
- 0.3.0Latest
- 0.2.02025-09-14 · diff ↗ ·
removed 1 export
get_country_infoadded 2 exports
get_country_info_mx, get_mexico_holidays - 0.1.02025-07-16
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-07-16
- Total releases
- 3 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 123 KB / 9 files
- Download size
- 303 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("MexicoDataAPI")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-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.