{
  "openapi": "3.0.1",
  "info": {
    "title": "New Trucking Company Leads: FMCSA Carriers + Insurance",
    "description": "Daily list of newly registered US trucking companies from public FMCSA data: email, phone, owner name, address, fleet size, cargo, MC authority and whether liability insurance is still missing. Segment tags (reefer, flatbed, hazmat, owner-operator) and optional website contacts.",
    "version": "1.0",
    "x-build-id": "30Jf8ohMiceC0MNeD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mosaicked_sponge~fmcsa-new-carrier-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mosaicked_sponge-fmcsa-new-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/mosaicked_sponge~fmcsa-new-carrier-leads/runs": {
      "post": {
        "operationId": "runs-sync-mosaicked_sponge-fmcsa-new-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/mosaicked_sponge~fmcsa-new-carrier-leads/run-sync": {
      "post": {
        "operationId": "run-sync-mosaicked_sponge-fmcsa-new-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": {
          "daysBack": {
            "title": "Registered in the last N days",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "New USDOT registrations added in the last N days (UTC). FMCSA publishes new registrations daily with a 1-2 day delay. Ignored when \"Registered since\" is set.",
            "default": 7
          },
          "sinceDate": {
            "title": "Registered since (optional)",
            "type": "string",
            "description": "Exact start date (YYYY-MM-DD). Overrides \"last N days\". Use it for daily schedules or a backfill."
          },
          "untilDate": {
            "title": "Registered until (optional)",
            "type": "string",
            "description": "End date (YYYY-MM-DD), default today."
          },
          "maxCarriers": {
            "title": "Max carriers",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "How many carriers to save (newest first). You only pay for carriers saved. A typical week has 1,500-2,500 new for-hire carriers.",
            "default": 20
          },
          "states": {
            "title": "States (optional)",
            "type": "array",
            "description": "Only carriers whose physical address is in these states. Leave empty for the whole US.",
            "items": {
              "type": "string",
              "enum": [
                "AK",
                "AL",
                "AR",
                "AS",
                "AZ",
                "CA",
                "CO",
                "CT",
                "DC",
                "DE",
                "FL",
                "GA",
                "GU",
                "HI",
                "IA",
                "ID",
                "IL",
                "IN",
                "KS",
                "KY",
                "LA",
                "MA",
                "MD",
                "ME",
                "MI",
                "MN",
                "MO",
                "MP",
                "MS",
                "MT",
                "NC",
                "ND",
                "NE",
                "NH",
                "NJ",
                "NM",
                "NV",
                "NY",
                "OH",
                "OK",
                "OR",
                "PA",
                "PR",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VA",
                "VI",
                "VT",
                "WA",
                "WI",
                "WV",
                "WY"
              ]
            }
          },
          "carrierClass": {
            "title": "Carrier type",
            "enum": [
              "forHire",
              "private",
              "all"
            ],
            "type": "string",
            "description": "For-hire carriers are the usual buyers of truck insurance, factoring, ELDs, fuel cards and dispatch.",
            "default": "forHire"
          },
          "operation": {
            "title": "Operation",
            "enum": [
              "any",
              "interstate",
              "intrastate"
            ],
            "type": "string",
            "description": "Interstate carriers cross state lines and need MC operating authority (and liability insurance on file). Intrastate carriers stay in one state.",
            "default": "any"
          },
          "segments": {
            "title": "Segments (optional, match any)",
            "type": "array",
            "description": "Keep only carriers with at least one of these rule-based tags. Tags come from FMCSA's own cargo, fleet and authority fields, e.g. reefer = refrigerated food/meat/produce, flatbed = steel/lumber/building materials/machinery, needs-insurance = MC authority pending with no liability insurance on file.",
            "items": {
              "type": "string",
              "enum": [
                "needs-insurance",
                "authority-pending",
                "owner-operator",
                "small-fleet",
                "mid-fleet",
                "large-fleet",
                "reefer",
                "flatbed",
                "tanker",
                "dry-bulk",
                "hazmat",
                "auto-hauler",
                "tow-away",
                "household-goods-mover",
                "intermodal-drayage",
                "livestock",
                "construction-dump",
                "general-freight",
                "passenger",
                "for-hire",
                "private-fleet",
                "interstate",
                "intrastate"
              ]
            }
          },
          "onlyNeedsInsurance": {
            "title": "Only carriers that still need insurance",
            "type": "boolean",
            "description": "Keep only carriers whose operating authority (MC) is pending or active and whose liability insurance on file is below the FMCSA minimum. These carriers cannot start hauling until insurance is filed.",
            "default": false
          },
          "hazmatOnly": {
            "title": "Hazmat carriers only",
            "type": "boolean",
            "description": "Only carriers that declared hazardous materials.",
            "default": false
          },
          "minPowerUnits": {
            "title": "Min power units (0 = any)",
            "minimum": 0,
            "type": "integer",
            "description": "Power units = trucks/tractors. 1 is an owner-operator.",
            "default": 0
          },
          "maxPowerUnits": {
            "title": "Max power units (0 = any)",
            "minimum": 0,
            "type": "integer",
            "description": "Upper limit on power units.",
            "default": 0
          },
          "onlyBusinessEmail": {
            "title": "Only carriers with a business email",
            "type": "boolean",
            "description": "Skip carriers whose email is Gmail/Yahoo/Outlook etc. (about 75-80% of new carriers use free mail).",
            "default": false
          },
          "onlyWithPhone": {
            "title": "Only carriers with a phone",
            "type": "boolean",
            "description": "Skip carriers with no phone number on file.",
            "default": false
          },
          "includeInactive": {
            "title": "Include inactive USDOT numbers",
            "type": "boolean",
            "description": "By default only active registrations are returned.",
            "default": false
          },
          "enrichContacts": {
            "title": "Add website contacts",
            "type": "boolean",
            "description": "For carriers with a business email domain, visit that website and add extra emails, phones and Facebook/Instagram/LinkedIn/X/YouTube/TikTok links. Carriers with website contacts are billed as an enriched carrier instead of a plain carrier (never both).",
            "default": true
          },
          "includeAuthority": {
            "title": "Add MC authority & insurance status",
            "type": "boolean",
            "description": "Join FMCSA's operating-authority file: MC docket, authority status (Pending/Active), required liability insurance and the amount on file. Included in the price.",
            "default": true
          },
          "maxPagesPerWebsite": {
            "title": "Pages to scan per website",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Homepage plus likely contact pages.",
            "default": 3
          },
          "socrataAppToken": {
            "title": "data.transportation.gov app token (optional)",
            "type": "string",
            "description": "Not needed. Only for very large or very frequent runs: a free Socrata app token raises the public API rate limit."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}