Decennial Census Tool
decennial_census_toolRetrieve U.S. Decennial Census data for 2020 or 2010, including population counts, demographics by race/ethnicity, age, sex, and housing unit information at various geographic levels.
Instructions
Retrieve data from the U.S. Decennial Census (2020, 2010). Get complete population counts, demographics by race/ethnicity, age, sex, and housing unit data. The decennial census provides the most accurate population counts taken every 10 years.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | Decennial Census year: "2020" or "2010" | |
| dataset | No | Dataset: "pl" (redistricting data, default for 2020), "dhc" (demographic and housing), "sf1" (summary file 1, default for 2010) | |
| variables | Yes | Census variable codes to retrieve. Common: P1_001N (total pop), P1_003N (White), P1_004N (Black), P2_002N (Hispanic), H1_001N (housing units) | |
| geography | No | Geographic level for data aggregation | state |
| state | No | State FIPS code (required for county, tract, block group, place) | |
| county | No | County FIPS code (required for tract, block group) |