{
  "openapi": "3.0.1",
  "info": {
    "title": "FMCSA Carrier Search – Trucking Leads, USDOT & MC Data",
    "description": "Search the official FMCSA motor carrier census: new trucking companies by registration date, state, fleet size, cargo and hazmat, or look up USDOT/MC numbers. Phone, email, officers, fleet, operating authority and insurance on file. $2 per 1,000 carriers.",
    "version": "0.1",
    "x-build-id": "N0lSKioD50qOOnUGy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~fmcsa-carrier-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-fmcsa-carrier-leads",
        "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/gazidev~fmcsa-carrier-leads/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-fmcsa-carrier-leads",
        "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/gazidev~fmcsa-carrier-leads/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-fmcsa-carrier-leads",
        "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": {
          "states": {
            "title": "States (physical address)",
            "type": "array",
            "description": "2-letter state codes, e.g. `TX`, `CA`, `FL`. Leave empty for all states (Canadian provinces and Mexican states also work).",
            "items": {
              "type": "string"
            }
          },
          "registeredWithinDays": {
            "title": "Registered in the last N days",
            "minimum": 0,
            "maximum": 36500,
            "type": "integer",
            "description": "New-carrier leads: only USDOT numbers added in the last N days. Ignored when *Registered on/after* is set."
          },
          "registeredAfter": {
            "title": "Registered on/after (date)",
            "type": "string",
            "description": "USDOT registration (add) date, YYYY-MM-DD."
          },
          "registeredBefore": {
            "title": "Registered on/before (date)",
            "type": "string",
            "description": "Optional upper bound, YYYY-MM-DD."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Exact city name (case-insensitive), e.g. `Houston`."
          },
          "zipCodes": {
            "title": "ZIP codes or prefixes",
            "type": "array",
            "description": "Matches ZIP codes starting with these values, e.g. `770` for the Houston area.",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "USDOT status",
            "enum": [
              "active",
              "inactive",
              "pending",
              "all"
            ],
            "type": "string",
            "description": "FMCSA registration status.",
            "default": "active"
          },
          "carrierTypes": {
            "title": "Carrier types",
            "type": "array",
            "description": "Any of the selected classes. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "for-hire",
                "exempt-for-hire",
                "private",
                "passenger"
              ],
              "enumTitles": [
                "Authorized for-hire",
                "Exempt for-hire",
                "Private (own goods)",
                "Passenger carrier"
              ]
            }
          },
          "operation": {
            "title": "Operation",
            "enum": [
              "any",
              "interstate",
              "intrastate"
            ],
            "type": "string",
            "description": "Interstate carriers cross state lines.",
            "default": "any"
          },
          "cargoTypes": {
            "title": "Cargo carried",
            "type": "array",
            "description": "Carriers that haul any of these cargo classes (from the MCS-150 form).",
            "items": {
              "type": "string",
              "enum": [
                "genfreight",
                "household",
                "metalsheet",
                "motoveh",
                "drivetow",
                "logpole",
                "bldgmat",
                "mobilehome",
                "machlrg",
                "produce",
                "liqgas",
                "intermodal",
                "passengers",
                "oilfield",
                "livestock",
                "grainfeed",
                "coalcoke",
                "meat",
                "garbage",
                "usmail",
                "chem",
                "drybulk",
                "coldfood",
                "beverages",
                "paperprod",
                "utility",
                "farmsupp",
                "construct",
                "waterwell",
                "cargoothr"
              ],
              "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"
              ]
            }
          },
          "hazmat": {
            "title": "Hazmat",
            "enum": [
              "any",
              "only",
              "exclude"
            ],
            "type": "string",
            "description": "Hazardous-materials indicator.",
            "default": "any"
          },
          "minPowerUnits": {
            "title": "Min power units (trucks/tractors)",
            "minimum": 0,
            "type": "integer",
            "description": "Fleet size filter. 0 = no minimum."
          },
          "maxPowerUnits": {
            "title": "Max power units",
            "minimum": 0,
            "type": "integer",
            "description": "E.g. 5 for owner-operators and small fleets."
          },
          "minDrivers": {
            "title": "Min drivers",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no minimum."
          },
          "maxDrivers": {
            "title": "Max drivers",
            "minimum": 0,
            "type": "integer",
            "description": "Optional."
          },
          "nameContains": {
            "title": "Company name contains",
            "type": "string",
            "description": "Searches legal and DBA names."
          },
          "mustHaveEmail": {
            "title": "Only carriers with an email address",
            "type": "boolean",
            "description": "Skip records without an email.",
            "default": false
          },
          "mustHavePhone": {
            "title": "Only carriers with a phone number",
            "type": "boolean",
            "description": "Skip records without a phone.",
            "default": false
          },
          "mustHaveMcNumber": {
            "title": "Only carriers with an MC/MX/FF docket number",
            "type": "boolean",
            "description": "Typical for for-hire interstate carriers and brokers.",
            "default": false
          },
          "dotNumbers": {
            "title": "Look up USDOT numbers",
            "type": "array",
            "description": "Direct lookup (up to 5,000). When used, all other filters are ignored.",
            "items": {
              "type": "string"
            }
          },
          "mcNumbers": {
            "title": "Look up MC / MX / FF numbers",
            "type": "array",
            "description": "E.g. `MC123456` or `123456` (up to 2,000). When used, all other filters are ignored.",
            "items": {
              "type": "string"
            }
          },
          "includeAuthority": {
            "title": "Add operating authority & insurance on file",
            "type": "boolean",
            "description": "Common / contract / broker authority status, pending applications or revocations, liability insurance on file (where FMCSA publishes it; newest registrations may not be listed yet). Same price.",
            "default": true
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "oldest",
              "largest-fleet",
              "dot-number"
            ],
            "type": "string",
            "description": "Order of results.",
            "default": "newest"
          },
          "maxResults": {
            "title": "Max carriers",
            "minimum": 0,
            "maximum": 200000,
            "type": "integer",
            "description": "Stop after this many carriers (0 = all matching, up to 200,000). You pay per carrier saved.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}