# FMCSA Out-of-Service Orders & Safety Audit Failure Scraper (`groundplanes/fmcsa-out-of-service-orders-scraper`) Actor

Pull FMCSA motor carrier out-of-service orders (new entrant audit revocations, unfit ratings and more) from DOT open data, with carrier location and fleet size from the FMCSA census.

- **URL**: https://apify.com/groundplanes/fmcsa-out-of-service-orders-scraper.md
- **Developed by:** [Groundplane Labs](https://apify.com/groundplanes) (community)
- **Categories:** Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 orders

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Out-of-Service Orders & Safety Audit Failure Scraper

Get the newest FMCSA out-of-service (OOS) orders against interstate motor carriers: new entrant registrations revoked for refusing or failing the safety audit, Unsatisfactory/Unfit ratings, failure-to-pay-fine orders and more. Each order is joined to the FMCSA Motor Carrier Census for the carrier's physical location and fleet size.

> This actor is an independent tool. It is not affiliated with or endorsed by the Federal Motor Carrier Safety Administration (FMCSA) or the U.S. Department of Transportation.

### What it does

- Reads the official DOT open-data dataset **OUT OF SERVICE ORDERS** (`p2mt-9ige`) at `https://data.transportation.gov/resource/p2mt-9ige.json`, filtered at the source by OOS reason and order date, newest first.
- Looks up each carrier's USDOT number in the **Motor Carrier Census** (`kjg3-diqy`) at `https://data.transportation.gov/resource/kjg3-diqy.json` for physical address, power units and drivers, and filters by the carrier's physical state.
- Checks your reason values against the reasons the source actually publishes before running, so a typo can never return a quiet zero.
- Optional **monitor mode** delivers only orders you have not received before.
- Every run ends with a status that states the counts: orders the source matched, orders scanned, orders outside your states, orders with no census record, and rows emitted.

### Who it's for

- DOT compliance consultants who help carriers respond to revocations and prepare corrective action plans.
- Freight brokers and shippers screening carriers that are under an out-of-service order.
- Insurance and fleet-risk analysts tracking enforcement activity by state.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `states` | array of strings | `["GA","TX","CA","FL","IL","OH"]` | Carrier physical-address states (from the census). Empty = all states. |
| `oosReasonFilter` | array of strings | `["New Entrant Revoked - Refusal of Audit/No Contact", "New Entrant Revoked - Failure of Safety Audit", "New Entrant Revoked - Expedited Actions", "Unsatisfactory = Unfit"]` | OOS reasons exactly as FMCSA publishes them. Empty = all reasons. Unknown values fail the run and list the valid ones. |
| `oosDateFrom` | string (YYYY-MM-DD) | blank = run date minus 60 days | Earliest OOS order date. |
| `enrichWithCarrierPhoneAndEmail` | boolean | `false` | Adds `carrierPhone` and `carrierEmail` as filed in the census. See Compliance. |
| `monitorMode` | boolean | `false` | Emit only orders not delivered by an earlier monitor run on your account. |
| `maxItems` | integer | `1000` | Maximum rows, newest first. |

Valid reasons today: `New Entrant Revoked - Refusal of Audit/No Contact`, `New Entrant Revoked - Failure of Safety Audit`, `New Entrant Revoked - Expedited Actions`, `Unsatisfactory = Unfit`, `90 day failure to pay fine`, `Denial of Access`, `Intrastate Out of Service`, `Imminent Hazard`, `Operating Without Authority - 49 USC 13902(e)(1)`, `Generic/Other`.

#### Example input (canary)

```json
{
  "states": ["GA", "TX", "CA", "FL", "IL", "OH"],
  "oosReasonFilter": [
    "New Entrant Revoked - Refusal of Audit/No Contact",
    "New Entrant Revoked - Failure of Safety Audit",
    "New Entrant Revoked - Expedited Actions",
    "Unsatisfactory = Unfit"
  ],
  "oosDateFrom": "",
  "enrichWithCarrierPhoneAndEmail": false,
  "monitorMode": false,
  "maxItems": 1000
}
```

#### Example run options (default $50 max charge)

```json
{ "maxTotalChargeUsd": 50 }
```

The actor checks your max charge before every dataset push and stops cleanly when the limit is reached.

### Output

One row per OOS order, deduplicated on USDOT number + OOS date + reason, sorted by OOS date (newest first).

| Field | Type | Description |
|---|---|---|
| `usdotNumber` | string | USDOT number. |
| `legalName` | string | Carrier legal name from the OOS orders dataset. |
| `dbaName` | string or null | Doing-business-as name; null when not published. |
| `streetAddress` | string or null | Physical street from the census; null when the carrier has no census record. |
| `city` | string or null | Physical city from the census. |
| `state` | string or null | Physical state from the census. |
| `zipCode` | string or null | Physical ZIP from the census. |
| `oosReason` | string | OOS reason as published. |
| `oosOrderDate` | string | OOS order date, YYYY-MM-DD. |
| `carrierStatus` | string or null | The `status` field of the OOS order record (`ACTIVE` or `INACTIVE`) as published. |
| `powerUnitsCount` | integer or null | Power units from the census. |
| `driversCount` | integer or null | Total drivers from the census. |
| `carrierPhone` | string or null | Only when `enrichWithCarrierPhoneAndEmail` is on: phone as filed in the census. |
| `carrierEmail` | string or null | Only when `enrichWithCarrierPhoneAndEmail` is on: email as filed in the census. |
| `liPublicDetailUrl` | string | FMCSA SAFER company snapshot page for the USDOT number. |
| `censusMatched` | boolean | True when the carrier was found in the census. |

#### Sample row (synthetic)

```json
{
  "usdotNumber": "9999999",
  "legalName": "EXAMPLE FREIGHT LINES LLC",
  "dbaName": null,
  "streetAddress": "100 EXAMPLE INDUSTRIAL PKWY",
  "city": "EXAMPLETON",
  "state": "TX",
  "zipCode": "75000",
  "oosReason": "New Entrant Revoked - Refusal of Audit/No Contact",
  "oosOrderDate": "2026-10-30",
  "carrierStatus": "ACTIVE",
  "powerUnitsCount": 3,
  "driversCount": 3,
  "liPublicDetailUrl": "https://safer.fmcsa.dot.gov/query.asp?searchtype=ANY&query_type=queryCarrierSnapshot&query_param=USDOT&query_string=9999999",
  "censusMatched": true
}
```

### How pricing works

Pay per result. You only pay for rows returned.

### Data source and terms

- **OUT OF SERVICE ORDERS** (`p2mt-9ige`) and **Motor Carrier Census** (`kjg3-diqy`), published by FMCSA on the U.S. DOT open data portal (data.transportation.gov) as public data. Dataset pages: https://data.transportation.gov/d/p2mt-9ige and https://data.transportation.gov/d/kjg3-diqy. Both datasets' metadata list FMCSA as publisher with access rights "public".
- **Update cadence:** the OOS dataset is refreshed roughly daily (on \[\[2026-11-01|2026-11-01]] its newest order was 2026-10-30). The actor reports PARTIAL if the newest order in the whole dataset is more than 30 days old.
- The OOS dataset itself has no address or fleet columns; location, power units and drivers come from the census join.

### Limits and FAQ

- **Orders with no census record.** Some carriers in the OOS dataset have no census record (measured 2026-11-01: 1.5% of the newest 200 orders, 4.6% over a 60-day window, mostly older revoked new entrants). Their location is unknown, so when you set `states` they cannot be placed in a state and are left out. The status always states how many. If more than 10% of scanned orders have no census record, the run ends PARTIAL because that points to a census problem. With `states` empty, these orders are included with null location fields.
- **Census outage.** If the census lookup fails and `states` is empty, orders are still delivered without location fields and the run ends PARTIAL. If `states` is set, orders that cannot be checked against your states are not delivered, and the status says how many.
- **Date format guard.** The source stores `oos_date` as text. If any orders for your reasons carry a date in another format, they cannot be date-filtered; the run ends PARTIAL with their count.
- **`carrierStatus`** is the status of the OOS order record as published, not the carrier's operating authority. Check the SAFER snapshot for current authority.
- **`liPublicDetailUrl`** links to the SAFER company snapshot. The FMCSA Licensing & Insurance (L\&I) per-carrier page could not be verified as a stable public link, so the snapshot is used.
- **Zero matches** end as `Complete: 0 ... matched your filters` with counts. Widen the date window, add states or add reasons.
- **Monitor mode** stores the seen list in a named key-value store `fmcsa-oos-monitor` on your account. A run that ends PARTIAL for a source reason does not update it, so no order is skipped.
- The scan has a 10-minute time budget; hitting it ends PARTIAL with the counts.

### Compliance

Carrier phone and email are off by default. FMCSA publishes them as filed by the carrier, and for small carriers they are often an owner-operator's personal contacts. When you turn them on, you are responsible for complying with the TCPA, the National Do-Not-Call Registry, CAN-SPAM and state privacy laws before any outreach. Do not use this data to target consumers or individuals.

Street address is different: it ships by default, as part of the census location fields in every row. Many of these carriers are sole proprietors. In a default run on 2026-11-01, 751 of 1,000 carriers had 0 or 1 power units and 88 had legal names that look like a person's name, so a large share of these street addresses are probably sole proprietors' home addresses, exactly as filed with FMCSA. Treat them accordingly.

### Troubleshooting

- **PARTIAL: source looks stale**: the OOS dataset has not been updated for over 30 days. The rows delivered are what FMCSA currently publishes.
- **PARTIAL: carrier census lookup failed**: DOT's census endpoint was unavailable. Retry later.
- **Failed with "schema drift"**: FMCSA renamed or removed a column the actor depends on. Nothing was delivered.
- **PARTIAL: max charge limit reached**: raise the max charge for the run to get more rows.

If this keeps happening, please open an issue on this actor's Issues tab and we'll fix it fast.

Found a problem or need a field? Open an issue on the Issues tab; we respond quickly.

### Changelog

- **0.1.1 (2026-11-01):** Review fix: README Compliance section now states plainly that street addresses ship by default and that many are likely sole proprietors' home addresses.
- **0.1 (2026-11-01):** First build.

# Actor input Schema

## `enrichWithCarrierPhoneAndEmail` (type: `boolean`):

Off by default. For small carriers the census phone and email are often a sole proprietor's personal contacts. When on, the phone and email are passed through exactly as filed in the FMCSA census, with no inference or third-party enrichment. You are responsible for TCPA, Do-Not-Call and CAN-SPAM compliance.

## `maxItems` (type: `integer`):

Maximum OOS orders to return, newest first.

## `monitorMode` (type: `boolean`):

When on, the actor remembers orders it already delivered (USDOT + OOS date + reason, in a named key-value store on your account) and emits only new ones. A run that ends PARTIAL for a source reason does not update the seen list.

## `oosDateFrom` (type: `string`):

Earliest OOS order date (YYYY-MM-DD). Leave blank for the run date minus 60 days, computed at run time.

## `oosReasonFilter` (type: `array`):

OOS reasons to include, exactly as FMCSA publishes them. Values are checked against the live source before the run; an unknown value fails the run with the list of valid values. Leave empty for all reasons.

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

2-letter state codes of the carrier's physical address (from the FMCSA carrier census). Leave empty for all states; orders whose carrier has no census record are then included with a null state.

## Actor input object example

```json
{
  "enrichWithCarrierPhoneAndEmail": false,
  "maxItems": 1000,
  "monitorMode": false,
  "oosDateFrom": "",
  "oosReasonFilter": [
    "New Entrant Revoked - Refusal of Audit/No Contact",
    "New Entrant Revoked - Failure of Safety Audit",
    "New Entrant Revoked - Expedited Actions",
    "Unsatisfactory = Unfit"
  ],
  "states": [
    "GA",
    "TX",
    "CA",
    "FL",
    "IL",
    "OH"
  ]
}
```

# Actor output Schema

## `results` (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 = {
    "maxItems": 1000,
    "oosDateFrom": "",
    "oosReasonFilter": [
        "New Entrant Revoked - Refusal of Audit/No Contact",
        "New Entrant Revoked - Failure of Safety Audit",
        "New Entrant Revoked - Expedited Actions",
        "Unsatisfactory = Unfit"
    ],
    "states": [
        "GA",
        "TX",
        "CA",
        "FL",
        "IL",
        "OH"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("groundplanes/fmcsa-out-of-service-orders-scraper").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 = {
    "maxItems": 1000,
    "oosDateFrom": "",
    "oosReasonFilter": [
        "New Entrant Revoked - Refusal of Audit/No Contact",
        "New Entrant Revoked - Failure of Safety Audit",
        "New Entrant Revoked - Expedited Actions",
        "Unsatisfactory = Unfit",
    ],
    "states": [
        "GA",
        "TX",
        "CA",
        "FL",
        "IL",
        "OH",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("groundplanes/fmcsa-out-of-service-orders-scraper").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 '{
  "maxItems": 1000,
  "oosDateFrom": "",
  "oosReasonFilter": [
    "New Entrant Revoked - Refusal of Audit/No Contact",
    "New Entrant Revoked - Failure of Safety Audit",
    "New Entrant Revoked - Expedited Actions",
    "Unsatisfactory = Unfit"
  ],
  "states": [
    "GA",
    "TX",
    "CA",
    "FL",
    "IL",
    "OH"
  ]
}' |
apify call groundplanes/fmcsa-out-of-service-orders-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,groundplanes/fmcsa-out-of-service-orders-scraper"
        }
    }
}
```

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/Y8ycngNSR4e0374i5/builds/6qjvZUdS0G2HODByW/openapi.json
