Tools/economic-data/census_data

economic-data/census_data

Query US Census Bureau survey data for variables by geography.

0.1 credits / call ($0.0001)
charged on success

What it does

Returns US Census Bureau data: the requested variables for the requested geographies, as a table (the first row is the header). Covers the American Community Survey, Decennial Census, and other Census datasets.

Primary use cases

  • Pulling population, income, or housing variables for states, counties, or tracts.
  • Building demographic profiles by geography.

Good to know

Set dataset to the dataset path (e.g. "acs/acs5"), get to a comma-separated variable list including "NAME" (e.g. "NAME,B01001_001E" for total population), and for to the geography (e.g. "state:*"). Use in to scope a parent geography (e.g. "state:06"). Variable codes are dataset-specific. Data is US public domain.

Parameters

instringoptional

Parent geography filter (e.g. "state:06").

forstringrequired

Geography selector (e.g. "state:*", "county:*").

getstringrequired

Comma-separated variables, including "NAME" (e.g. "NAME,B01001_001E").

yearintegerrequired

Survey/vintage year.

datasetstringrequired

Dataset path, e.g. "acs/acs5" or "dec/pl".

economic-data/census_data — Faro