{
  "openapi": "3.0.1",
  "info": {
    "title": "FMCSA Trucking, Motor Carrier & New Authority Lead Scraper",
    "description": "Extract newly registered & active US trucking companies, motor carriers, and freight brokers from official FMCSA DOT open data — with USDOT/MC numbers, company officers, E.164 phone/mobile, business email, fleet size, cargo types, insurance on file, and SAFER links.",
    "version": "1.0",
    "x-build-id": "hye9HvPDiJfAIo8s3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bifrost-data~fmcsa-trucking-carrier-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bifrost-data-fmcsa-trucking-carrier-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/bifrost-data~fmcsa-trucking-carrier-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-bifrost-data-fmcsa-trucking-carrier-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/bifrost-data~fmcsa-trucking-carrier-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-bifrost-data-fmcsa-trucking-carrier-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": {
          "lead_mode": {
            "title": "Lead Discovery Mode",
            "enum": [
              "new_registrations",
              "active_fleet_search",
              "exact_lookup"
            ],
            "type": "string",
            "description": "Choose 'new_registrations' for newly registered USDOT carriers within the last N days (highest intent for insurance, factoring, ELD & fuel cards), 'active_fleet_search' for all active carriers/brokers matching your filters, or 'exact_lookup' for specific USDOT/MC numbers.",
            "default": "new_registrations"
          },
          "added_within_days": {
            "title": "Registered Within Last N Days (New Registrations Mode)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Pull carriers added to the FMCSA Census within the last N days (e.g., 7 for weekly feed, 2 for daily weekday feed, 30 for monthly rollout).",
            "default": 14
          },
          "states": {
            "title": "Physical US State Codes (Optional)",
            "type": "array",
            "description": "2-letter US state filters (e.g., ['TX', 'FL', 'CA', 'GA', 'IL']). Leave empty for all US states.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "City Filter (Optional)",
            "type": "array",
            "description": "Filter by physical city names (e.g., ['HOUSTON', 'DALLAS', 'MIAMI']). Case-insensitive.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "company_name_query": {
            "title": "Company / DBA Name Contains (Optional)",
            "type": "string",
            "description": "Case-insensitive partial match on legal_name or dba_name (e.g., 'LOGISTICS', 'COLD', 'FREIGHT').",
            "default": ""
          },
          "dot_or_mc_numbers": {
            "title": "Specific USDOT or MC Numbers (Exact Lookup Mode)",
            "type": "array",
            "description": "Look up specific USDOT numbers (e.g., '58702') or MC dockets (e.g., 'MC1250042').",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "classification_filter": {
            "title": "Operation Classification Filter",
            "enum": [
              "for_hire_only",
              "all",
              "private_only"
            ],
            "type": "string",
            "description": "Keep 'for_hire_only' (Authorized For Hire carriers that need commercial cargo insurance & freight factoring), 'brokers_only', or 'all'.",
            "default": "for_hire_only"
          },
          "interstate_only": {
            "title": "Interstate Carriers Only",
            "type": "boolean",
            "description": "Keep only interstate motor carriers (carrier_operation = 'A') subject to federal MC authority, BOC-3, and UCR requirements.",
            "default": false
          },
          "min_power_units": {
            "title": "Minimum Power Units (Trucks)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Minimum number of power units/trucks operated (e.g., 1 for owner-operators, 5 for small fleets)."
          },
          "max_power_units": {
            "title": "Maximum Power Units (Trucks)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of power units/trucks operated (e.g., 10 for owner-operator & micro-fleet targeting)."
          },
          "cargo_types": {
            "title": "Cargo Types Carried (Optional)",
            "type": "array",
            "description": "Filter by cargo keywords such as 'general_freight', 'refrigerated_food', 'produce', 'building_materials', 'construction', 'motor_vehicles', 'intermodal', 'machinery', 'agricultural', or 'liquids_gases'.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "require_email": {
            "title": "Require Business Email Address on File",
            "type": "boolean",
            "description": "Skip records without an MCS-150 email address ($0 charge for skipped rows).",
            "default": true
          },
          "require_phone": {
            "title": "Require Phone Number on File",
            "type": "boolean",
            "description": "Skip records without a phone or cell number ($0 charge for skipped rows).",
            "default": true
          },
          "enrich_authority_and_insurance": {
            "title": "Enrich MC Operating Authority & BIPD/Cargo Insurance",
            "type": "boolean",
            "description": "Joins official FMCSA Licensing & Insurance (6eyk-hxee) records in a single batch query to attach MC docket status, broker status, and BIPD/cargo insurance on file.",
            "default": true
          },
          "max_items": {
            "title": "Max Verified Carrier Leads",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of verified carrier/broker leads to save to your dataset.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}