get_county_demographics
Get demographic data for counties: population, median age, race, Hispanic origin, income, and poverty.
Returns one record per county with total population, median age, racial breakdown
(White, Black, American Indian, Asian, Pacific Islander, Other, Two+),
Hispanic/Latino percentage, median household income, and poverty rate.
Args:
state: Two-letter state abbreviation (e.g. 'WA', 'CA') or 2-digit FIPS code.
county_fips: Three-digit county FIPS code (e.g. '033' for King County).
Omit to get all counties in the state.
year: ACS 5-year estimate year (default 2022). Data covers year-4 through year.
get_county_economics
Get economic data for counties: income, poverty, home values, rent, and health insurance.
Returns median household income, poverty rate, median home value, median gross rent,
and health insurance coverage rates (insured vs uninsured).
Args:
state: Two-letter state abbreviation (e.g. 'WA', 'CA') or 2-digit FIPS code.
county_fips: Three-digit county FIPS code (e.g. '033' for King County).
Omit to get all counties in the state.
year: ACS 5-year estimate year (default 2022).
get_county_education
Get educational attainment for counties (population 25+).
Returns counts and percentages for: less than high school, high school diploma/GED,
some college/associate degree, bachelor's degree, and graduate/professional degree.
Args:
state: Two-letter state abbreviation (e.g. 'WA', 'CA') or 2-digit FIPS code.
county_fips: Three-digit county FIPS code (e.g. '033' for King County).
Omit to get all counties in the state.
year: ACS 5-year estimate year (default 2022).
get_tract_data
Get tract-level ACS data for any variables within a county.
This is a flexible tool for querying any ACS 5-year estimate variables at
the census tract level. Automatically batches requests if more than 50
variables are requested.
Common variable examples:
- B01001_001E: Total population
- B19013_001E: Median household income
- B17001_002E: Population below poverty level
- B25077_001E: Median home value
- B02001_002E-008E: Race breakdown
Args:
state: Two-letter state abbreviation (e.g. 'WA') or 2-digit FIPS code.
county_fips: Three-digit county FIPS code (e.g. '033' for King County, WA).
variables: Comma-separated ACS variable codes (e.g. 'B01001_001E,B19013_001E').
NAME is always included automatically.
year: ACS 5-year estimate year (default 2022).
get_commuting_data
Get means of transportation to work data for counties.
Returns worker counts and percentages for: drove alone, carpooled,
public transit, walked, bicycle, taxi/motorcycle/other, and worked from home.
Args:
state: Two-letter state abbreviation (e.g. 'WA', 'CA') or 2-digit FIPS code.
county_fips: Three-digit county FIPS code (e.g. '033' for King County).
Omit to get all counties in the state.
year: ACS 5-year estimate year (default 2022).