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.2.0
Depends: R (≥ 4.1.0)
Imports: cli, dplyr, httr2 (≥ 1.0.0), stats, tibble, utils
Suggests: knitr, rmarkdown, testthat (≥ 3.0.0)
Published: 2026-09-28
DOI: 10.32614/CRAN.package.apifetch
Author: André Leite ORCID iD [aut, cre], Hugo Vasconcelos ORCID iD [aut], Diogo Bezerra ORCID iD [aut], Marcos Wasiliew ORCID iD [aut], Carlos Amorim ORCID iD [aut], Júlia Nascimento Barreto ORCID iD [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.2.0.tar.gz
Windows binaries: r-devel: apifetch_0.1.0.zip, r-release: apifetch_0.2.0.zip, r-oldrel: apifetch_0.1.0.zip
macOS binaries: r-release (arm64): apifetch_0.2.0.tgz, r-oldrel (arm64): apifetch_0.2.0.tgz, r-release (x86_64): apifetch_0.2.0.tgz, r-oldrel (x86_64): apifetch_0.2.0.tgz
Old sources: apifetch archive

Reverse dependencies:

Reverse imports: BigDataPE

Linking:

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