---
type: "firecrawl-provider"
description: "U.S. Department of Labor OSHA workplace-safety inspections, citations, penalties and accident investigations by establishment name and state, activity/IMIS number, or accident summary number."
use_when: "U.S. Department of Labor OSHA workplace-safety inspections, citations, penalties and accident investigations."
categories: "Public records"
capabilities: 4
credits_per_record: 1
---
# OSHA Enforcement on Firecrawl Alexandria

U.S. Department of Labor OSHA workplace-safety inspections, citations, penalties and accident investigations by establishment name and state, activity/IMIS number, or accident summary number.

- Categories: Public records
- Category index: [Public records category](https://alexandria.firecrawl.dev/agents/categories/public-records)
- Provider key: `firecrawl-osha`
- Access: Firecrawl credits
- Cost (OSHA establishment inspections search): 1 credit per record
- Cost (OSHA inspection by activity or IMIS number): 1 credit per record
- Cost (OSHA citations and penalties by activity number): 1 credit per record
- Cost (OSHA accident investigations by activity or summary number): 1 credit per record

## More

- [Human guide](https://www.firecrawl.dev/app/alexandria/firecrawl-osha)
- [OpenAPI spec](https://alexandria.firecrawl.dev/agents/providers/firecrawl-osha/openapi.json)

## Capabilities

- [OSHA establishment inspections search](https://alexandria.firecrawl.dev/agents/providers/firecrawl-osha/osha/establishment-search): results: matching inspections newest first with activity_nr, imis_inspection_nr, imis_url, establishment address, NAICS/SIC, dates, status and type; total_count, complete, nextCursor.
- [OSHA inspection by activity or IMIS number](https://alexandria.firecrawl.dev/agents/providers/firecrawl-osha/osha/inspection): inspection: full inspection record; violation_summary: live citation counts and initial/current penalty totals; related_activity: linked activities.
- [OSHA citations and penalties by activity number](https://alexandria.firecrawl.dev/agents/providers/firecrawl-osha/osha/citations): citations: citation items with standards, penalties and event history; summary: live citation counts and penalty totals; deleted_items: count of deleted citations.
- [OSHA accident investigations by activity or summary number](https://alexandria.firecrawl.dev/agents/providers/firecrawl-osha/osha/accidents): accidents: up to 20 accident investigations with event details, abstract and injury records; total_count, returned_count, truncated.

## 1. Choose this provider when

U.S. Department of Labor OSHA workplace-safety inspections, citations, penalties and accident investigations.

## 2. Minimal request

Call `POST https://api.firecrawl.dev/v2/scrape` with `{ alexandria: { provider, capability, options } }`. For a batch, send `{ alexandria: [...] }` with up to 10 calls.

```json
{
  "provider": "firecrawl-osha",
  "capability": "osha/establishment-search",
  "options": {
    "name": "<name>",
    "state": "<state>",
    "limit": 25
  }
}
```

## 3. Add provider options

Use only the options needed for the task:

- `name` (string, required): Establishment name or distinctive part of it, 2 to 120 characters. Example: `<name>`
- `state` (string, required): Two-letter postal code of the inspected site, such as GA or TX. Example: `<state>`
- `city` (string): Site city, matched case-insensitively. Example: `<city>`
- `zip` (string): 5-digit site ZIP code. Example: `<zip>`
- `naics` (string): 2- to 6-digit NAICS code or prefix. Example: `<naics>`
- `opened_from` (string): Earliest inspection open date, YYYY-MM-DD. Example: `<opened_from>`
- `opened_to` (string): Latest inspection open date, YYYY-MM-DD. Example: `<opened_to>`
- `status` (string): Inspection case status. Example: `open`
- `inspection_types` (string[]): Filter to these DOL inspection types: accident, complaint, referral, monitoring, variance, follow_up, unprogrammed_related, planned, programmed_related, unprogrammed_other, programmed_other, other, fatality_catastrophe, unprogrammed_emphasis. Example: `[]`
- `limit` (number): Most results per page, 1 to 100. Default 25. Example: `25`
- `cursor` (string): nextCursor from the previous page, sent with the same search options. Example: `<cursor>`

## 4. Request through your preferred interface

### JavaScript

```javascript
const result = await firecrawl.scrape({
  alexandria: {
    provider: "firecrawl-osha",
    capability: "osha/establishment-search",
    options: {
      name: "<name>",
      state: "<state>",
      limit: 25,
    },
  },
});
```

### Python

```python
result = firecrawl.scrape_alexandria({
  "provider": "firecrawl-osha",
  "capability": "osha/establishment-search",
  "options": {
    "name": "<name>",
    "state": "<state>",
    "limit": 25
  }
})
```

### cURL

```sh
curl https://api.firecrawl.dev/v2/scrape \
  -H "Authorization: Bearer $FIRECRAWL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "alexandria": {
    "provider": "firecrawl-osha",
    "capability": "osha/establishment-search",
    "options": {
      "name": "<name>",
      "state": "<state>",
      "limit": 25
    }
  }
}'
```

### CLI

```sh
firecrawl scrape 'firecrawl-osha/osha/establishment-search' \
  --options '{"name":"<name>","state":"<state>","limit":25}'
```


### MCP

Call the FCX MCP retrieve tool with this object:

```json
{
  "provider": "firecrawl-osha",
  "capability": "osha/establishment-search",
  "options": {
    "name": "<name>",
    "state": "<state>",
    "limit": 25
  }
}
```

Ask for only the returned fields needed by the task.

## 5. Full request shape

```json
{
  "provider": "firecrawl-osha",
  "capability": "osha/establishment-search",
  "options": {
    "name": "<name>",
    "state": "<state>",
    "limit": 25
  }
}
```

## 6. Response data

The response includes `success`, `provider`, `capability`, `creditsCost` and `data`. This example shows the provider payload in `data`:

```json
{
  "results": [
    {
      "activity_nr": "<activity_nr>",
      "imis_inspection_nr": "<imis_inspection_nr>",
      "imis_url": "<imis_url>",
      "establishment": {},
      "naics": "<naics>",
      "case_open_date": "<case_open_date>",
      "case_close_date": "<case_close_date>",
      "status": "<status>",
      "inspection_type_label": "<inspection_type_label>"
    }
  ]
}
```

## API reference-derived contract

The following capability contract is generated from the same normalized Alexandria API reference exposed in the API spec.

### OSHA establishment inspections search

- Capability: `osha/establishment-search`
- Description: results: matching inspections newest first with activity_nr, imis_inspection_nr, imis_url, establishment address, NAICS/SIC, dates, status and type; total_count, complete, nextCursor.
- Instructions: Find OSHA workplace-safety inspections of an establishment by name within a state, newest first, optionally filtered by city, ZIP, NAICS prefix, inspection type (such as fatality_catastrophe or accident), open-date range and open/closed status. Names match by word prefix after dropping punctuation and legal forms (Pilgrim's Pride, Wal-Mart).
- Cost: 1 credit per record
- Capability file: [OSHA establishment inspections search](https://alexandria.firecrawl.dev/agents/providers/firecrawl-osha/osha/establishment-search)

Accepted options:
- `name` (string, required): Establishment name or distinctive part of it, 2 to 120 characters. Example: `<name>`
- `state` (string, required): Two-letter postal code of the inspected site, such as GA or TX. Example: `<state>`
- `city` (string): Site city, matched case-insensitively. Example: `<city>`
- `zip` (string): 5-digit site ZIP code. Example: `<zip>`
- `naics` (string): 2- to 6-digit NAICS code or prefix. Example: `<naics>`
- `opened_from` (string): Earliest inspection open date, YYYY-MM-DD. Example: `<opened_from>`
- `opened_to` (string): Latest inspection open date, YYYY-MM-DD. Example: `<opened_to>`
- `status` (string): Inspection case status. Example: `open`
- `inspection_types` (string[]): Filter to these DOL inspection types: accident, complaint, referral, monitoring, variance, follow_up, unprogrammed_related, planned, programmed_related, unprogrammed_other, programmed_other, other, fatality_catastrophe, unprogrammed_emphasis. Example: `[]`
- `limit` (number): Most results per page, 1 to 100. Default 25. Example: `25`
- `cursor` (string): nextCursor from the previous page, sent with the same search options. Example: `<cursor>`

Response schema example:
```json
{
  "results": [
    {
      "activity_nr": "<activity_nr>",
      "imis_inspection_nr": "<imis_inspection_nr>",
      "imis_url": "<imis_url>",
      "establishment": {},
      "naics": "<naics>",
      "case_open_date": "<case_open_date>",
      "case_close_date": "<case_close_date>",
      "status": "<status>",
      "inspection_type_label": "<inspection_type_label>"
    }
  ]
}
```

### OSHA inspection by activity or IMIS number

- Capability: `osha/inspection`
- Description: inspection: full inspection record; violation_summary: live citation counts and initial/current penalty totals; related_activity: linked activities.
- Instructions: Full OSHA inspection record by DOL activity number (345734966), 7-digit IMIS inspection number (1573496 or 1573496.015), or pasted IMIS inspection URL: establishment identity and addresses, NAICS/SIC, dates, inspection type/scope, live violation summary and related activities.
- Cost: 1 credit per record
- Capability file: [OSHA inspection by activity or IMIS number](https://alexandria.firecrawl.dev/agents/providers/firecrawl-osha/osha/inspection)

Accepted options:
- `activity_nr` (string): OSHA activity number or 7-digit IMIS inspection number (e.g. 1573496 or 345734966). Pass either activity_nr or url. Example: `<activity_nr>`
- `url` (string): Pasted osha.gov IMIS establishment.inspection_detail URL. Pass either activity_nr or url. Example: `<url>`
- `include` (string[]): fields, markdown or both. Omit for both; ["fields"] skips Markdown. Example: `["fields"]`

Response schema example:
```json
{
  "inspection": {
    "activity_nr": "<activity_nr>",
    "imis_inspection_nr": "<imis_inspection_nr>",
    "imis_url": "<imis_url>",
    "establishment": {},
    "case_open_date": "<case_open_date>",
    "status": "<status>"
  }
}
```

### OSHA citations and penalties by activity number

- Capability: `osha/citations`
- Description: citations: citation items with standards, penalties and event history; summary: live citation counts and penalty totals; deleted_items: count of deleted citations.
- Instructions: Every citation item of an OSHA inspection by activity or IMIS number: standards cited, violation type (Serious, Willful, Repeat, Other), initial and current penalties, abatement dates, contest/final-order dates and full violation event history. Live citations only by default; set include_deleted: true to include deleted items.
- Cost: 1 credit per record
- Capability file: [OSHA citations and penalties by activity number](https://alexandria.firecrawl.dev/agents/providers/firecrawl-osha/osha/citations)

Accepted options:
- `activity_nr` (string, required): OSHA activity number, 7-digit IMIS number (e.g. 1573496), or IMIS inspection URL. Example: `<activity_nr>`
- `include_deleted` (boolean): Include citations marked deleted by OSHA. Defaults to false (live citations only). Example: `false`

Response schema example:
```json
{
  "citations": {
    "citation_id": "<citation_id>",
    "standard_cited": "<standard_cited>",
    "citation_type_label": "<citation_type_label>",
    "initial_penalty": "<initial_penalty>",
    "current_penalty": "<current_penalty>",
    "deleted": false,
    "history": []
  }
}
```

### OSHA accident investigations by activity or summary number

- Capability: `osha/accidents`
- Description: accidents: up to 20 accident investigations with event details, abstract and injury records; total_count, returned_count, truncated.
- Instructions: OSHA accident investigations linked to an inspection (by activity_nr or 7-digit IMIS number, up to 20 records returned per inspection with truncated and total_count flags) or a specific accident investigation (by summary_nr): event date, description, keywords, full narrative abstract and injured worker records.
- Cost: 1 credit per record
- Capability file: [OSHA accident investigations by activity or summary number](https://alexandria.firecrawl.dev/agents/providers/firecrawl-osha/osha/accidents)

Accepted options:
- `activity_nr` (string): OSHA activity number, 7-digit IMIS number, or IMIS inspection URL. Pass either activity_nr or summary_nr. Example: `<activity_nr>`
- `summary_nr` (string): OSHA accident summary number or IMIS accident URL. Pass either activity_nr or summary_nr. Example: `<summary_nr>`

Response schema example:
```json
{
  "accidents": {
    "summary_nr": "<summary_nr>",
    "imis_url": "<imis_url>",
    "event_date": "<event_date>",
    "event_desc": "<event_desc>",
    "abstract": "<abstract>",
    "injuries": []
  }
}
```
