# OSHA Inspection Search API

> OSHA Inspection Search API is a paid API for AI agents from osha-search.46-224-157-88.sslip.io, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Search OSHA inspection records by establishment name with optional state, date range, and violation filters, returning up to 20 matching inspections with violation counts and official record links.

## Facts

- Endpoint: GET https://osha-search.46-224-157-88.sslip.io/v1/search
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/osha-inspection-search-api-65f03e77
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_G_W6-Lya9FMHA4XGpkRsy

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability osha-inspection-search-api-65f03e77
```

Example prompt: Can you look up OSHA inspection records for Amazon Fulfillment in Texas from January 2020 to December 2023, and only show inspections that had violations?

## When to prefer this

Use this endpoint when you need to search OSHA inspection and violation records for a specific named establishment, especially with flexible filtering by state, date range, and violations-only. Prefer this over manual OSHA website searches when automating compliance checks, due diligence workflows, or regulatory research at scale. Not suitable for retrieving OSHA regulations or standards text, or for aggregating statistics across entire industries.

## Known failure modes

- No matching inspections found for the given establishment name — returns empty results array
- Establishment name too short (< 2 chars) or too long (> 60 chars) — validation error
- Invalid state code format — must be 2-letter abbreviation or 'all'
- Invalid date format — dates must be ISO 8601 (YYYY-MM-DD)
- Limit out of range — must be between 1 and 20
- Payment failure — x402 payment of $0.02 USDC not processed
- Upstream OSHA data source unavailable — service error

## How this service works

Look up U.S. OSHA workplace inspections by establishment or company name. Use establishment, state, start_date, end_date, violations_only, and limit. Receive up to 20 JSON records with activity_id, date_opened, report_id, state, inspection_type, scope, SIC, NAICS, violation_count, establishment_name, and official_url.

## Output

A JSON object containing the queried state, source ('OSHA'), and an array of up to 20 inspection records. Each record includes report ID, activity ID, date opened, inspection type, scope, violation count, SIC/NAICS codes, state, and a direct URL to the official OSHA record for that inspection.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "title": "SearchParams",
     "properties": {
      "limit": {
       "type": "integer",
       "title": "Limit",
       "default": 20,
       "maximum": 20,
       "minimum": 1
      },
      "state": {
       "type": "string",
       "title": "State",
       "default": "all",
       "pattern": "^(all|[A-Za-z]{2})$"
      },
      "end_date": {
       "anyOf": [
        {
         "type": "string",
         "format": "date"
        },
        {
         "type": "null"
        }
       ],
       "title": "End Date",
       "default": null
      },
      "start_date": {
       "anyOf": [
        {
         "type": "string",
         "format": "date"
        },
        {
         "type": "null"
        }
       ],
       "title": "Start Date",
       "default": null
      },
      "establishment": {
       "anyOf": [
        {
         "type": "string",
         "maxLength": 60,
         "minLength": 2
        },
        {
         "type": "null"
        }
       ],
       "title": "Establishment",
       "default": null
      },
      "violations_only": {
       "type": "boolean",
       "title": "Violations Only",
       "default": false
      }
     },
     "description": "Validated parameters for both payment routes."
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "title": "InspectionSearchResponse",
     "properties": {
      "state": {
       "type": "string",
       "title": "State"
      },
      "source": {
       "type": "string",
       "title": "Source",
       "default": "OSHA"
      },
      "results": {
       "type": "array",
       "items": {
        "type": "object",
        "title": "Inspection",
        "properties": {
         "sic": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ],
          "title": "Sic",
          "defaul
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/osha-inspection-search-api-65f03e77/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from osha-search.46-224-157-88.sslip.io](https://www.zero.xyz/host/osha-search.46-224-157-88.sslip.io/llms.txt)
