Skip to content

ChinAPIs

0.2.0Package record

Access Chinese Data via Public APIs and Curated Datasets

0packages depend
3.1Kdownloads / year
32.5%test coverage
13/13flavors OK

Overview

About

Provides functions to access data from public RESTful APIs including 'Nager.Date' and 'World Bank API', retrieving real-time or historical data related to China, such as holidays and economic indicators. Additionally, the package includes one of the largest curated collections of open datasets focused on China and Hong Kong, covering topics such as air quality, demographics, input-output tables, epidemiology, political structure, names, and social indicators. The package supports reproducible research and teaching by integrating reliable international APIs and structured datasets from public, academic, and government sources. For more information on the APIs, see: 'Nager.Date' https://date.nager.at/Api, 'World Bank API' https://datahelpdesk.worldbank.org/knowledgebase/articles/889392.

Changes in 0.2.0

Breaking Changes

  • **Removed get_country_info_cn()** from the package. This function depended on the 'REST Countries' API v3.1 endpoint, which was deprecated by its provider. The replacement v5 endpoint now requires an API key, which is incompatible with CRAN's policy that packages using Internet resources must work without user-supplied credentials. As a consequence, all associated tests, documentation, and examples have been removed, and references to the 'REST Countries API' have been removed from the package (DESCRIPTION, README.md, vignette).
  • The package now integrates **two** APIs instead of three: **World Bank API** and **Nager.Date API**.

---

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.6 min · r-devel-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
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.2.0
READMEYes · 405 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.2.0Citation fileYes · software entry onlyWebsiteYes · pkgdown
Help pages
47includes a package overview page
Examples that run
100%11 run in a plain check (11 of them under a condition)
Exported functions with examples
24%
Documented parameters
3%
Return-value docs
24%
Help pages citing references
0%

Downloads

3.1K
CRAN downloads in the past year
Rank #9,144 · ~9/day · ~261/mo
Daily download trend is not available in this view yet.
37130 days
1.1K90 days
3.1K1 year
Compare downloads with other packages →
Also on91 r2u10 autocran

Repository

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

Stars over time

2026-05-16 · 12026-07-29 · 4
PracticesBeta

3 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/lightbluetitan/chinapis 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 ChinAPIs 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
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

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

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • unarchivedReturned to CRAN
    2026-02-12
  • archivedRemoved from CRAN
    2026-02-12
    policy violation On Internet access
  • 0.2.0Latest
    record
    2026-02-12 · current release · diff ↗ ·
    removed 1 export
    get_country_info_cn
  • 0.1.1
    record
    2026-02-12 · diff ↗
  • 0.1.0
    record
    2025-08-26
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2025-08-26
Total releases
3 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Bundled data
1.5 MB / 35 files
Download size
1.6 MB

Cite

Cite this package

Run in R for the authors' entry:

citation("ChinAPIs")

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 ChinAPIs version 0.2.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