{
  "openapi": "3.0.1",
  "info": {
    "title": "New Trucking Companies: FMCSA New Authority & USDOT Leads",
    "description": "Newly licensed trucking companies from official FMCSA data: new MC authority grants or new USDOT registrations, with phone, email, address, fleet size, drivers, cargo types and insurance. Filter by state, date and fleet size.",
    "version": "0.1",
    "x-build-id": "XUnSl063u61OiNkXI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/chaucerlabs~fmcsa-new-trucking-companies/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-chaucerlabs-fmcsa-new-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/chaucerlabs~fmcsa-new-trucking-companies/runs": {
      "post": {
        "operationId": "runs-sync-chaucerlabs-fmcsa-new-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/chaucerlabs~fmcsa-new-trucking-companies/run-sync": {
      "post": {
        "operationId": "run-sync-chaucerlabs-fmcsa-new-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": {
          "mode": {
            "title": "What to pull",
            "enum": [
              "newAuthority",
              "newUsdot"
            ],
            "type": "string",
            "description": "New authority = carriers/brokers whose FMCSA operating authority (MC) was granted in the date range. New USDOT = companies that registered a new USDOT number in the date range (includes private and intrastate carriers without MC authority).",
            "default": "newAuthority"
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 92,
            "type": "integer",
            "description": "Calendar days to look back from the end date (today by default). Ignored when Start date is set.",
            "default": 7
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "Optional, YYYY-MM-DD. Overrides Days back."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Optional, YYYY-MM-DD. Defaults to today. Max range 92 days."
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Two-letter state codes (business or physical address), e.g. TX, CA, FL. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "authorityTypes": {
            "title": "Authority types (new authority mode)",
            "type": "array",
            "description": "Keep only these authority types. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "property",
                "broker",
                "household_goods",
                "passenger",
                "freight_forwarder"
              ],
              "enumTitles": [
                "Motor carrier of property",
                "Broker",
                "Household goods",
                "Passenger carrier",
                "Freight forwarder"
              ]
            }
          },
          "minPowerUnits": {
            "title": "Minimum power units (trucks)",
            "minimum": 0,
            "type": "integer",
            "description": "Fleet size floor from the carrier's MCS-150 filing.",
            "default": 0
          },
          "maxPowerUnits": {
            "title": "Maximum power units (trucks)",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no maximum. Use 1 to target owner-operators.",
            "default": 0
          },
          "cargoTypes": {
            "title": "Cargo types",
            "type": "array",
            "description": "Keep carriers hauling any of these (partial match), e.g. General Freight, Refrigerated Food, Building Materials, Motor Vehicles, Livestock. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "onlyUsdotAddedWithinDays": {
            "title": "Only companies whose USDOT is newer than N days",
            "minimum": 0,
            "type": "integer",
            "description": "Drop established companies that just added another authority. 365 keeps companies registered in the last year. 0 = off.",
            "default": 0
          },
          "onlyActive": {
            "title": "Only active authority / USDOT",
            "type": "boolean",
            "description": "Drop records that are already inactive, suspended or revoked.",
            "default": true
          },
          "requirePhone": {
            "title": "Require phone",
            "type": "boolean",
            "description": "Only return carriers with a phone number on file.",
            "default": false
          },
          "requireEmail": {
            "title": "Require email",
            "type": "boolean",
            "description": "Only return carriers with an email address on file.",
            "default": false
          },
          "includeEmail": {
            "title": "Include email addresses",
            "type": "boolean",
            "description": "Include the email the carrier filed with FMCSA. Turn off if you don't need it.",
            "default": true
          },
          "onlyNewSinceLastRun": {
            "title": "Monitor mode: only carriers not returned in earlier runs",
            "type": "boolean",
            "description": "Schedule daily with Days back = 3 for a fresh-leads feed with no repeats.",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no limit.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}