# US FMCSA Trucking Fleet & DOT Carrier Leads Scraper (`kailouis_labs/us-fmcsa-trucking-fleet-scraper`) Actor

Extract US trucking fleets and DOT carriers from the official FMCSA census file (4.5M carriers). Filter by fleet size, state, operation type, drivers, cargo, hazmat, new registrations and contact details. Each lead: DOT/MC number, power units, drivers, safety rating, crashes, phone, email.

- **URL**: https://apify.com/kailouis_labs/us-fmcsa-trucking-fleet-scraper.md
- **Developed by:** [Kailouis Labs](https://apify.com/kailouis_labs) (community)
- **Categories:** Jobs
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.00 / 1,000 us fmcsa trucking fleet 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

## US FMCSA Trucking Fleet & DOT Carrier Leads Scraper

Extract **US trucking fleets and DOT carriers** from the official **FMCSA Company Census File** (`data.transportation.gov`, dataset `az4n-8mr2`): **4.5M+ carriers, 147 columns**, published by the US Department of Transportation. No API key, no proxy, no browser.

Every record is a real registered motor carrier with its **DOT number, MC number, fleet size in power units, driver counts, cargo classes, hazmat flag, safety rating, crash rate, MCS-150 update date and published phone/email**.

Built for **B2B sellers who buy carrier lists**, not for consumers.

### Who buys this list

| Buyer | Why they buy it |
| --- | --- |
| Commercial trucking insurance brokers & MGAs | Fleets of 25+ power units are the sweet spot for cargo and liability books. Filter by state and fleet size to build an agency's prospecting list in one run. |
| Freight factoring & invoice-financing firms | Newly registered authorities (`addedSinceDays`) and freshly updated MCS-150 filings are carriers that need cash flow right now. |
| Fuel-card & maintenance-card programmes | Fleet size decides the deal size; `powerUnits` between 25 and 500 is the classic fuel-card band. |
| ELD / telematics / fleet SaaS sales teams | `powerUnits`, `totalDrivers`, `carrierOperation` and cargo types tell you exactly which fleet needs compliance and routing software. |
| Commercial truck & trailer dealers, upfitters | Fleets large enough to buy units but small enough to buy retail: 25–500 power units, filtered by state. |
| Logistics brokers, 3PLs, shipper development teams | Pull carriers by cargo type (`crgo_genfreight`, `crgo_coldfood`, `crgo_oilfield`…) and haul corridor state. |
| Compliance, safety & DOT audit consultants | `safetyRating`, `recordableCrashRate` and `lastReviewDate` surface carriers under CSA pressure. |

### What you get per lead (50+ fields)

- **Identity:** `legalName`, `dbaName`, `dotNumber`, `mcNumber` (e.g. `MC-338871`), `statusCode`
- **Fleet:** `powerUnits`, `truckUnits`, `busUnits`, `totalDrivers`, `interstateDrivers`, `intrastateDrivers`, `avgLeasedDriversPerMonth`, `fleetSizeBand`
- **Operation:** `carrierOperation` (Interstate / Intrastate / Both), `operationClass`, `businessOrgType`, `cargoTypes[]`, `hazmatFlag`
- **Safety:** `safetyRating`, `safetyRatingDate`, `lastReviewType`, `lastReviewDate`, `recordableCrashRate`
- **Freshness:** `registeredDate` (add_date), `mcs150Date`, `mcs150Mileage`, `mcs150MileageYear`
- **Contact:** `phone` (formatted), `cellPhone`, `email`, `emailValid`
- **Location:** `street`, `city`, `state`, `zip`, `county`, `country`
- **Signals:** `hasEmail`, `hasPhone`, `dataQualityFlags[]`, `sourceUrl` (SAFER snapshot), `scrapedAt`

### Input

| Field | Default | What it does |
| --- | --- | --- |
| `statusCode` | `A` | `A` active authority, `I` inactive, `P` pending, empty = any |
| `phyState` | `["TX"]` | Two-letter US states of the carrier's physical address |
| `minPowerUnits` / `maxPowerUnits` | `25` / `5000` | Fleet size band (power units, numeric) |
| `minDrivers` | `0` | Minimum reported drivers |
| `carrierOperation` | empty | `A` interstate, `C` intrastate, `B` both |
| `hasEmailOnly` / `hasPhoneOnly` | `false` | Keep only contactable carriers |
| `addedSinceDays` | `0` | Only carriers registered in the last N days |
| `mcs150UpdatedSinceDays` | `0` | Only carriers that refreshed MCS-150 in the last N days |
| `cargoType` | empty | 30 cargo classes (general freight, construction, refrigerated, oilfield…) |
| `keywordSearch` | empty | Search legal and DBA names |
| `maxItems` | `50` | Hard cap on leads per run (up to 100,000) |

Example, **1,000 active Texas fleets with 25–500 power units and an email**:

```json
{
  "statusCode": "A",
  "phyState": ["TX"],
  "minPowerUnits": 25,
  "maxPowerUnits": 500,
  "hasEmailOnly": true,
  "maxItems": 1000
}
```

Example, **freshly registered carriers nationwide (last 30 days), any fleet size**:

```json
{ "statusCode": "A", "addedSinceDays": 30, "cargoType": "general_freight", "maxItems": 500 }
```

### Output sample

```json
{
  "dotNumber": "962805",
  "mcNumber": "MC-338871",
  "legalName": "CUDD PUMPING SERVICES INC",
  "dbaName": "CUDD ENERGY SERVICES",
  "powerUnits": 991,
  "totalDrivers": 305,
  "fleetSizeBand": "500-999",
  "carrierOperation": "Interstate",
  "cargoTypes": ["Oilfield equipment", "General freight"],
  "safetyRating": "Satisfactory",
  "recordableCrashRate": 0.42,
  "city": "KILGORE",
  "state": "TX",
  "phone": "(903) 988-2161",
  "email": "jmarcon@cudd.com",
  "sourceUrl": "https://safer.fmcsa.dot.gov/query.asp?query_type=queryCarrierSnapshot&query_param=USDOT&query_string=962805"
}
```

### Data quality notes

- `power_units` and `total_drivers` are stored as **text** in the census file, so every filter is cast (`power_units::number`) before comparing. Raw string comparison would rank `"100"` below `"25"`.
- A handful of rows contain corrupt fleet figures (five to seven digit typos). `maxPowerUnits` defaults to 5000 to keep them out, and such rows are flagged `power_units_suspicious`.
- `email` is whatever the carrier filed with FMCSA, often a real operations or owner address; `emailValid` is a format check only.
- Records are deduplicated by DOT number in the source; one dataset item = one carrier.

### Cost control

Pay-per-event: **$6.00 per 1,000 carrier leads** + a `$0.00005` Actor start event. A run is billed only for the leads it delivers. The Actor reads `Actor.getChargingManager()` after start and stops **before** it would exceed your `ACTOR_MAX_TOTAL_CHARGE_USD` budget (exit code 0, no error). Set `maxItems` to control spend exactly.

### Performance

- 512 MB container, plain HTTPS + SoQL pushdown, 1,000 rows per page, batched dataset writes.
- Peak RSS stays **well under 200 MB** even for a 100,000-lead run.
- Default run (50 leads): a few seconds. The daily Store auto-test finishes in under 15 seconds.

### Limitations

- Source data is FMCSA's published census snapshot; some carriers leave email or phone blank. Use `hasEmailOnly` / `hasPhoneOnly` to keep only contactable records.
- Email addresses are as filed with the DOT and may be outdated; verify before any outreach that requires it.
- No personal consumer data beyond the business contact information FMCSA publishes for the carrier.

### Support

Open an issue on the Actor page. Built and maintained by **Kailouis Labs**.

# Actor input Schema

## `statusCode` (type: `string`):

FMCSA operating status. A = active authority (recommended for sales lists), I = inactive, P = pending. Leave empty for every status.

## `phyState` (type: `array`):

Two-letter US state codes of the carrier's physical location, e.g. TX, CA, FL, IL. Leave empty for nationwide.

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

Smallest fleet to keep. 25+ power units is the sweet spot for commercial trucking insurance, fuel cards and fleet SaaS. Default 25.

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

Largest fleet to keep, so mega-carriers do not flood the list. Leave empty for no upper bound. Default 5000.

## `minDrivers` (type: `integer`):

Keep only carriers that report at least this many drivers (interstate + intrastate). Leave empty to ignore. Default 0.

## `carrierOperation` (type: `string`):

A = interstate only, C = intrastate only, B = both. Leave empty for interstate and intrastate carriers.

## `hasEmailOnly` (type: `boolean`):

Keep only records where FMCSA publishes an email address. Best list quality for cold outreach, but narrows the pool.

## `hasPhoneOnly` (type: `boolean`):

Keep only records with a phone number on file.

## `addedSinceDays` (type: `integer`):

Newly registered DOT carriers only (add_date). A fresh authority is a buying trigger for insurance, ELD and factoring. Default 0 = no limit.

## `mcs150UpdatedSinceDays` (type: `integer`):

Carriers that refreshed their MCS-150 in the last N days, i.e. fleets actively growing or re-registering. Default 0 = no limit.

## `cargoType` (type: `string`):

Keep carriers that haul this cargo type (FMCSA cargo flags). Empty = any cargo.

## `keywordSearch` (type: `string`):

Free text matched against the legal name and the DBA name, e.g. LOGISTICS, TRUCKING, FREIGHT, EXPRESS.

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

How many carrier records to save. Default 50 keeps the Apify auto-test fast; raise it for a full market pull.

## Actor input object example

```json
{
  "statusCode": "A",
  "phyState": [
    "TX"
  ],
  "minPowerUnits": 25,
  "maxPowerUnits": 5000,
  "minDrivers": 0,
  "carrierOperation": "",
  "hasEmailOnly": false,
  "hasPhoneOnly": false,
  "addedSinceDays": 0,
  "mcs150UpdatedSinceDays": 0,
  "cargoType": "",
  "keywordSearch": "",
  "maxItems": 50
}
```

# Actor output Schema

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

No description

## `datasetItemsCsv` (type: `string`):

No description

## `runSummary` (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 = {
    "phyState": [
        "TX"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kailouis_labs/us-fmcsa-trucking-fleet-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 = { "phyState": ["TX"] }

# Run the Actor and wait for it to finish
run = client.actor("kailouis_labs/us-fmcsa-trucking-fleet-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 '{
  "phyState": [
    "TX"
  ]
}' |
apify call kailouis_labs/us-fmcsa-trucking-fleet-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kailouis_labs/us-fmcsa-trucking-fleet-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/GtiuZSu6aXB4BN6eV/builds/358RBFcVHMnhJsLzP/openapi.json
