# Truck Crash & Out-of-Service Inspection Leads (FMCSA Daily) (`intenal_builds/fmcsa-truck-crash-inspection-leads`) Actor

Trucking companies that just had a DOT-reportable crash or an out-of-service roadside inspection, from FMCSA's daily files. One row per carrier: phone, email, officers, fleet size, crash counts, OOS rate and exact violations (brakes, HOS, tires, medical). No API key.

- **URL**: https://apify.com/intenal_builds/fmcsa-truck-crash-inspection-leads.md
- **Developed by:** [Jaydan Eaton](https://apify.com/intenal_builds) (community)
- **Categories:** Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 carrier leads

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

## Truck Crash & Out-of-Service Inspection Leads (FMCSA Daily)

Get **trucking companies that just had a DOT-reportable crash or were put out of service at a roadside inspection**, straight from FMCSA's official daily crash and inspection files. Each row is one carrier (USDOT number) with **phone, email, company officers, address, fleet size, cargo**, crash counts with injuries and fatalities, inspection and **out-of-service (OOS) rate**, and the **exact violations** behind it (air brakes, tires, lighting, hours of service, medical card, CDL). No API key, no login, no proxies.

Most FMCSA tools on the Store look up one carrier at a time or list newly registered carriers. This actor works from **safety events**: who had a crash or an OOS order in the last N days, newest first. That is the moment a carrier is most likely to buy safety tech, change insurance, fix equipment or hire compliance help.

### How fresh is it

FMCSA republishes these files on data.transportation.gov every day. In a check on 2026-10-20, inspections ran through **2026-10-17** (18,324 OOS inspections across 14,987 carriers from Oct 6 to Oct 20) and crashes through 2026-10-16 (9,887 crash records across 6,693 carriers in September 2026). Crash reports reach FMCSA through the states and can take 1 to 3 weeks, so use 30+ days for crash-only runs.

### What you get per carrier

- USDOT number, legal and DBA name, **phone, cell phone, email**, company officers, physical address
- Power units, trucks, drivers, interstate/intrastate, hazmat flag, cargo carried, safety rating, census status, last MCS-150 date
- **Triggers**: `crash`, `oos_inspection`, `violation_inspection`, plus date and type of the newest event
- **Crashes in window**: count, injuries, fatalities, tow-aways, newest crash date/state/city, and a crash list (date, time, city, road, reporting agency, severity, hazmat released, vehicles involved, event sequence)
- **Inspections in window**: count, OOS inspections, **OOS rate**, driver/vehicle/hazmat OOS counts, total violations, and an inspection list (date, state, level, post-accident flag, OOS counts, violation codes)
- **Violations**: topic groups (e.g. Air Brake, Tires, HOS (Property), Medical (Certificate)) and the top 15 violation codes with description, regulation category, count and OOS count
- Link to the carrier's FMCSA SAFER snapshot

In a test on 2026-10-20 (100 carriers, default input), 100 had a phone, 99 an email and 100 a named officer.

### Who uses it

- **Fleet safety tech** (dashcams, ELDs, telematics, driver coaching): carriers with fresh crashes, HOS or unsafe-driving violations
- **Truck insurance agents and MGAs**: carriers whose loss history just changed, before renewal
- **DOT compliance consultants and driver-qualification services**: carriers with medical card, CDL, drug and alcohol, or HOS OOS orders
- **Truck repair, tire and mobile mechanic shops**: carriers put out of service for brakes, tires and lights near you (filter by event state)
- **Freight brokers, shippers and factoring companies**: watch your own carriers by USDOT number
- **Researchers and journalists**: crash and OOS trends by state, fleet size or violation

### Filters

Trigger events (crash / OOS inspection / any inspection with violations), days back or a start/end date, state where the event happened, carrier home state, crash severity (any, tow-away/injury/fatal, injury or fatal, fatal only), OOS category (driver / vehicle / hazmat), violation keywords (e.g. `brake`, `HOS`, `tire`, `medical`, `395.8`), USDOT watch list, minimum qualifying events (repeat offenders), min/max power units, phone or email required, event and violation details on/off, events listed per carrier.

### Example input

```json
{
  "eventTypes": ["oos_inspection"],
  "daysBack": 30,
  "oosCategories": ["driver"],
  "violationKeywords": ["HOS", "395."],
  "eventStates": ["CA"],
  "minPowerUnits": 1,
  "maxPowerUnits": 20,
  "minEvents": 2,
  "maxResults": 500
}
```

### Example output (trimmed, from a real run on 2026-10-20; contact fields left out here)

```json
{
  "usdotNumber": "4267548",
  "legalName": "PALMERO TRANSPORTATION LLC",
  "triggers": ["crash"],
  "lastEventDate": "2026-10-11",
  "city": "HOUSTON",
  "state": "TX",
  "powerUnits": 1,
  "totalDrivers": 1,
  "cargoCarried": "General Freight",
  "crashCount": 1,
  "crashInjuries": 1,
  "crashFatalities": 0,
  "crashTowAways": 1,
  "lastCrashState": "KY",
  "lastCrashCity": "PADUCAH",
  "crashes": [{
    "date": "2026-10-11",
    "location": "I 0024",
    "reportingAgency": "MCCRACKEN COUNTY SHERIFF OFFICE",
    "injuries": 1,
    "towAway": true,
    "vehiclesInvolved": 5,
    "event": "1:20:COLLISION INVOLVING OTHER MOVABLE OBJECT"
  }],
  "saferSnapshotUrl": "https://safer.fmcsa.dot.gov/query.asp?searchtype=ANY&query_type=queryCarrierSnapshot&query_param=USDOT&query_string=4267548"
}
```

Inspection-triggered rows also carry `inspectionCount`, `oosInspectionCount`, `oosRate`, `violationGroups` and `topViolations`, e.g. `{"code": "395.8A1-HOSP", "description": "HOS (Property) - Failing to have a record of duty status using the method prescribed", "category": "Hours of service", "count": 1, "outOfServiceCount": 1}`.

### Pricing

Pay per carrier returned. Set **Max results** (or a max charge) to cap spend. Each carrier appears once per run no matter how many crashes or inspections it had.

### Data source and notes

- Sources (all public, keyless FMCSA open data on data.transportation.gov): Crash File `aayw-vxb3`, Vehicle Inspection File `fx4q-ay7w`, Vehicle Inspections and Violations `876r-jsdb`, Company Census File `az4n-8mr2`.
- Crash and inspection counts use every event in the window for that carrier. Violation details come from the carrier's most recent inspections (up to "Max events listed per carrier").
- Crash records without a USDOT number (mostly intrastate vehicles) are skipped. Driver names, VINs and plates are not included.
- A crash in the FMCSA file does not mean the carrier was at fault.
- Requests are throttled to about 1 per second, back off on 429/5xx with Retry-After, and send a declared User-Agent.
- Use the data in line with applicable laws (TCPA, CAN-SPAM, state rules) and honor opt-outs. Not affiliated with FMCSA or US DOT.

### More from Intenal_Builds

- [SAM.gov Federal Contract Opportunities Tracker](https://apify.com/intenal_builds/federal-contract-opportunities-tracker)
- [USASpending Federal Awards Tracker](https://apify.com/intenal_builds/usaspending-federal-awards-tracker)
- [SEC Form D Funding Tracker](https://apify.com/intenal_builds/sec-form-d-funding-tracker)
- [US Federal Lobbying Disclosure Tracker](https://apify.com/intenal_builds/federal-lobbying-disclosure-tracker)

# Actor input Schema

## `eventTypes` (type: `array`):

Which safety events qualify a carrier. crash = DOT-reportable crash; oos_inspection = roadside inspection with an out-of-service order; violation_inspection = any inspection with at least one violation (includes OOS).

## `daysBack` (type: `integer`):

Look at events from the last N days (ending today or at End date). Inspections post within about 3 days; crash reports can take 1 to 3 weeks to reach FMCSA, so use 30+ for crash-only runs.

## `startDate` (type: `string`):

YYYY-MM-DD. Overrides Days back.

## `endDate` (type: `string`):

YYYY-MM-DD. Defaults to today.

## `eventStates` (type: `array`):

Two-letter codes of the state where the crash or inspection happened, e.g. TX, CA. Empty = all.

## `carrierStates` (type: `array`):

Two-letter codes of the carrier's physical address (from the FMCSA census). Empty = all.

## `crashSeverity` (type: `string`):

Minimum severity for a crash to count as a trigger.

## `oosCategories` (type: `array`):

Only count inspections with an out-of-service order in these categories (driver = HOS, medical card, licensing; vehicle = brakes, tires, lights; hazmat). Empty = any.

## `violationKeywords` (type: `array`):

Keep only carriers with at least one violation whose code or description contains any of these, e.g. brake, HOS, tire, medical, 395.8, ELD. Crash-only carriers are dropped when this is set.

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

Only these carriers. Useful for brokers and insurers monitoring a book of carriers. Empty = all carriers.

## `minEvents` (type: `integer`):

Carrier must have at least this many qualifying crashes plus inspections in the window (repeat offenders).

## `minPowerUnits` (type: `integer`):

Minimum fleet size (power units on the carrier's MCS-150).

## `maxPowerUnits` (type: `integer`):

Maximum fleet size, e.g. 50 to skip mega-carriers.

## `requireContact` (type: `boolean`):

Skip carriers with no phone, cell phone or email on file.

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

Add violation codes, descriptions, categories and OOS counts from the carrier's recent inspections.

## `includeEventDetails` (type: `boolean`):

Add per-crash and per-inspection lists (date, state, city, severity, inspection level, OOS counts).

## `maxEventsPerCarrier` (type: `integer`):

Cap on crashes/inspections listed (and inspections read for violations) per carrier. Counts always use every event in the window.

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

Stop after this many carriers (you pay per carrier).

## Actor input object example

```json
{
  "eventTypes": [
    "crash",
    "oos_inspection"
  ],
  "daysBack": 14,
  "crashSeverity": "any",
  "minEvents": 1,
  "requireContact": false,
  "includeViolations": true,
  "includeEventDetails": true,
  "maxEventsPerCarrier": 10,
  "maxResults": 50
}
```

# Actor output Schema

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

One item per carrier.

# 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 = {
    "eventTypes": [
        "crash",
        "oos_inspection"
    ],
    "daysBack": 14,
    "maxResults": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("intenal_builds/fmcsa-truck-crash-inspection-leads").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 = {
    "eventTypes": [
        "crash",
        "oos_inspection",
    ],
    "daysBack": 14,
    "maxResults": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("intenal_builds/fmcsa-truck-crash-inspection-leads").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 '{
  "eventTypes": [
    "crash",
    "oos_inspection"
  ],
  "daysBack": 14,
  "maxResults": 50
}' |
apify call intenal_builds/fmcsa-truck-crash-inspection-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,intenal_builds/fmcsa-truck-crash-inspection-leads"
        }
    }
}
```

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/7BmSD9QBSORAXvplf/builds/KUv9raw79s7GjrBAM/openapi.json
