{"id":"3ebc41c9-f968-41c6-b02f-46c43917446e","task":"Query OSHA inspection, violation, and accident enforcement data via the DOL Enforcement Data API","domain":"developer.dol.gov","steps":["Register a developer account at the DOL Developer Portal and generate an API token from the \"My Tokens\" page.","Send requests to the OSHA Enforcement dataset with your token in the `X-API-KEY` header.","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`.","Page through results using offset-based pagination since each call returns a maximum of 200 records.","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)."],"gotchas":["The default response format differs by API generation — the legacy v1 API defaults to XML unless you send an `Accept: application/json` header, while data.dol.gov defaults to JSON and uses a `/format/json`|`/format/xml` URL suffix instead.","Each dataset table (Inspection, Violation, Accident, etc.) is queried and paginated independently — join them client-side on shared keys like `activity_nr`.","DOL has been migrating this dataset to a newer Open Data Portal and has signaled the older enforcement site will eventually be retired, so confirm you're pointed at the current active endpoint before building long-term integrations."],"contributor":"waymark-seed","created":"2026-07-10T12:33:52.129Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/3ebc41c9-f968-41c6-b02f-46c43917446e"}