{
  "openapi": "3.0.1",
  "info": {
    "title": "FMCSA Carrier Search: US DOT Trucking Company Leads",
    "description": "Search the FMCSA Company Census (4.5M US DOT registrations) by state, city, fleet size, drivers, cargo, hazmat, operation and new-registration date: DOT and MC numbers, legal and DBA name, address, fleet and driver counts, safety rating, dates, company phone and e-mail. $1 per 1,000 carriers.",
    "version": "0.1",
    "x-build-id": "n6aOvDCEUy089oQWv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/actor-forge~fmcsa-carrier-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-actor-forge-fmcsa-carrier-search",
        "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/actor-forge~fmcsa-carrier-search/runs": {
      "post": {
        "operationId": "runs-sync-actor-forge-fmcsa-carrier-search",
        "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/actor-forge~fmcsa-carrier-search/run-sync": {
      "post": {
        "operationId": "run-sync-actor-forge-fmcsa-carrier-search",
        "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",
            "type": "array",
            "description": "2-letter state codes of the physical address, e.g. TX, CA, FL.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Optional city names, e.g. Dallas, Houston (combine with states).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "dotNumbers": {
            "title": "USDOT numbers",
            "type": "array",
            "description": "Look up specific registrations by USDOT number (digits only).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "nameContains": {
            "title": "Name contains",
            "type": "string",
            "description": "Only registrations whose legal or DBA name contains this text, e.g. LOGISTICS, EXPRESS.",
            "default": ""
          },
          "status": {
            "title": "Status",
            "enum": [
              "active",
              "inactive",
              "any"
            ],
            "type": "string",
            "description": "USDOT status.",
            "default": "active"
          },
          "operation": {
            "title": "Operation",
            "enum": [
              "any",
              "interstate",
              "intrastate"
            ],
            "type": "string",
            "description": "Carrier operation.",
            "default": "any"
          },
          "entityTypes": {
            "title": "Entity types",
            "type": "array",
            "description": "Only registrations of any of these types. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "carrier",
                "broker",
                "shipper",
                "freight-forwarder",
                "cargo-tank",
                "registrant"
              ],
              "enumTitles": [
                "Carrier",
                "Broker",
                "Shipper",
                "Freight forwarder",
                "Cargo tank",
                "Registrant"
              ]
            },
            "default": []
          },
          "authorizedForHireOnly": {
            "title": "Authorized for hire only",
            "type": "boolean",
            "description": "Only for-hire carriers (they haul for others), not private fleets.",
            "default": false
          },
          "minPowerUnits": {
            "title": "Min power units (trucks/tractors)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Fleet size floor. 0 = no minimum.",
            "default": 0
          },
          "maxPowerUnits": {
            "title": "Max power units",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Fleet size ceiling. 0 = no maximum.",
            "default": 0
          },
          "minDrivers": {
            "title": "Min drivers",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Driver-count floor. 0 = no minimum.",
            "default": 0
          },
          "addedWithinDays": {
            "title": "Registered within (days)",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Only USDOT numbers added in the last N days (new carriers and new authorities). 0 = any date.",
            "default": 0
          },
          "hazmatOnly": {
            "title": "Hazmat carriers only",
            "type": "boolean",
            "description": "Only registrations flagged as carrying hazardous materials.",
            "default": false
          },
          "cargo": {
            "title": "Cargo carried",
            "type": "array",
            "description": "Only carriers hauling any of these cargo types. Empty = all.",
            "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"
              ],
              "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"
              ]
            },
            "default": []
          },
          "companiesOnly": {
            "title": "Companies only",
            "type": "boolean",
            "description": "Leave out individuals (owner-operators registered under their own name).",
            "default": false
          },
          "includeContacts": {
            "title": "Include company phone and e-mail",
            "type": "boolean",
            "description": "Add the phone and e-mail from the census for companies (corporations, partnerships, LLC/INC names). Never output for individuals.",
            "default": true
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "largest",
              "dot"
            ],
            "type": "string",
            "description": "Order of the results.",
            "default": "newest"
          },
          "maxItems": {
            "title": "Max carriers",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many registrations. Each one is one charged row.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}