# FMCSA Fleet & Semi-Trailer Vehicle Maintenance OOS Intelligence (`idyllic_throne_j72/fmcsa-fleet-oos-maintenance-intel`) Actor

Enrich active US commercial trucking fleets with official US DOT FMCSA Census data (owned semi-trailers, company officer, phone, email, yard address) and live roadside Vehicle Out-of-Service (OOS) inspection rates. Filter by state, fleet size, trailer count, and minimum OOS rate.

- **URL**: https://apify.com/idyllic_throne_j72/fmcsa-fleet-oos-maintenance-intel.md
- **Developed by:** [Raisy Roo](https://apify.com/idyllic_throne_j72) (community)
- **Categories:** Business, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 enriched fleet 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/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 Fleet & Semi-Trailer Vehicle Maintenance OOS Intelligence

> **Use this Actor / MCP tool when you need to find active US commercial trucking fleets, filter by owned semi-trailer count (`owntrail`) and power units, enrich USDOT numbers with decision-maker contact info (`company_officer`, `phone`, `email`, yard address), or identify fleets with high roadside Vehicle Out-of-Service (OOS) inspection rates.**

Pulls live, structured records directly from official US Department of Transportation FMCSA Open Data (`data.transportation.gov` Motor Carrier Census `az4n-8mr2` + Roadside Vehicle Inspection File `fx4q-ay7w`).

### Why Buyers & AI Agents Choose This Actor

- **Two High-Value Joins Generic FMCSA Scrapers Omit:** Combines active carrier census contacts + **owned semi-trailer counts (`owntrail`)** + **live roadside Vehicle Out-of-Service (OOS) inspection rates**.
- **Actionable Filtering:** Filter by US `state`, `minPowerUnits`, `minTrailers`, and `minOosRatePct`, or pass a targeted list of `dotNumbers`.
- **Fair, Transparent Billing:** Pay-Per-Event (`$0.005` / record = `$5.00 / 1,000` enriched fleets). Strictly enforces customer `maxTotalChargeUsd` spending limits with exact 1:1 billed-to-delivered accuracy.

### Sample Output (JSON)

```json
{
  "dot_number": "358614",
  "mc_docket": "MC198241",
  "legal_name": "J RAYL TRANSPORT INC",
  "dba_name": "JRAYL",
  "company_officer": "RYAN RICHARDS",
  "phone": "3307841134",
  "email": "safety@jrayl.com",
  "street": "1016 TRIPLETT BLVD",
  "city": "AKRON",
  "state": "OH",
  "zip": "44306",
  "power_units": 326,
  "owned_tractors": 210,
  "owned_trailers": 1097,
  "owned_trucks": 0,
  "total_drivers": 249,
  "reefer_cargo": false,
  "hazmat": false,
  "safety_rating": "S",
  "sample_inspections": 50,
  "vehicle_oos_inspections": 5,
  "vehicle_oos_violations": 7,
  "vehicle_total_violations": 27,
  "vehicle_oos_rate_pct": 10.0,
  "maintenance_need_tier": "STANDARD"
}
```

### Pricing (Pay-Per-Event)

| Event | Price | Cost per 1,000 Fleets |
|---|---|---|
| `carrier-enriched` | `$0.005` | `$5.00` |

### Frequently Asked Questions

- **Where does the data come from?** 100% official public US DOT FMCSA Open Data (`data.transportation.gov`), queried live with batched Socrata requests.
- **Can AI agents call this via MCP?** Yes — connect via `@apify/actors-mcp-server` with `--actors idyllic_throne_j72/fmcsa-fleet-oos-maintenance-intel`.
- **Does it respect my budget cap?** Yes — stops immediately when `maxTotalChargeUsd` is reached.

### Companion Repo & Related Tools

- **Free 20-Fleet OH/TX Sample CSV + Python/MCP Kit:** https://github.com/Raisyroo/fmcsa-fleet-oos-intelligence
- **Need PDF/Web Document Extraction for AI/RAG?** Try our [PDF & Web to RAG Markdown, Tables & Chunks (AI / MCP)](https://apify.com/idyllic_throne_j72/pdf-doc-to-rag-markdown-mcp) Actor.

# Actor input Schema

## `state` (type: `string`):

Filter active motor carriers by physical state (e.g. OH, TX, IL, PA). Ignored if dotNumbers is provided.

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

Minimum fleet size (power units) to include.

## `minTrailers` (type: `integer`):

Filter for fleets that own at least this many semi-trailers (FMCSA owntrail field).

## `minOosRatePct` (type: `number`):

Only return fleets with a roadside Vehicle OOS inspection rate at or above this percentage (e.g. 15 for elevated maintenance need).

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

Optional list of specific USDOT numbers to enrich directly.

## `maxCarriers` (type: `integer`):

Maximum number of qualified fleets to output.

## Actor input object example

```json
{
  "state": "OH",
  "minPowerUnits": 15,
  "minTrailers": 10,
  "minOosRatePct": 0,
  "maxCarriers": 25
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `allRecordsJson` (type: `string`):

No description

## `downloadCsv` (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("idyllic_throne_j72/fmcsa-fleet-oos-maintenance-intel").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("idyllic_throne_j72/fmcsa-fleet-oos-maintenance-intel").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 idyllic_throne_j72/fmcsa-fleet-oos-maintenance-intel --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,idyllic_throne_j72/fmcsa-fleet-oos-maintenance-intel"
        }
    }
}
```

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/HMBj3giroFLljTTTs/builds/FfXSFkjOJNaE4L4PH/openapi.json
