Retrieve Data from the Census APIs
Overview
A wrapper for the U.S. Census Bureau APIs that returns data frames of Census data and metadata. Available datasets include the Decennial Census, American Community Survey, Small Area Health Insurance Estimates, Small Area Income and Poverty Estimates, Population Estimates and Projections, and more.
As of May 12, 2026, the Census Bureau APIs require the use of an API key for retrieving data and metadata.
listCensusApis()andlistCensusMetadata()now use the APIkeyargument.- Documentation and error messages are updated to reflect that using an API key is now required.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 8 (1 internal)
- Examples that run
- 86%6 run in a plain check (4 of them under a condition) · 1 never run
- Exported functions with examples
- 100%
- Documented parameters
- 85%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- censusapi HTML
Downloads
Repository
- PRs merged (all time)
- 31%
- Median days to close, 50 most recently updated closed issues
- 18
- Median days to close, 50 most recently updated closed PRs
- 62
Stars over time
Forks over time
7 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/hrecht/censusapi on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing censusapi adds 9 packages (7 with compiled code, 3.8 MB of source tarballs). Heaviest: openssl 1.1 MB, jsonlite 1.0 MB, rlang 766 KB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.10.0Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.9.0
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.8.02022-08-09 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.7.12020-10-14 · diff ↗
- 0.7.02020-09-07 · diff ↗
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 0.6.02019-04-14 · diff ↗
- 0.4.12018-08-19 · diff ↗
- 0.3.02018-05-02 · diff ↗
Package metadata
- First published
- 2017-06-06
- Total releases
- 10 / 9 yrs
- License
- GPL-3 OSI · relicensed from MIT + file LICENSE in 0.3.0
- Minimum R
- ≥ 3.5
- Bundled data
- 0.2 KB / 1 file
- Download size
- 25 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("censusapi")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.