{
  "openapi": "3.0.1",
  "info": {
    "title": "FMCSA Carrier Leads – New US Trucking Companies (DOT Census)",
    "description": "Find US trucking companies from the official FMCSA Company Census: filter by state, status, fleet size, date added. 'New since last run' mode for fresh carrier leads. No API key.",
    "version": "0.1",
    "x-build-id": "FhN5DR1IIr3ow58uc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yuvalstudios~fmcsa-carriers/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yuvalstudios-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/yuvalstudios~fmcsa-carriers/runs": {
      "post": {
        "operationId": "runs-sync-yuvalstudios-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/yuvalstudios~fmcsa-carriers/run-sync": {
      "post": {
        "operationId": "run-sync-yuvalstudios-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 (2-letter)",
            "type": "array",
            "description": "Physical-address states, e.g. TX, FL. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Operating status",
            "enum": [
              "any",
              "A",
              "I"
            ],
            "type": "string",
            "description": "Filter by carrier operating status.",
            "default": "A"
          },
          "addedAfter": {
            "title": "Added to FMCSA on/after (YYYY-MM-DD)",
            "type": "string",
            "description": "Registration (add) date lower bound."
          },
          "addedWithinDays": {
            "title": "Added in the last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Rolling window: only carriers added to FMCSA in the last N days (ignored when 'Added after' is set). Ideal for scheduled daily lead feeds."
          },
          "addedBefore": {
            "title": "Added before (YYYY-MM-DD)",
            "type": "string",
            "description": "Only carriers added to FMCSA before this date."
          },
          "minPowerUnits": {
            "title": "Min power units (trucks)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum number of power units (trucks)."
          },
          "maxPowerUnits": {
            "title": "Max power units",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of power units."
          },
          "carrierOperation": {
            "title": "Operation",
            "enum": [
              "any",
              "A",
              "B",
              "C"
            ],
            "type": "string",
            "description": "Interstate / intrastate operation type.",
            "default": "any"
          },
          "hazmatOnly": {
            "title": "Hazmat carriers only",
            "type": "boolean",
            "description": "Only return hazmat carriers.",
            "default": false
          },
          "cargoTypes": {
            "title": "Cargo types (any of)",
            "type": "array",
            "description": "Keep carriers that haul at least one of these cargo types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "crgo_genfreight",
                "crgo_household",
                "crgo_metalsheet",
                "crgo_motoveh",
                "crgo_drivetow",
                "crgo_logpole",
                "crgo_bldgmat",
                "crgo_mobilehome",
                "crgo_machlrg",
                "crgo_produce",
                "crgo_liqgas",
                "crgo_intermodal",
                "crgo_passengers",
                "crgo_oilfield",
                "crgo_livestock",
                "crgo_grainfeed",
                "crgo_coalcoke",
                "crgo_meat",
                "crgo_garbage",
                "crgo_usmail",
                "crgo_chem",
                "crgo_drybulk",
                "crgo_coldfood",
                "crgo_beverages",
                "crgo_paperprod",
                "crgo_utility",
                "crgo_farmsupp",
                "crgo_construct",
                "crgo_waterwell"
              ],
              "enumTitles": [
                "General freight",
                "Household goods",
                "Metal",
                "Motor vehicles",
                "Drive/tow away",
                "Logs/poles",
                "Building materials",
                "Mobile homes",
                "Machinery",
                "Fresh produce",
                "Liquids/gases",
                "Intermodal containers",
                "Passengers",
                "Oilfield equipment",
                "Livestock",
                "Grain/feed",
                "Coal/coke",
                "Meat",
                "Garbage",
                "US mail",
                "Chemicals",
                "Dry bulk",
                "Refrigerated food",
                "Beverages",
                "Paper products",
                "Utilities",
                "Farm supplies",
                "Construction",
                "Water well"
              ]
            }
          },
          "requireEmail": {
            "title": "Only rows with email",
            "type": "boolean",
            "description": "Only return rows that have an email address.",
            "default": false
          },
          "requirePhone": {
            "title": "Only carriers with a phone number",
            "type": "boolean",
            "description": "Keep only carriers that list an office or mobile phone.",
            "default": false
          },
          "nameContains": {
            "title": "Legal/DBA name contains",
            "type": "string",
            "description": "Case-insensitive substring match on legal or DBA name."
          },
          "newSinceLastRun": {
            "title": "New since last run",
            "type": "boolean",
            "description": "Return only DOT numbers not returned by previous runs with the same stateKey (schedule it daily).",
            "default": false
          },
          "stateKey": {
            "title": "State key (for new-since-last-run)",
            "type": "string",
            "description": "Key used to remember seen carriers for new-since-last-run mode.",
            "default": "default"
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of results to return.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}