# FMCSA Carrier Safety & DOT Number Scraper (`muhammadafzal/fmcsa-carrier-safety-scraper`) Actor

Look up public FMCSA SAFER carrier snapshots by USDOT, MC/MX/FF number, or company name. Export authority, fleet, inspection, crash, and safety rating data.

- **URL**: https://apify.com/muhammadafzal/fmcsa-carrier-safety-scraper.md
- **Developed by:** [Muhammad Afzal](https://apify.com/muhammadafzal) (community)
- **Categories:** Lead generation, Automation, Other
- **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 records

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## FMCSA Carrier Safety Scraper

Search the public FMCSA SAFER Company Snapshot by USDOT number, MC/MX/FF docket number, or carrier name. The Actor returns normalized carrier registration, operating authority, fleet, inspection, crash, and safety-rating data.

### What it extracts

- USDOT number, legal name, DBA name, entity type, and status
- MC/MX/FF docket numbers and operating authority status
- Physical and mailing addresses, phone, fleet size, and driver count
- MCS-150 filing date, mileage, and mileage year
- Operation classifications, carrier operation types, and cargo categories
- U.S. and Canadian inspection and out-of-service totals/rates
- Fatal, injury, tow-away, and total crash counts
- Current safety rating, review type, and source data date

### Input

At least one search value is required. You can combine all three modes.

```json
{
  "usdotNumbers": ["1", "704723"],
  "docketNumbers": ["MC120675"],
  "carrierNames": ["Acme Truck Line"],
  "maxResults": 100,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "US"
  }
}
```

Name searches may return multiple matching carriers. Duplicate USDOT records are written only once, and `maxResults` applies across the whole run.

### Output

Each dataset item represents one carrier. Example (abbreviated):

```json
{
  "usdotNumber": "1",
  "legalName": "FEDERAL MOTOR CARRIER SAFETY ADMINISTRATION",
  "dbaName": "FMCSA TECHNOLOGY DIVISION",
  "usdotStatus": "ACTIVE",
  "operatingAuthorityStatus": "NOT AUTHORIZED",
  "powerUnits": 91,
  "drivers": 2,
  "safetyRating": null,
  "dataAsOfDate": "08/16/2026",
  "sourceUrl": "https://safer.fmcsa.dot.gov/query.asp?..."
}
```

The `OUTPUT` key-value-store record classifies the run as `DATA`, `EMPTY`, `BLOCKED`, `REJECTED`, or `FAILED` and contains delivery counts and warnings. Valid no-match searches do not create fake dataset records.

### Pricing

Pay per event: one inexpensive Actor-start event plus **$0.004 per unique carrier record** written to the default dataset. Empty, blocked, and rejected queries incur no carrier-record event.

### Reliability and limitations

FMCSA SAFER is the direct public source. Its Company Snapshot is an ad-hoc, one-carrier-at-a-time service. FMCSA may rate-limit or reject datacenter traffic, so the default input uses a sticky U.S. residential Apify Proxy route and conservative concurrency. The Actor never attempts to bypass authentication or CAPTCHAs.

Company Snapshot data is current-state data, not a historical archive. FMCSA states that snapshot company data is generally refreshed daily, while inspection and crash counts are refreshed weekly and cover the preceding 24 months. A safety rating alone should not be treated as a complete determination of carrier safety or operating authority.

Use the results for lawful due diligence and analysis. Verify critical decisions with the linked FMCSA source and the FMCSA Licensing & Insurance system.

# Actor input Schema

## `usdotNumbers` (type: `array`):

One or more USDOT numbers. Numbers may be supplied as strings or integers.

## `docketNumbers` (type: `array`):

Optional docket numbers such as MC120675. Prefixes and hyphens are accepted.

## `carrierNames` (type: `array`):

Optional legal or DBA carrier names. Broad names can match multiple carriers.

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

Maximum unique carrier records written to the dataset.

## `maxConcurrency` (type: `integer`):

Parallel FMCSA requests. A conservative value reduces blocking.

## `proxyConfiguration` (type: `object`):

Optional Apify Proxy settings. Residential US sessions can help when FMCSA rejects datacenter traffic.

## Actor input object example

```json
{
  "usdotNumbers": [
    "1",
    "704723"
  ],
  "docketNumbers": [],
  "carrierNames": [],
  "maxResults": 100,
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `datasetItems` (type: `string`):

Normalized carrier identification, authority, inspection, crash, and safety rating records.

## `output` (type: `string`):

Outcome classification, counts, and warnings.

# 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 = {
    "usdotNumbers": [
        "1",
        "704723"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammadafzal/fmcsa-carrier-safety-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 = { "usdotNumbers": [
        "1",
        "704723",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("muhammadafzal/fmcsa-carrier-safety-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 '{
  "usdotNumbers": [
    "1",
    "704723"
  ]
}' |
apify call muhammadafzal/fmcsa-carrier-safety-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muhammadafzal/fmcsa-carrier-safety-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/Hrc2dzejEojCEcGeb/builds/FzpCYTlzYVv8aHDEF/openapi.json
