# FMCSA Inspections & Crashes – Carrier Safety & Violations (`gazidev/fmcsa-inspections-crashes`) Actor

Official FMCSA roadside inspections, out-of-service violations and crash reports for any USDOT number, state or date range. Carrier vetting for brokers and shippers, insurance underwriting, safety-consulting leads. Clean JSON, daily-updated US DOT open data. $1.50 per 1,000 records.

- **URL**: https://apify.com/gazidev/fmcsa-inspections-crashes.md
- **Developed by:** [Cemal Atakli](https://apify.com/gazidev) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 records

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

## FMCSA Inspections & Crashes – Carrier Safety, Violations & Crash Data

Get the **official FMCSA roadside inspection, violation and crash records** of any US trucking or bus company. You can paste USDOT numbers to vet carriers in bulk, or pull every **out-of-service inspection** or **fatal and injury crash** for a state and date range. Each row is clean JSON with readable field names and ISO dates: inspection level, violation counts, **out-of-service (OOS)** results, FMCSR violation codes and descriptions, crash severity, fatalities, injuries, tow-away, hazmat release, vehicle configuration, weather and road conditions, and the carrier's name and address.

- **$1.50 per 1,000 records.** Runs that match nothing cost nothing.
- **Official open data, no scraping.** Rows come from the U.S. DOT open-data portal (data.transportation.gov, FMCSA MCMIS files). The Actor does not scrape SAFER or SMS pages and needs no API key, browser or captcha solving.
- **Fresh.** FMCSA updates the files daily. New inspections usually show up 2–10 days after the roadside stop.
- **Bulk carrier vetting.** Paste thousands of USDOT numbers. The run summary includes per-carrier totals such as inspections, OOS rate, fatal and injury crashes and the latest event.

### What can I use it for?

- **Freight brokers and shippers:** before you tender a load, check a carrier's recent out-of-service inspections, hours-of-service and CDL violations, and crashes.
- **Insurance underwriting:** pull 24 months of inspections and crashes for every applicant or renewal and compute OOS rates and crash frequency yourself.
- **Safety consultants, compliance services, driver-training schools and attorneys:** each day, list the carriers in your state that had a vehicle or driver put out of service or a recordable crash. Those carriers are the ones that need help now.
- **Fleet and risk analytics:** violation trends by FMCSR code, crash conditions, hazmat incidents and post-crash inspections.
- **AI agents:** a *"has USDOT 80806 had any fatal crashes this year?"* tool (see below).

### Modes

| `mode` | One row per | Source dataset |
|---|---|---|
| `inspections` (default) | roadside inspection: level, facility, violations, OOS counts (driver / vehicle / hazmat), carrier | Vehicle Inspection File `fx4q-ay7w` |
| `violations` | violation cited: FMCSR code, description, driver or vehicle unit, OOS, citation, plus inspection and carrier context | Vehicle Inspections and Violations `876r-jsdb` joined to the inspection file |
| `crashes` | crash-involved truck or bus: date, place, severity, fatalities, injuries, tow-away, hazmat, vehicle, conditions | Crash File `aayw-vxb3` |

### Input

| Field | Description |
|---|---|
| `mode` | `inspections`, `violations` or `crashes` |
| `dotNumbers` | USDOT numbers for bulk carrier lookup (`80806`, `USDOT 80806` and similar formats all work) |
| `states`, `stateBasis` | 2-letter states. They match the **carrier's home state** (default) or **where the inspection or crash happened** (`event`) |
| `withinDays` / `after` / `before` | Date window (inspection date or crash date) |
| `onlyOutOfService` | Only inspections with an OOS violation (in `violations` mode: only OOS violations) |
| `crashSeverity` | `fatal`, `injury`, `towaway` (a crash is kept if it matches any of them) |
| `includeViolations` | Inspections mode: attach a `violationDetails` list to each inspection at no extra cost |
| `maxResults` | Stop after N rows (0 = all) |
| `onlyNew`, `stateKey` | Monitoring: return only records you have not received in earlier runs |
| `socrataAppToken` | Optional, for very large exports |

Carrier vetting (all inspections since July, with violation details):

```json
{ "mode": "inspections", "dotNumbers": ["80806", "2866992"], "after": "2026-07-01", "includeViolations": true, "maxResults": 0 }
```

Daily lead feed (Texas carriers that were put out of service yesterday or today):

```json
{ "mode": "inspections", "states": ["TX"], "withinDays": 2, "onlyOutOfService": true, "onlyNew": true, "maxResults": 0 }
```

Fatal and injury crashes of Georgia and Florida carriers in the last 30 days:

```json
{ "mode": "crashes", "states": ["GA", "FL"], "withinDays": 30, "crashSeverity": ["fatal", "injury"] }
```

### Output

Inspection (shortened):

```json
{
  "inspectionId": 89290283,
  "reportNumber": "PE10177471",
  "inspectionDate": "2026-10-17",
  "inspectionState": "OK",
  "inspectionLevel": "Level I - Full",
  "facility": "Fixed",
  "dotNumber": 2866992,
  "carrierName": "WAYSIDE PRODUCTIONS INC",
  "carrierCity": "SAN ANTONIO",
  "carrierState": "TX",
  "violations": 5,
  "outOfServiceViolations": 3,
  "outOfService": true,
  "driverOutOfService": 3,
  "vehicleOutOfService": 0,
  "hazmatViolations": 0,
  "postCrashInspection": false,
  "carrierSafetyUrl": "https://ai.fmcsa.dot.gov/SMS/Carrier/2866992/CarrierOverview.aspx",
  "violationDetails": [
    { "violationCode": "383.23A2-LCDLN", "description": "License (CDL) - Operate a CMV and does not possess a valid CDL", "unit": "Driver", "outOfService": true }
  ]
}
```

Crash (shortened):

```json
{
  "crashId": 5220336,
  "crashDate": "2026-10-09",
  "crashTime": "05:48",
  "crashState": "VA",
  "location": "I-77 AT 3.60M N OF LAMBSBURG RD",
  "severity": "Tow-away",
  "fatalities": 0,
  "injuries": 0,
  "towAway": true,
  "vehiclesInvolved": 3,
  "dotNumber": 80806,
  "carrierName": "J B HUNT TRANSPORT INC",
  "vehicleConfiguration": "Truck tractor (bobtail)",
  "cargoBodyType": "Van/enclosed box",
  "hazmatReleased": false,
  "weather": "No adverse condition",
  "light": "Dark - not lighted",
  "roadSurface": "Dry",
  "reportingAgency": "VIRGINIA STATE POLICE",
  "crashEvents": ["Collision involving other movable object"]
}
```

The Output tab has three tables: **Inspections**, **Violations** and **Crashes**. The `OUTPUT` record in the key-value store holds the run summary. When you pass USDOT numbers, it also has a `carriers` list with per-carrier totals for the rows saved, for example `{"dotNumber": 80806, "records": 390, "outOfServiceInspections": 61, "outOfServiceRate": 0.156, "latest": "2026-10-16"}`.

### Pricing

| Event | Price |
|---|---|
| Record saved (inspection, violation or crash) | **$0.0015** ($1.50 per 1,000) |
| Run start | $0.00005 |

Example: one week of out-of-service inspections for Texas-based carriers (Oct 10–16, 2026) was 1,367 rows, which costs about **$2.05**. Set **Max records** or a maximum cost per run to cap spending. The run stops cleanly at the limit.

Other FMCSA safety Actors on the Apify Store (makework36/fmcsa-trucking-api, foo121, pink_comic/fmcsa-carrier-safety-search) each had 3 or fewer monthly users in October 2026. This Actor reads the raw MCMIS inspection, violation and crash files directly, so you get every record with its date rather than a single snapshot.

### FAQ

**How far back does the data go?** FMCSA publishes a rolling window of about 3 years of inspections and violations, and crashes from the 1980s to today.

**Is this the same as the SMS / CSA BASIC scores?** No. These are the underlying inspection, violation and crash records. FMCSA calculates the SMS percentiles from them. Each row links to the carrier's SMS page (`carrierSafetyUrl`).

**Are drivers named?** No. FMCSA removes driver information from the public files.

**Why does one crash appear more than once?** The Crash File has one record for each commercial vehicle involved, and each record has its own `crashId` and `reportNumber`.

**Does a crash record mean the carrier was at fault?** No. FMCSA crash records do not say who caused the crash. Keep that in mind when you use them for underwriting or marketing.

**Is this legal?** Yes. The U.S. Department of Transportation publishes this data as public open data, and the Actor only uses its official API at a polite request rate. If you contact carriers, follow the rules that apply to you (CAN-SPAM, TCPA) and honour opt-outs. Questions: iletisim.ortalamabiri@gmail.com.

### Use with AI agents / Apify MCP

Ask *"show out-of-service inspections for USDOT 2866992 this year"* or *"list fatal crashes involving Georgia carriers in the last 30 days"*. Claude, ChatGPT, Cursor and other MCP clients can call the Actor directly through the [Apify MCP server](https://mcp.apify.com) (`https://mcp.apify.com?actors=gazidev/fmcsa-inspections-crashes`). Over the API: `POST https://api.apify.com/v2/acts/gazidev~fmcsa-inspections-crashes/run-sync-get-dataset-items`.

### Data source

FMCSA Motor Carrier Management Information System (MCMIS) files on data.transportation.gov: Vehicle Inspection File, Vehicle Inspections and Violations, and Crash File. Code values are decoded using the FMCSA data dictionaries (Rev05, 2025). This Actor is not affiliated with or endorsed by FMCSA or the U.S. DOT.

### Related Actors

- [FMCSA Carrier Search – Trucking Leads, USDOT & MC Data](https://apify.com/gazidev/fmcsa-carrier-leads): get carrier phone, email, officers, fleet size, authority and insurance, then run those USDOT numbers through this Actor to check their safety history.
- [US Business Entity Search & New Business Leads](https://apify.com/gazidev/us-business-entity-leads)
- [Phone Validator](https://apify.com/gazidev/phone-validator) · [Email Syntax & MX Validator](https://apify.com/gazidev/email-syntax-mx-validator)

# Actor input Schema

## `mode` (type: `string`):

Inspections and violations cover roughly the last 3 years (FMCSA publishes a rolling window). Crashes go back to the 1980s.

## `dotNumbers` (type: `array`):

Carrier vetting: paste one or many USDOT numbers (thousands are fine). Combine with the date window to get e.g. the last 24 months only.

## `states` (type: `array`):

2-letter US states (or Canadian/Mexican codes), e.g. `TX`, `CA`. Empty = all.

## `stateBasis` (type: `string`):

Which state the *States* filter applies to.

## `withinDays` (type: `integer`):

Only inspections / crashes dated in the last N days. Data usually lags 2-10 days behind the event.

## `after` (type: `string`):

YYYY-MM-DD. Overrides *In the last N days*.

## `before` (type: `string`):

YYYY-MM-DD.

## `onlyOutOfService` (type: `boolean`):

Inspections: only those with at least one out-of-service (OOS) violation. Violations: only OOS violations.

## `crashSeverity` (type: `array`):

Keep crashes that match any selected severity. Empty = all reportable crashes.

## `includeViolations` (type: `boolean`):

Inspections mode: add a `violationDetails` list (code, description, OOS, unit) to each inspection. Same price, a little slower.

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

Stop after this many rows (0 = all matching). You pay per row saved.

## `onlyNew` (type: `boolean`):

Skip records returned by earlier runs with the same *State key* and mode. Schedule daily or weekly for an alert feed.

## `stateKey` (type: `string`):

Separate 'already seen' lists for different monitors.

## `socrataAppToken` (type: `string`):

Optional free data.transportation.gov app token for higher rate limits on very large exports.

## Actor input object example

```json
{
  "mode": "inspections",
  "states": [
    "TX"
  ],
  "stateBasis": "carrier",
  "withinDays": 7,
  "onlyOutOfService": true,
  "includeViolations": false,
  "maxResults": 10,
  "onlyNew": false,
  "stateKey": "default"
}
```

# Actor output Schema

## `inspections` (type: `string`):

No description

## `violations` (type: `string`):

No description

## `crashes` (type: `string`):

No description

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

No description

## `summary` (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 = {
    "mode": "inspections",
    "states": [
        "TX"
    ],
    "withinDays": 7,
    "onlyOutOfService": true,
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("gazidev/fmcsa-inspections-crashes").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 = {
    "mode": "inspections",
    "states": ["TX"],
    "withinDays": 7,
    "onlyOutOfService": True,
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("gazidev/fmcsa-inspections-crashes").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 '{
  "mode": "inspections",
  "states": [
    "TX"
  ],
  "withinDays": 7,
  "onlyOutOfService": true,
  "maxResults": 10
}' |
apify call gazidev/fmcsa-inspections-crashes --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gazidev/fmcsa-inspections-crashes"
        }
    }
}
```

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/7YkdD86H0gQqLSYsN/builds/FBQYpBjp23S4IJyTK/openapi.json
