Lists variable groups that organize related Census variables into logical categories like 'Age', 'Income', 'Housing', etc. Each group contains multiple variables representing different estimates, margins of error, and annotations. Use this to discover what topics are covered and find the group code needed to access specific variables.
From spec: Returns groups of related variables (tables) available in the dataset, such as demographic or housing tables.
Usage Tips
- Each group has a 'variables' link to get all variables in that group
- Group names like 'B01001' represent Census table numbers
- 'universe' specifies the population the data applies to
- Groups are consistent across years but availability varies by dataset
Parameters (2)
dataset(string, path, required)
Dataset path. Common values: 'acs/acs5' (ACS 5-year), 'acs/acs1' (ACS 1-year), 'dec/sf1' (Decennial Summary File 1), 'cbp' (County Business Patterns)
year(string, path, required)
Vintage (year) of the dataset. Examples: 2022, 2020, 2010
Constraints: {'pattern': '^\\d{4}$'}
Examples (2)
List variable groups for 2022 ACS 5-Year dataprobe-gate
Demonstrates retrieving all variable groups (data tables) available in the ACS dataset, organized by topic.