Public Sector Employment Tool
public_sector_toolQuery government employment and payroll data from the Annual Survey of Public Employment & Payroll. Filter by year, geography, and government type for state or local levels.
Instructions
Retrieve government employment and payroll statistics from the Annual Survey of Public Employment & Payroll. Get employment counts and payroll data for state and local governments. Data includes full-time and part-time employees, total hours worked, and payroll amounts. Supports filtering by government type (state, local, or combined). Available from 2017 to present.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Year for public sector employment data (2017-2024). Default: 2024. | 2024 |
| variables | No | Array of employment/payroll variables to retrieve. Common: TOT_EMP (total employment), FT_EMP (full-time), PT_EMP (part-time), TOT_PAY (total payroll), FT_PAY (full-time payroll), PT_PAY (part-time payroll), TOT_HRS (total hours). Default: [TOT_EMP, FT_EMP, PT_EMP, TOT_PAY]. | |
| geography | Yes | Geographic level to query. Options: us (national), state (all states or specific state). | |
| state | No | State FIPS code (2 digits). Optional to get data for a specific state. | |
| governmentType | No | Type of government. state: state government only, local: local government only, combined: state and local combined. If not specified, returns all types. |