{
  "openapi": "3.0.1",
  "info": {
    "title": "FMCSA Trucking Companies: New Carriers & Fleet Leads",
    "description": "Find new US trucking and bus companies from the official FMCSA census. Filter by state, registration date, fleet size, drivers and cargo type. Phone, email, address and officers included. $3 per 1,000 carriers.",
    "version": "1.0",
    "x-build-id": "HmTbwjFlRzQ75dXD7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ensorcelling_melilot~fmcsa-carriers/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ensorcelling_melilot-fmcsa-carriers",
        "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/ensorcelling_melilot~fmcsa-carriers/runs": {
      "post": {
        "operationId": "runs-sync-ensorcelling_melilot-fmcsa-carriers",
        "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/ensorcelling_melilot~fmcsa-carriers/run-sync": {
      "post": {
        "operationId": "run-sync-ensorcelling_melilot-fmcsa-carriers",
        "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": "Two-letter state codes of the carrier's physical address, e.g. TX, CA, FL. Leave empty for all states.",
            "items": {
              "type": "string"
            }
          },
          "addedWithinDays": {
            "title": "Registered in the last N days",
            "minimum": 1,
            "type": "integer",
            "description": "Only carriers first added to the FMCSA census in the last N days (new companies). Leave empty for any registration date.",
            "default": 30
          },
          "updatedWithinDays": {
            "title": "Record updated in the last N days",
            "minimum": 1,
            "type": "integer",
            "description": "Only carriers that filed an MCS-150 update in the last N days. Leave empty for any update date."
          },
          "activeOnly": {
            "title": "Active carriers only",
            "type": "boolean",
            "description": "Skip carriers marked inactive in the census.",
            "default": true
          },
          "minPowerUnits": {
            "title": "Minimum power units (trucks and tractors)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep carriers that report at least this many power units. Leave empty for no minimum."
          },
          "maxPowerUnits": {
            "title": "Maximum power units",
            "minimum": 0,
            "type": "integer",
            "description": "Keep carriers that report at most this many power units, e.g. 5 for owner-operators and small fleets."
          },
          "minDrivers": {
            "title": "Minimum drivers",
            "minimum": 0,
            "type": "integer",
            "description": "Keep carriers that report at least this many drivers. Leave empty for no minimum."
          },
          "operationClasses": {
            "title": "Operation type",
            "type": "array",
            "description": "Keep carriers with at least one of these operation classes. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "AUTHORIZED FOR HIRE",
                "EXEMPT FOR HIRE",
                "PRIVATE PROPERTY",
                "PRIVATE PASSENGER BUSINESS",
                "PRIVATE PASSENGER NONBUSINESS",
                "MIGRANT",
                "US MAIL",
                "FEDERAL GOVERNMENT",
                "STATE GOVERNMENT",
                "LOCAL GOVERNMENT",
                "INDIAN TRIBE"
              ]
            }
          },
          "cargoTypes": {
            "title": "Cargo carried",
            "type": "array",
            "description": "Keep carriers that report at least one of these cargo types. Leave empty for any cargo.",
            "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 away / 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",
                "Farm supplies",
                "Construction",
                "Water well"
              ]
            }
          },
          "hazmatOnly": {
            "title": "Hazardous materials carriers only",
            "type": "boolean",
            "description": "Keep only carriers that report hauling hazardous materials.",
            "default": false
          },
          "nameContains": {
            "title": "Company name contains",
            "type": "string",
            "description": "Keep carriers whose legal name or DBA name contains this text, e.g. express or logistics."
          },
          "dotNumbers": {
            "title": "Look up USDOT numbers",
            "type": "array",
            "description": "Look up specific carriers by USDOT number. When set, the other filters are ignored.",
            "items": {
              "type": "string"
            }
          },
          "includeContacts": {
            "title": "Include phone, email and officers",
            "type": "boolean",
            "description": "Adds the phone number, email address and listed company officers from the public census record. Turn off for a smaller table.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum carriers",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many carriers. Each carrier saved is charged once. Newest registrations come first.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}