get_county_business_patterns
Get business establishment, employment, and payroll data by county.
Returns County Business Patterns data from the Census Bureau showing
the number of business establishments, employees, and annual payroll
for a given geography and optional industry filter.
Args:
state: Two-letter state abbreviation (e.g. 'CA', 'TX', 'NY').
county_fips: 3-digit county FIPS code (e.g. '037' for Los Angeles).
If omitted, returns data for all counties in the state.
naics_code: NAICS 2017 industry code to filter by (e.g. '72' for
Accommodation/Food, '62' for Healthcare, '23' for Construction).
If omitted, returns totals across all industries.
year: Data year (default 2021). Available: 2012-2021.
get_state_business_summary
Get state-level business pattern summary.
Returns aggregate establishment, employment, and payroll data for an
entire state, optionally filtered by industry. Useful for state-level
economic overviews in grant applications.
Args:
state: Two-letter state abbreviation (e.g. 'CA', 'TX', 'NY').
naics_code: NAICS 2017 industry code to filter by (e.g. '72' for
Accommodation/Food, '62' for Healthcare). Omit for all industries.
year: Data year (default 2021). Available: 2012-2021.
compare_county_industries
Get a breakdown of all industries in a county.
Returns business pattern data for all 2-digit NAICS sectors in a
specific county. Useful for understanding the economic composition
of a community for grant narratives.
Args:
state: Two-letter state abbreviation (e.g. 'CA', 'TX', 'NY').
county_fips: 3-digit county FIPS code (e.g. '037' for Los Angeles County).
year: Data year (default 2021). Available: 2012-2021.