Query OSHA inspection, violation, and accident enforcement data via the DOL Enforcement Data API

domain: developer.dol.gov · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Register a developer account at the DOL Developer Portal and generate an API token from the "My Tokens" page.
  2. Send requests to the OSHA Enforcement dataset with your token in the `X-API-KEY` header.
  3. Query the Inspection table for inspection metadata (`activity_nr`, `estab_name`, `insp_type`, `open_date`, `close_case_date`, NAICS/SIC codes), the Violation table for citations (`citation_id`, `standard`, `viol_type`, `current_penalty`, `issuance_date`), or the Accident/Accident Injury tables for fatality/injury narratives, joining on `activity_nr`/`summary_nr`.
  4. Page through results using offset-based pagination since each call returns a maximum of 200 records.
  5. Request JSON output by appending `/format/json` to the request URL where applicable (the legacy v1 API defaults to XML unless an `Accept: application/json` header is sent).

Known gotchas

Related routes

Query MSHA mine inspection and violation data via the DOL Enforcement Data API
developer.dol.gov · 5 steps · unrated
Pull historical OSHA inspection and citation records for scaffold-related violations (Subpart L standards) using the Department of Labor's public enforcement dataset.
developer.dol.gov (DOL Open Data / apiprod.dol.gov v4) · 5 steps · unrated
Query FRA rail equipment accident and highway-rail grade crossing incident data via the FRA Master Web Service API
safetydata.fra.dot.gov · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans