data.census_acs

Query the US Census ACS (American Community Survey) Data API and write the result as CSV. The API requires a key; supply it via the CENSUS_API_KEY environment variable (pending proper secrets integration).

  • Kind: standard
  • Network: yes

Inputs🔗

NameTypeDescription
yearnumberACS vintage year.
datasetstringACS dataset (acs1 or acs5).
tablestringACS table ID (e.g. B01003).
geographystringGeography predicate (e.g. "state:*", "county:*&in=state:06").
variablesstringOptional comma-separated list of variable IDs. Defaults to NAME,<table>_001E.

Outputs🔗

NameTypeDescription
tablefile (CSV)Response rendered as CSV (first row = column headers).

Example🔗

- id: 01890000-0000-0000-0000-000000000106
  name: data.census_acs
  args:
    year: 2021
    dataset: "acs5"
    table: "B01003"
    geography: "state:*"