# US OSHA Workplace Safety & Violation Compliance Auditor (`b2b-quant-apis/us-osha-workplace-safety-violation-auditor`) Actor

Audits U.S. industrial, construction, and logistics establishments against OSHA enforcement inspections, citations (Willful, Repeat, Serious), financial penalties in USD, NAICS codes, and computes a Workplace Safety Risk Score (0-100).

- **URL**: https://apify.com/b2b-quant-apis/us-osha-workplace-safety-violation-auditor.md
- **Developed by:** [Jesley Tassili de Oliveira Aguileira](https://apify.com/b2b-quant-apis) (community)
- **Categories:** AI, Business, Automation
- **Stats:** 2 total users, 1 monthly users, 66.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$30.00 / 1,000 us osha establishment safety & penalty auditeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## US OSHA Workplace Safety & Violation Compliance Auditor (EHS, Workers' Comp & Supply-Chain Due Diligence)

**Zero-Key U.S. Department of Labor / OSHA Enforcement Intelligence Engine for Commercial Insurance Underwriters, M\&A Legal Due Diligence, and ESG Supply-Chain Auditors.**

Audits U.S. industrial, manufacturing, construction, and logistics establishments against OSHA enforcement inspection records, citation severity classes (`Willful`, `Repeat`, `Serious`, `Other-Than-Serious`), assessed monetary penalties in USD, 6-digit NAICS industry codes, and computes a deterministic **Workplace Safety Risk Score (`0-100`)** alongside an executive **Markdown EHS & Underwriting Brief**.

***

### Why Automate US OSHA Workplace Safety Audits?

1. **Commercial Insurance & Workers' Compensation Underwriting:** Instantly screen prospective policyholders for repeat or willful OSHA citations before binding coverage.
2. **M\&A & Private Equity EHS Due Diligence:** Quantify hidden workplace safety liabilities and open federal enforcement investigations across target manufacturing/logistics facilities.
3. **Enterprise Vendor & Third-Party Risk Management (TPRM):** Continuously monitor tier-1 suppliers in `n8n`, `Make.com`, or AI Agent (`MCP`) pipelines.

***

### Input Parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `companyOrEstablishment` | `string` | `"Amazon"` | Employer or establishment name keyword to audit. |
| `stateCode` | `string` | `""` | Optional 2-letter U.S. state filter (e.g., `"TX"`, `"IL"`, `"CA"`). |
| `maxResults` | `integer` | `15` | Maximum number of inspection records to extract (`1` to `100`). |

***

### Output Dataset Schema

- `activityNumber`: Official OSHA inspection activity identifier.
- `establishmentName`: Inspected employer or facility legal name.
- `siteCity` / `siteState`: Facility location.
- `naicsCode`: 6-digit North American Industry Classification System code.
- `inspectionType`: `Complaint`, `Referral`, `Fatality/Catastrophe`, or `Planned`.
- `openDate`: ISO date when the OSHA inspection opened.
- `totalViolations`: Total number of OSHA standards cited.
- `seriousWillfulRepeatCount`: High-severity citation count (`Serious + Willful + Repeat`).
- `currentPenaltyUsd`: Assessed civil monetary penalty in USD.
- `workplaceRiskScore`: Quantitative EHS risk score (`0-100`).
- `markdownSafetyBrief`: Executive Markdown report ready for RAG/LLMs and compliance dashboards.

# Actor input Schema

## `companyOrEstablishment` (type: `string`):

Employer or establishment keyword (e.g., 'Amazon', 'Tesla', 'Walmart', 'United Parcel Service', 'Tyson').

## `stateCode` (type: `string`):

Optional 2-letter U.S. state abbreviation (e.g., 'TX', 'CA', 'IL', 'OH', or leave empty for nationwide).

## `maxResults` (type: `integer`):

Maximum number of OSHA establishment inspection records to extract and score (1 to 100).

## Actor input object example

```json
{
  "companyOrEstablishment": "Amazon",
  "stateCode": "",
  "maxResults": 15
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("b2b-quant-apis/us-osha-workplace-safety-violation-auditor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("b2b-quant-apis/us-osha-workplace-safety-violation-auditor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call b2b-quant-apis/us-osha-workplace-safety-violation-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,b2b-quant-apis/us-osha-workplace-safety-violation-auditor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/jFpM11we0gQ9jIuz1/builds/taGByGjalXAJXS3Vf/openapi.json
