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.
yearstaterequirednaics_codecounty_fips