{
  "openapi": "3.0.1",
  "info": {
    "title": "New Trucking Companies (FMCSA) & Carrier Leads",
    "description": "New US trucking companies from the official FMCSA census, updated daily: USDOT number, phone, email, officers, power units, drivers, operation, hazmat and cargo types. Filter by state, fleet size and cargo. Look up USDOT numbers.",
    "version": "1.0",
    "x-build-id": "wYokeQjAtn4WqyHTo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/digital_influx~us-trucking-companies/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-digital_influx-us-trucking-companies",
        "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/digital_influx~us-trucking-companies/runs": {
      "post": {
        "operationId": "runs-sync-digital_influx-us-trucking-companies",
        "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/digital_influx~us-trucking-companies/run-sync": {
      "post": {
        "operationId": "run-sync-digital_influx-us-trucking-companies",
        "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": {
          "addedWithinDays": {
            "title": "Added within (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Carriers added to the FMCSA census in the last N days. The census is published daily, two or three days behind.",
            "default": 30
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "2-letter codes of the physical address, e.g. TX, CA. Empty = every state.",
            "items": {
              "type": "string"
            }
          },
          "operations": {
            "title": "Operation",
            "type": "array",
            "description": "Interstate carriers, intrastate hazmat carriers or intrastate carriers. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "interstate",
                "intrastate-hazmat",
                "intrastate"
              ],
              "enumTitles": [
                "Interstate",
                "Intrastate, hazardous materials",
                "Intrastate, non-hazardous"
              ]
            }
          },
          "cargoTypes": {
            "title": "Cargo types",
            "type": "array",
            "description": "Keep carriers that haul one of these (MCS-150 cargo classifications). 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",
                "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"
              ]
            }
          },
          "minPowerUnits": {
            "title": "Minimum power units",
            "minimum": 1,
            "type": "integer",
            "description": "Trucks and tractors the carrier declares. Many new carriers declare 1 or 2."
          },
          "maxPowerUnits": {
            "title": "Maximum power units",
            "minimum": 0,
            "type": "integer",
            "description": "Only carriers with at most this many power units (trucks and tractors), e.g. 5 for small fleets."
          },
          "hazmatOnly": {
            "title": "Only hazmat carriers",
            "type": "boolean",
            "description": "Save only carriers that haul hazardous materials.",
            "default": false
          },
          "onlyWithEmail": {
            "title": "Only carriers with an email",
            "type": "boolean",
            "description": "Save only carriers that have an email address in the FMCSA census.",
            "default": false
          },
          "onlyWithPhone": {
            "title": "Only carriers with a phone",
            "type": "boolean",
            "description": "Save only carriers that have a phone number in the FMCSA census.",
            "default": false
          },
          "includeInactive": {
            "title": "Include inactive and pending carriers",
            "type": "boolean",
            "description": "By default only active USDOT numbers are kept.",
            "default": false
          },
          "dotNumbers": {
            "title": "USDOT numbers to look up",
            "type": "array",
            "description": "Look up these carriers whatever their date of addition (up to 2,000).",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Carriers saved in this run, newest first. You also never pay more than the spending limit you set for the run.",
            "default": 1000
          },
          "onlyNew": {
            "title": "Only new or updated carriers (for scheduled runs)",
            "type": "boolean",
            "description": "Save only carriers that earlier runs of this same search did not save, or whose status, phone, email or fleet changed since. Schedule it daily. The memory lives in a key-value store named \"us-trucking-companies-state\" in your account.",
            "default": false
          },
          "memoryName": {
            "title": "Memory name (optional)",
            "type": "string",
            "description": "By default each search has its own memory. Give a name to share one memory between tasks, or a new name to start over."
          },
          "appToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Without a token, the portal shares a request limit per IP address. A free app token from any Socrata portal gives you your own limit. Only needed if a run reports a refused request."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}