{
  "openapi": "3.0.1",
  "info": {
    "title": "US Trucking Carrier Leads — FMCSA New Authorities & Carriers",
    "description": "Fresh US trucking carrier leads from official FMCSA data. Newly granted authorities & new registrations with phone (100%), email (100% on new carriers), officer, fleet size and cargo. Filter 2.2M active carriers by state, cargo, fleet. Daily-updated, no key.",
    "version": "0.1",
    "x-build-id": "Eggb5nzOFXDppBRcW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/foxlabs~fmcsa-carrier-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-foxlabs-fmcsa-carrier-leads",
        "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/foxlabs~fmcsa-carrier-leads/runs": {
      "post": {
        "operationId": "runs-sync-foxlabs-fmcsa-carrier-leads",
        "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/foxlabs~fmcsa-carrier-leads/run-sync": {
      "post": {
        "operationId": "run-sync-foxlabs-fmcsa-carrier-leads",
        "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": "Lead mode",
            "enum": [
              "new_authorities",
              "new_registrations",
              "search"
            ],
            "type": "string",
            "description": "New authorities = carriers whose operating authority was just GRANTED (the classic factoring/insurance lead feed, joined with full contact data). New registrations = brand-new USDOT numbers (earliest possible signal, 100% phone & email). Search = filter the full census of 2.2M active carriers.",
            "default": "new_authorities"
          },
          "authorityEvents": {
            "title": "Authority events",
            "type": "array",
            "description": "Which authority events count as a lead (new-authorities mode). Default: freshly GRANTED authorities only. Reinstated = carriers whose authority just came back (also a strong sales signal). 'All active events' includes Motus baseline/administrative records — noisy, for analysis only.",
            "items": {
              "type": "string",
              "enum": [
                "granted",
                "reinstated",
                "all_active_events"
              ],
              "enumTitles": [
                "Newly granted (default)",
                "Reinstated authorities",
                "All active-status events (noisy)"
              ]
            },
            "default": [
              "granted"
            ]
          },
          "datePreset": {
            "title": "Date range",
            "enum": [
              "last_24_hours",
              "last_7_days",
              "last_30_days",
              "last_90_days",
              "all_time",
              "custom"
            ],
            "type": "string",
            "description": "For 'new authorities' this filters the authority grant date; for 'new registrations' the USDOT creation date; for 'search' it optionally limits by registration date ('All time' recommended). Pick 'Custom' to use From/To below.",
            "default": "last_7_days"
          },
          "dateFrom": {
            "title": "Custom from date",
            "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "YYYY-MM-DD (e.g. 2026-07-01). Only used when Date range = Custom."
          },
          "dateTo": {
            "title": "Custom to date",
            "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "YYYY-MM-DD. Only used when Date range = Custom. Leave empty for 'today'."
          },
          "states": {
            "title": "US states",
            "type": "array",
            "description": "Filter by physical address state, 2-letter codes (e.g. TX, FL, CA). Leave empty for all states.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "carrierOperation": {
            "title": "Carrier operation",
            "enum": [
              "any",
              "interstate",
              "intrastate_hm",
              "intrastate_non_hm"
            ],
            "type": "string",
            "description": "Interstate carriers cross state lines (the classic freight market). Intrastate operate within one state only.",
            "default": "any"
          },
          "cargoTypes": {
            "title": "Cargo types",
            "type": "array",
            "description": "Only carriers hauling at least one of the selected cargo types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "genfreight",
                "household",
                "motoveh",
                "logpole",
                "bldgmat",
                "machlrg",
                "produce",
                "liqgas",
                "intermodal",
                "oilfield",
                "livestock",
                "grainfeed",
                "meat",
                "chem",
                "drybulk",
                "coldfood",
                "beverages",
                "paperprod",
                "farmsupp",
                "construct",
                "usmail",
                "garbage"
              ],
              "enumTitles": [
                "General freight",
                "Household goods",
                "Motor vehicles",
                "Logs / poles / lumber",
                "Building materials",
                "Machinery (oversized)",
                "Fresh produce",
                "Liquids / gases (tanker)",
                "Intermodal containers",
                "Oilfield equipment",
                "Livestock",
                "Grain / feed / hay",
                "Meat",
                "Chemicals",
                "Dry bulk commodities",
                "Refrigerated food (reefer)",
                "Beverages",
                "Paper products",
                "Farm supplies",
                "Construction",
                "US Mail",
                "Garbage / refuse"
              ]
            },
            "default": []
          },
          "minPowerUnits": {
            "title": "Min power units",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum number of power units (trucks/tractors). Leave empty for no minimum."
          },
          "maxPowerUnits": {
            "title": "Max power units",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of power units. Useful to target owner-operators (e.g. 1-5). Leave empty for no maximum."
          },
          "requireEmail": {
            "title": "Only rows with email",
            "type": "boolean",
            "description": "Drop carriers without an email address. New carriers are ~100% covered; the older census is ~65%.",
            "default": false
          },
          "requirePhone": {
            "title": "Only rows with phone",
            "type": "boolean",
            "description": "Drop carriers without a phone number (~97% have one).",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on dataset rows. Set to 0 for unlimited (full census pulls supported).",
            "default": 1000
          },
          "socrataAppToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Optional free token from data.transportation.gov to lift anonymous rate throttling on very large pulls. Not needed for normal runs."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}