77trust / 100

Osha History

by tollbooth in Documents & files

x402 APIPassing, checked 4 h ago

Returns the OSHA inspections, violations and penalties on file for an employer in a state (optional city and zip), matched by name in the US Department of Labor's inspection and violation files, as establishments with a penalty roll-up; OSHA inspections only, so an employer with none has no record and an empty result is a paid 200; it is not a determination about the employer and is not endorsed or certified by the U.S. Department of Labor.

POST https://api.flipvo.com/v1/osha/history

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
532 ms typical, 607 ms slowest 5%
Last check
4 h ago
Next check
any minute now

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X POST 'https://api.flipvo.com/v1/osha/history' \
  -H 'content-type: application/json' \
  --data-raw '{"city":"Lubbock","employer":"Acme Warehousing","state":"TX"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.flipvo.com%2Fv1%2Fosha%2Fhistory
const res = await pay("https://api.flipvo.com/v1/osha/history", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: "{\"city\":\"Lubbock\",\"employer\":\"Acme Warehousing\",\"state\":\"TX\"}",
});
console.log(await res.json());

Example input

{
  "city": "Lubbock",
  "employer": "Acme Warehousing",
  "state": "TX"
}

Example output

{
  "coverage": "OSHA inspections only, from the Department of Labor's bulk inspection and violation files: a site with no inspection in these files has no row here, and an empty result says nothing else about the employer. States that run their own state plan may be partly absent. Withdrawn citations are left out of every list and total. Employer names are matched, not verified: confirm a site before acting on it. Penalties are the current amounts OSHA lists. Not endorsed or certified by the U.S. Department of Labor.",
  "data_as_of": {
    "inspections": "2026-10-01T11:04:25Z",
    "violations": "2026-10-01T11:11:27Z"
  },
  "establishments": [
    {
      "city": "Lubbock",
      "inspections": [
        {
          "activity_nr": 1002,
          "closed": "2024-08-30",
          "opened": "2024-03-11",
          "scope": "B",
          "type": "B",
          "violations": [
            {
              "abated": "2024-06-24",
              "citation_id": "01001",
              "contested": null,
              "current_penalty": "4500.00",
              "exposed": 3,
              "final_order": null,
              "gravity": "10",
              "initial_penalty": "5000.00",
              "instances": 1,
              "issued": "2024-05-20",
              "standard": "19100178 L01",
              "type": "S"
            }
          ]
        }
      ],
      "inspections_truncated": false,
      "match_score": 100,
      "names": [
        "ACME WAREHOUSING INC"
      ],
      "rollup": {
        "inspections": 1,
        "last_inspection": "2024-03-11",
        "other": 0,
        "repeat": 0,
        "serious": 1,
        "total_current_penalty": "4500.00",
        "violations": 1,
        "willful": 0
      },
      "state": "TX",
      "zip": "79404"
    }
  ],
  "rollup": {
    "inspections": 1,
    "last_inspection": "2024-03-11",
    "other": 0,
    "repeat": 0,
    "serious": 1,
    "total_current_penalty": "4500.00",
    "violations": 1,
    "willful": 0
  },
  "source": "US Department of Labor OSHA inspection and violation data (https://enforcedata.dol.gov)",
  "total_establishments": 1,
  "truncated": false
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402567 ms$0.02
7 h agoPassed402531 ms$0.02
11 h agoPassed402607 ms$0.02
15 h agoPassed402515 ms$0.02
19 h agoPassed402467 ms$0.02
23 h agoPassed402116 ms$0.02
26 h agoPassed402574 ms$0.02
30 h agoPassed402530 ms$0.02
33 h agoPassed402474 ms$0.02
37 h agoPassed402528 ms$0.02
40 h agoPassed402495 ms$0.02
44 h agoPassed402532 ms$0.02
2 days agoPassed402569 ms$0.02
2 days agoPassed402587 ms$0.02
2 days agoPassed402583 ms$0.02