{
  "openapi": "3.0.1",
  "info": {
    "title": "US FMCSA Trucking Fleet & DOT Carrier Leads Scraper",
    "description": "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.",
    "version": "1.0",
    "x-build-id": "358RBFcVHMnhJsLzP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kailouis_labs~us-fmcsa-trucking-fleet-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kailouis_labs-us-fmcsa-trucking-fleet-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/kailouis_labs~us-fmcsa-trucking-fleet-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kailouis_labs-us-fmcsa-trucking-fleet-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/kailouis_labs~us-fmcsa-trucking-fleet-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kailouis_labs-us-fmcsa-trucking-fleet-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "statusCode": {
            "title": "Operating status",
            "enum": [
              "A",
              "I",
              "P",
              ""
            ],
            "type": "string",
            "description": "FMCSA operating status. A = active authority (recommended for sales lists), I = inactive, P = pending. Leave empty for every status.",
            "default": "A"
          },
          "phyState": {
            "title": "US states (physical address)",
            "uniqueItems": true,
            "type": "array",
            "description": "Two-letter US state codes of the carrier's physical location, e.g. TX, CA, FL, IL. Leave empty for nationwide.",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z]{2}$"
            }
          },
          "minPowerUnits": {
            "title": "Minimum power units (fleet size)",
            "minimum": 0,
            "type": "integer",
            "description": "Smallest fleet to keep. 25+ power units is the sweet spot for commercial trucking insurance, fuel cards and fleet SaaS. Default 25.",
            "default": 25
          },
          "maxPowerUnits": {
            "title": "Maximum power units (fleet size)",
            "minimum": 1,
            "type": "integer",
            "description": "Largest fleet to keep, so mega-carriers do not flood the list. Leave empty for no upper bound. Default 5000.",
            "default": 5000
          },
          "minDrivers": {
            "title": "Minimum drivers",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only carriers that report at least this many drivers (interstate + intrastate). Leave empty to ignore. Default 0.",
            "default": 0
          },
          "carrierOperation": {
            "title": "Carrier operation",
            "enum": [
              "",
              "A",
              "C",
              "B"
            ],
            "type": "string",
            "description": "A = interstate only, C = intrastate only, B = both. Leave empty for interstate and intrastate carriers.",
            "default": ""
          },
          "hasEmailOnly": {
            "title": "Only carriers with a published email",
            "type": "boolean",
            "description": "Keep only records where FMCSA publishes an email address. Best list quality for cold outreach, but narrows the pool.",
            "default": false
          },
          "hasPhoneOnly": {
            "title": "Only carriers with a published phone",
            "type": "boolean",
            "description": "Keep only records with a phone number on file.",
            "default": false
          },
          "addedSinceDays": {
            "title": "Registered in the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Newly registered DOT carriers only (add_date). A fresh authority is a buying trigger for insurance, ELD and factoring. Default 0 = no limit.",
            "default": 0
          },
          "mcs150UpdatedSinceDays": {
            "title": "MCS-150 updated in the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Carriers that refreshed their MCS-150 in the last N days, i.e. fleets actively growing or re-registering. Default 0 = no limit.",
            "default": 0
          },
          "cargoType": {
            "title": "Cargo type",
            "enum": [
              "",
              "general_freight",
              "construction",
              "building_materials",
              "refrigerated",
              "produce",
              "grain_feed",
              "livestock",
              "meat",
              "beverages",
              "chemicals",
              "dry_bulk",
              "oilfield",
              "utility",
              "household_goods",
              "motor_vehicles",
              "metal_sheets",
              "machinery_large",
              "log_poles",
              "intermodal",
              "passengers",
              "garbage",
              "us_mail",
              "mobile_homes",
              "farm_supplies",
              "water_well",
              "liquid_gas",
              "coal_coke",
              "drive_away_tow",
              "other_cargo"
            ],
            "type": "string",
            "description": "Keep carriers that haul this cargo type (FMCSA cargo flags). Empty = any cargo.",
            "default": ""
          },
          "keywordSearch": {
            "title": "Keyword in legal or DBA name",
            "type": "string",
            "description": "Free text matched against the legal name and the DBA name, e.g. LOGISTICS, TRUCKING, FREIGHT, EXPRESS.",
            "default": ""
          },
          "maxItems": {
            "title": "Max leads",
            "minimum": 1,
            "type": "integer",
            "description": "How many carrier records to save. Default 50 keeps the Apify auto-test fast; raise it for a full market pull.",
            "default": 50
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}