{
  "openapi": "3.0.1",
  "info": {
    "title": "FMCSA Carrier Search & New Trucking Company Leads",
    "description": "New and existing US motor carriers from the official FMCSA Company Census: USDOT and MC number, legal/DBA name, phone, email, address, fleet size, drivers, cargo, hazmat, safety rating. Daily new-carrier feed with filters. Official open data.",
    "version": "1.0",
    "x-build-id": "PE7Q0k1wT4BZOQt2c"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/clever_firebox~fmcsa-carrier-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-clever_firebox-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/clever_firebox~fmcsa-carrier-leads/runs": {
      "post": {
        "operationId": "runs-sync-clever_firebox-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/clever_firebox~fmcsa-carrier-leads/run-sync": {
      "post": {
        "operationId": "run-sync-clever_firebox-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "newCarriers",
              "search"
            ],
            "type": "string",
            "description": "New carriers: companies that received a USDOT number in the date window (about 7,000 per month). Search: the full census of 4.5M+ carriers, filtered by name, DOT/MC number, location, fleet or cargo.",
            "default": "newCarriers"
          },
          "lastNDays": {
            "title": "Added in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "New carriers mode, when no dates are set.",
            "default": 7
          },
          "addedAfter": {
            "title": "Added on or after (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional."
          },
          "addedBefore": {
            "title": "Added on or before (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional."
          },
          "dotNumbers": {
            "title": "USDOT numbers",
            "type": "array",
            "description": "Look up specific carriers, e.g. 295699.",
            "items": {
              "type": "string"
            }
          },
          "mcNumbers": {
            "title": "MC numbers",
            "type": "array",
            "description": "e.g. MC196088 or 196088 (primary docket).",
            "items": {
              "type": "string"
            }
          },
          "nameContains": {
            "title": "Name contains",
            "type": "string",
            "description": "Legal or DBA name."
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Physical-address states, e.g. TX, CA, FL.",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "City starts with",
            "type": "string",
            "description": "Physical-address city, e.g. HOUSTON."
          },
          "zipCodes": {
            "title": "ZIP prefixes",
            "type": "array",
            "description": "e.g. 750, 77002.",
            "items": {
              "type": "string"
            }
          },
          "carrierOperation": {
            "title": "Operation type",
            "type": "array",
            "description": "Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "interstate",
                "intrastate hazmat",
                "intrastate non-hazmat"
              ],
              "enumTitles": [
                "Interstate",
                "Intrastate hazmat",
                "Intrastate non-hazmat"
              ]
            }
          },
          "operationClassContains": {
            "title": "Operation class contains",
            "type": "array",
            "description": "e.g. AUTHORIZED FOR HIRE, PRIVATE PROPERTY, EXEMPT FOR HIRE, MIGRANT, U.S. MAIL, LOCAL GOVERNMENT.",
            "items": {
              "type": "string"
            }
          },
          "cargo": {
            "title": "Cargo carried (any of)",
            "type": "array",
            "description": "Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "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"
              ]
            }
          },
          "minPowerUnits": {
            "title": "Min power units (trucks/tractors)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum trucks/tractors on the carrier's MCS-150.",
            "default": 0
          },
          "maxPowerUnits": {
            "title": "Max power units (0 = no max)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum power units; 0 = no limit.",
            "default": 0
          },
          "activeOnly": {
            "title": "Active carriers only",
            "type": "boolean",
            "description": "Only carriers with active USDOT status.",
            "default": true
          },
          "hazmatOnly": {
            "title": "Hazmat carriers only",
            "type": "boolean",
            "description": "Only carriers flagged for hazardous materials.",
            "default": false
          },
          "withMcNumberOnly": {
            "title": "With MC number (for-hire authority) only",
            "type": "boolean",
            "description": "Keep carriers whose primary docket is an MC number. Brand-new carriers often show their MC docket in the census only after authority is granted, so this shrinks new-carrier results.",
            "default": false
          },
          "requirePhone": {
            "title": "Must have phone",
            "type": "boolean",
            "description": "Drop carriers without a phone number.",
            "default": false
          },
          "requireEmail": {
            "title": "Must have email",
            "type": "boolean",
            "description": "Drop carriers without an email address.",
            "default": false
          },
          "includeOfficerNames": {
            "title": "Include company officer names",
            "type": "boolean",
            "description": "Officer names as listed on the carrier's MCS-150 filing. Untick to leave them out.",
            "default": true
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since last run (alerts)",
            "type": "boolean",
            "description": "Skips carriers already delivered by earlier runs with the same alert name. Ideal with a daily schedule.",
            "default": false
          },
          "alertStateName": {
            "title": "Alert name",
            "type": "string",
            "description": "Separate memory per saved alert.",
            "default": "default"
          },
          "maxResults": {
            "title": "Max carriers",
            "minimum": 1,
            "type": "integer",
            "description": "You are charged per carrier delivered.",
            "default": 100
          },
          "socrataAppToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Optional free token from data.transportation.gov for higher rate limits on very large pulls."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}