latestOpenAPI 3.0.22026-08-1451965.7 KB
f5a72ed18934
Public data
State enforcement aggregates
State-level aggregates + top employers + top industries.
Powers the /state/[slug] SEO landing pages. Returns:
- state: 2-letter code and full name
- totals: inspections, violations, penalties, fatalities, WHD backwages, employer count in one pass
- top_by_violations: top 50 employers ordered by osha_violations
- top_by_penalties: top 50 by osha_total_penalties
- top_by_fatalities: top 20 by osha_fatalities (only non-zero)
- top_naics: top 10 industries by violation volume in this state
- top_contractors: top 10 federal contractors by 5yr obligations (only populated once USAspending has landed; empty list otherwise)
get/v1/stats/state/{code}
Path parameters
codestring required
Response
Successful Response
{"stackTrail":"paths:/v1/stats/state/{code}:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}