{
  "openapi": "3.0.1",
  "info": {
    "title": "FMCSA Trucking Leads Scraper: New Carriers, MC & Insurance",
    "description": "FMCSA motor carrier data from the USDOT census and MOTUS: new USDOT and MC registrations, authority granted or suspended, insurance renewals, lookups by USDOT, MC or name. Phone, email, fleet, cargo, insurer, policy, BOC-3. Export to JSON, CSV or Excel, or via API.",
    "version": "1.0",
    "x-build-id": "58bHPcFaldMfI48sO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~fmcsa-trucking-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-fmcsa-trucking-leads-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/steadyscrape~fmcsa-trucking-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-fmcsa-trucking-leads-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/steadyscrape~fmcsa-trucking-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-fmcsa-trucking-leads-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": {
          "mode": {
            "title": "What to get",
            "enum": [
              "newRegistrations",
              "authorityEvents",
              "insuranceRenewals",
              "lookup",
              "search"
            ],
            "type": "string",
            "description": "New USDOT registrations read the census by the day each number was added. Authority events read FMCSA's authority history (MOTUS): authority granted, new applications, suspensions for insurance or BOC-3 lapses, reinstatements, and suspension notices that take effect in about 30 days. Insurance renewals list carriers whose liability (or cargo, bond) filing reaches its anniversary in the next days. Lookup takes USDOT numbers, MC numbers or names. Search reads the whole census by the filters below.",
            "default": "newRegistrations"
          },
          "withinDays": {
            "title": "In the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "New registrations and authority events: from this many days ago up to today. Ignored when the dates below are set.",
            "default": 7
          },
          "dateFrom": {
            "title": "From day (optional)",
            "pattern": "^\\s*(\\d{4}-\\d{2}-\\d{2})?\\s*$",
            "type": "string",
            "description": "YYYY-MM-DD. Replaces \"In the last N days\" for new registrations and authority events.",
            "default": ""
          },
          "dateTo": {
            "title": "To day (optional)",
            "pattern": "^\\s*(\\d{4}-\\d{2}-\\d{2})?\\s*$",
            "type": "string",
            "description": "YYYY-MM-DD, included. Empty is today.",
            "default": ""
          },
          "eventKinds": {
            "title": "Authority events",
            "type": "array",
            "description": "Authority events mode: the kinds of event to deliver. Each carrier comes once, with its newest event of these kinds. Suspension notices are read after the others.",
            "items": {
              "type": "string",
              "enum": [
                "granted",
                "pendingApplication",
                "publishedInRegister",
                "reinstated",
                "insuranceSuspension",
                "boc3Suspension",
                "involuntarySuspension",
                "voluntarySuspension",
                "revoked",
                "withdrawn",
                "suspensionNotice"
              ],
              "enumTitles": [
                "Authority granted",
                "New application (pending)",
                "Published in the FMCSA Register (pending)",
                "Reinstated",
                "Suspended or inactivated: insurance cancelled",
                "Suspended or inactivated: BOC-3 cancelled",
                "Any involuntary suspension",
                "Voluntary suspension",
                "Revoked or out of service",
                "Application withdrawn",
                "Involuntary suspension notice served (takes effect on its effective date)"
              ]
            },
            "default": [
              "granted"
            ]
          },
          "authorityTypes": {
            "title": "Authority types (optional)",
            "type": "array",
            "description": "Authority events mode: only events of these authority types. Empty is every type.",
            "items": {
              "type": "string",
              "enum": [
                "property",
                "householdGoods",
                "passengers",
                "broker",
                "freightForwarder"
              ],
              "enumTitles": [
                "Motor carrier of property",
                "Motor carrier of household goods",
                "Motor carrier of passengers",
                "Broker",
                "Freight forwarder"
              ]
            },
            "default": []
          },
          "renewalWithinDays": {
            "title": "Renewing in the next N days",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Insurance renewals mode: filings whose effective date has its anniversary from tomorrow to this many days ahead, soonest first.",
            "default": 30
          },
          "insuranceTypes": {
            "title": "Insurance types",
            "type": "array",
            "description": "Insurance renewals mode: the kinds of filing to read.",
            "items": {
              "type": "string",
              "enum": [
                "bipd",
                "cargo",
                "bond",
                "trustFund"
              ],
              "enumTitles": [
                "Liability (BIPD, BMC-91/91X)",
                "Cargo (BMC-34)",
                "Surety bond (BMC-84)",
                "Trust fund (BMC-85)"
              ]
            },
            "default": [
              "bipd"
            ]
          },
          "usdotNumbers": {
            "title": "USDOT numbers",
            "type": "array",
            "description": "Lookup mode: USDOT numbers, digits only. Each one the census does not list gets a free not_found row. The filters do not apply to them.",
            "items": {
              "type": "string",
              "pattern": "^\\s*(\\d{1,9})?\\s*$"
            },
            "default": []
          },
          "mcNumbers": {
            "title": "MC, FF or MX numbers",
            "type": "array",
            "description": "Lookup mode: docket numbers like <code>MC-123456</code>, <code>MC0123456</code> or <code>123456</code> (read as MC). The filters do not apply to them.",
            "items": {
              "type": "string",
              "pattern": "^\\s*(([Mm][Cc]|[Ff][Ff]|[Mm][Xx])?[\\s-]*\\d{1,9})?\\s*$"
            },
            "default": []
          },
          "companyNames": {
            "title": "Company names",
            "type": "array",
            "description": "Lookup mode: a word or words found anywhere in the legal or DBA name, case aside (<code>tank lines</code>). The filters below apply.",
            "items": {
              "type": "string",
              "pattern": ".*"
            },
            "default": []
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Two-letter codes of the physical address (<code>TX</code>, <code>CA</code>; Canadian provinces and Mexican states too). Empty is every state.",
            "items": {
              "type": "string",
              "pattern": "^\\s*([A-Za-z]{2})?\\s*$"
            },
            "default": []
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "The physical city, exactly as the census writes it, case aside (<code>Houston</code>).",
            "default": ""
          },
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "A 5-digit ZIP, or its first 3 or 4 digits for an area (<code>770</code>).",
            "items": {
              "type": "string",
              "pattern": "^\\s*(\\d{3,5})?\\s*$"
            },
            "default": []
          },
          "carrierOperations": {
            "title": "Interstate or intrastate",
            "type": "array",
            "description": "Empty is both.",
            "items": {
              "type": "string",
              "enum": [
                "interstate",
                "intrastateHazmat",
                "intrastateNonHazmat"
              ],
              "enumTitles": [
                "Interstate",
                "Intrastate hazmat",
                "Intrastate non-hazmat"
              ]
            },
            "default": []
          },
          "operationClasses": {
            "title": "Operation classes",
            "type": "array",
            "description": "For hire (hauls for others), private (hauls its own goods), exempt for hire… A carrier with any of them passes. Empty is every class.",
            "items": {
              "type": "string",
              "enum": [
                "authorizedForHire",
                "exemptForHire",
                "privateProperty",
                "privatePassenger",
                "government",
                "usMail",
                "migrant",
                "indianTribe"
              ],
              "enumTitles": [
                "Authorized for hire",
                "Exempt for hire",
                "Private property",
                "Private passenger",
                "Government (federal, state, local)",
                "US mail",
                "Migrant",
                "Indian tribe"
              ]
            },
            "default": []
          },
          "entityTypes": {
            "title": "Registered as",
            "type": "array",
            "description": "Carrier, broker, freight forwarder, shipper… Empty is any.",
            "items": {
              "type": "string",
              "enum": [
                "carrier",
                "broker",
                "freightForwarder",
                "shipper",
                "cargoTank",
                "intermodalEquipmentProvider",
                "registrant"
              ],
              "enumTitles": [
                "Carrier",
                "Broker",
                "Freight forwarder",
                "Shipper",
                "Cargo tank",
                "Intermodal equipment provider",
                "Registrant"
              ]
            },
            "default": []
          },
          "cargoTypes": {
            "title": "Cargo hauled",
            "type": "array",
            "description": "A carrier that hauls any of them passes. Empty is any cargo.",
            "items": {
              "type": "string",
              "enum": [
                "generalFreight",
                "householdGoods",
                "metalSheets",
                "motorVehicles",
                "driveTowAway",
                "logsPolesLumber",
                "buildingMaterials",
                "mobileHomes",
                "largeMachinery",
                "freshProduce",
                "liquidsGases",
                "intermodalContainers",
                "passengers",
                "oilfieldEquipment",
                "livestock",
                "grainFeedHay",
                "coalCoke",
                "meat",
                "garbageRefuse",
                "usMail",
                "chemicals",
                "dryBulk",
                "refrigeratedFood",
                "beverages",
                "paperProducts",
                "utilities",
                "farmSupplies",
                "construction",
                "waterWell",
                "other"
              ],
              "enumTitles": [
                "General freight",
                "Household goods",
                "Metal: sheets, coils, rolls",
                "Motor vehicles",
                "Drive/tow away",
                "Logs, poles, beams, lumber",
                "Building materials",
                "Mobile homes",
                "Machinery, large objects",
                "Fresh produce",
                "Liquids/gases",
                "Intermodal containers",
                "Passengers",
                "Oilfield equipment",
                "Livestock",
                "Grain, feed, hay",
                "Coal/coke",
                "Meat",
                "Garbage/refuse",
                "US mail",
                "Chemicals",
                "Commodities dry bulk",
                "Refrigerated food",
                "Beverages",
                "Paper products",
                "Utilities",
                "Agricultural/farm supplies",
                "Construction",
                "Water well",
                "Other"
              ]
            },
            "default": []
          },
          "minPowerUnits": {
            "title": "Minimum power units",
            "minimum": 0,
            "type": "integer",
            "description": "Trucks and tractors the carrier runs. 0 is no minimum.",
            "default": 0
          },
          "maxPowerUnits": {
            "title": "Maximum power units",
            "minimum": 0,
            "type": "integer",
            "description": "0 is no maximum. Owner-operators run 1.",
            "default": 0
          },
          "hazmatOnly": {
            "title": "Only hazmat carriers",
            "type": "boolean",
            "description": "Only carriers that haul hazardous materials.",
            "default": false
          },
          "passengerCarriersOnly": {
            "title": "Only passenger carriers",
            "type": "boolean",
            "description": "Only carriers that carry passengers (buses, limousines, vans).",
            "default": false
          },
          "onlyWithEmail": {
            "title": "Only with an email",
            "type": "boolean",
            "description": "Only carriers whose census record has an email address.",
            "default": false
          },
          "activeOnly": {
            "title": "Only active USDOT numbers",
            "type": "boolean",
            "description": "Leave out USDOT numbers the census marks inactive.",
            "default": true
          },
          "includeAuthority": {
            "title": "Add operating authority, insurance and BOC-3",
            "type": "boolean",
            "description": "Joins each carrier to FMCSA's licensing and insurance records: MC docket, authority status, insurance required and on file (insurer, policy, coverage, effective date) and the BOC-3 process agent. A carrier with an authority record is charged as carrier-with-authority; one with none (most intrastate and private carriers) as a plain carrier.",
            "default": true
          },
          "onlyNew": {
            "title": "Only carriers not delivered before",
            "type": "boolean",
            "description": "For a daily or weekly schedule: skips every USDOT number an earlier run of the same search delivered, so each carrier is charged once. Kept in your account's key-value store steadyscrape-fmcsa-trucking-leads-scraper-state.",
            "default": false
          },
          "maxResults": {
            "title": "Max carriers",
            "minimum": 0,
            "type": "integer",
            "description": "The run stops after this many carriers. 0 is no maximum.",
            "default": 100
          },
          "maxScanned": {
            "title": "Max records scanned",
            "minimum": 0,
            "type": "integer",
            "description": "Stops after reading this many records (census rows, authority events or filings) when narrow filters leave out most of them. 0 is no maximum.",
            "default": 20000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}