Skip to content

MexicoDataAPI

Access Mexican Data via APIs and Curated Datasets

v0.2.0 · Sep 13, 2025 · GPL-3

Description

Provides functions to access data from public RESTful APIs including 'REST Countries API', 'World Bank API', and 'Nager.Date API', covering Mexico's economic indicators, population statistics, literacy rates, international geopolitical information 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: 'REST Countries API' <https://restcountries.com/>, 'World Bank API' <https://datahelpdesk.worldbank.org/knowledgebase/articles/889392>, and 'Nager.Date API' <https://date.nager.at/Api>.

Downloads

466

Last 30 days

7630th

1.6K

Last 90 days

4.8K

Last year

Trend: -20.9% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 5, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 30, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [3s/24s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional t
...[truncated]...
request_fetch.write_memory(req$output, req$url, handle)
   6. │       └─curl::curl_fetch_memory(url, handle = handle)
   7. └─curl:::raise_libcurl_error(...)
  
  [ FAIL 2 | WARN 0 | SKIP 22 | PASS 149 ]
  Error:
  ! Test failures.
  Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 29, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 24, 2026
ERROR r-devel-windows-x86_64

tests

Running 'testthat.R' [5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test 
...[truncated]...
 Mexico ──
  Expected `result$subregion` to equal "North America".
  Differences:
  `actual` is NULL
  `expected` is a character vector ('North America')
  
  
  [ FAIL 15 | WARN 0 | SKIP 22 | PASS 149 ]
  Error:
  ! Test failures.
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies httr jsonlite dplyr scales tibble MexicoDataAPI

Version History

new 0.2.0 Mar 10, 2026
updated 0.2.0 ← 0.1.0 diff Sep 13, 2025
new 0.1.0 Jul 15, 2025