Returns the complete geographic hierarchy available for the dataset, from national ('us') down to block group level. Each entry shows the geoLevelDisplay code, required parent geographies, and wildcard support. Use this to understand what geographic granularities are available and what parent levels must be specified.
From spec: Returns all geographic levels available for a dataset (e.g., state, county, tract, block group). Shows required and optional geographic parameters for each level.
Usage Tips
- 'requires' indicates mandatory parent geographic levels
- 'wildcard' shows which parent levels support '*' for all values
- Geographic codes follow FIPS standards (state=2 digits, county=3 digits, etc.)
- Some levels are only available for certain datasets or years
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 geographic levels for 2022 ACS 5-Year dataprobe-gate
Demonstrates retrieving all available geographic hierarchy levels for querying ACS data, from national down to block group.