---
title: "State enforcement aggregates"
method: GET
path: "/v1/stats/state/{code}"
tags: ["Public data"]
---

# State enforcement aggregates

`GET /v1/stats/state/{code}`

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)

## Path parameters

- `code` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/fastdol/apis/fastdol-api.md) · [All operations](https://skmtc.net/fastdol/apis/fastdol-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fastdol/fastdol-api/revisions/f5a72ed18934/schema)
