GET {year}/{dataset}

census.gov:us-census-bureau-api

Summary: Query census data for a specific dataset
Operation ID: getCensusData
Auth: api_key
Description

Returns data from the specified Census dataset for the given year. Requires geography parameters and variable codes.

Parameters (6)

dataset (string, path, required)

The dataset identifier (e.g., acs/acs5, acs/acs1, sf1, sf2)

for (string, query, required)

Geography level to query (e.g., state:*, county:*, tract:*, block group:*, place:*)

get (string, query, required)

Comma-separated list of variable codes to retrieve (e.g., NAME,B01001_001E)

in (string, query, optional)

Parent geography for the query (e.g., state:06 for counties in California)

key (string, query, optional)

Optional API key for higher rate limits (not required for basic access)

year (string, path, required)

The year of the dataset (e.g., 2022, 2021, 2020)

No probe data for this endpoint yet.