apifetch: Token-Authenticated REST API Retrieval Toolkit

A small, dependency-light toolkit for talking to token-authenticated REST APIs. It manages authentication tokens in process environment variables (never written to disk), builds requests with configurable authentication and pagination strategies, and retrieves paginated data either one page at a time or in chunks combined into a single tibble. The design is API-agnostic: a single 'apifetch_api' profile describes an endpoint together with how it authenticates and paginates, so the same verbs work across different services.

Version: 0.1.0
Depends: R (≥ 4.1.0)
Imports: cli, dplyr, httr2, stats, tibble, utils
Suggests: knitr, rmarkdown, testthat (≥ 3.0.0)
Published: 2026-07-02
DOI: 10.32614/CRAN.package.apifetch (may not be active yet)
Author: André Leite [aut, cre], Hugo Vasconcelos [aut], Diogo Bezerra [aut], Marcos Wasilew [aut], Carlos Amorin [aut]
Maintainer: André Leite <leite at castlab.org>
BugReports: https://github.com/StrategicProjects/apifetch/issues
License: MIT + file LICENSE
URL: https://github.com/StrategicProjects/apifetch, https://strategicprojects.github.io/apifetch/
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: apifetch results

Documentation:

Reference manual: apifetch.html , apifetch.pdf
Vignettes: Use case: the Big Data PE API (source, R code)

Downloads:

Package source: apifetch_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): apifetch_0.1.0.tgz, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=apifetch to link to this page.