{
  "openapi": "3.0.1",
  "info": {
    "title": "FMCSA Carrier Lookup: USDOT, MC & Insurance",
    "description": "Look up US trucking carriers in official FMCSA data by USDOT number, MC number or name, or list newly registered carriers. One row per carrier: authority, insurance on file, fleet size, safety rating, cargo, contacts and SAFER link. Lead monitor. No API keys.",
    "version": "1.0",
    "x-build-id": "TtHIftyJxcDIycct5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hydrocore~fmcsa-carrier-lookup/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hydrocore-fmcsa-carrier-lookup",
        "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/hydrocore~fmcsa-carrier-lookup/runs": {
      "post": {
        "operationId": "runs-sync-hydrocore-fmcsa-carrier-lookup",
        "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/hydrocore~fmcsa-carrier-lookup/run-sync": {
      "post": {
        "operationId": "run-sync-hydrocore-fmcsa-carrier-lookup",
        "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": {
          "dotNumbers": {
            "title": "USDOT numbers",
            "type": "array",
            "description": "USDOT numbers to look up, one per line (for example 80806). Prefixes like \"USDOT\" and leading zeros are ignored. Carriers you look up are always returned, whatever the filters below. The example list (80806, 264184) is ignored when you also give MC numbers, a company name or a new-carrier window.",
            "default": [
              "80806",
              "264184"
            ],
            "items": {
              "type": "string"
            }
          },
          "mcNumbers": {
            "title": "MC / MX / FF numbers",
            "type": "array",
            "description": "Docket numbers such as MC-135797, MC135797 or just 135797 (MC is assumed). Each is resolved to its USDOT number through the FMCSA licensing file.",
            "items": {
              "type": "string"
            }
          },
          "companyName": {
            "title": "Company name contains",
            "type": "string",
            "description": "Find carriers whose legal or DBA name contains this text (for example \"swift\"). Active carriers are listed first. Filters below apply."
          },
          "newCarriersWithinDays": {
            "title": "New carriers within (days)",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "List carriers that registered a USDOT number in the last N days (new-authority leads). 0 = off. Combine with States and the filters below.",
            "default": 0
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Two-letter state codes of the carrier's physical address (for example TX, CA). Empty = all states. Applies to name search and new carriers.",
            "items": {
              "type": "string"
            }
          },
          "onlyActive": {
            "title": "Only active carriers",
            "type": "boolean",
            "description": "Skip inactive and pending USDOT numbers in name search and new-carrier lists. Default on.",
            "default": true
          },
          "operation": {
            "title": "Operation",
            "enum": [
              "any",
              "interstate",
              "intrastate"
            ],
            "type": "string",
            "description": "Keep interstate or intrastate carriers only. Default any.",
            "default": "any"
          },
          "forHireOnly": {
            "title": "Only for-hire carriers",
            "type": "boolean",
            "description": "Keep carriers whose entity type includes \"authorized for hire\" (skip private fleets). Default off.",
            "default": false
          },
          "minPowerUnits": {
            "title": "Min power units",
            "minimum": 0,
            "type": "integer",
            "description": "Keep carriers with at least this many trucks/tractors. 0 = no minimum. Filtered carriers are free.",
            "default": 0
          },
          "maxPowerUnits": {
            "title": "Max power units",
            "minimum": 0,
            "type": "integer",
            "description": "Keep carriers with at most this many power units (for example 5 for owner-operators). 0 = no maximum.",
            "default": 0
          },
          "requireEmail": {
            "title": "Must have email",
            "type": "boolean",
            "description": "Keep only carriers with an email address on their FMCSA registration.",
            "default": false
          },
          "requirePhone": {
            "title": "Must have phone",
            "type": "boolean",
            "description": "Keep only carriers with a phone number on their FMCSA registration.",
            "default": false
          },
          "includeAuthority": {
            "title": "Add authority & insurance",
            "type": "boolean",
            "description": "Join the FMCSA licensing & insurance file: common/contract/broker authority, pending applications, liability insurance on file vs required, cargo insurance and bond. Default on (no extra charge).",
            "default": true
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "oldest",
              "powerUnits",
              "name",
              "input"
            ],
            "type": "string",
            "description": "Order of the saved rows. Sorting happens before Max results, so the top N is really the top N.",
            "default": "newest"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Most carriers to save (default 25, up to 5,000).",
            "default": 25
          },
          "onlyNew": {
            "title": "Only carriers not seen before (monitor)",
            "type": "boolean",
            "description": "Remember saved USDOT numbers in a named store and skip them next time. Schedule daily with New carriers within 7 days to get each new carrier once.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of the monitor memory. Use different names for different lead lists. Example: daily-watch-1.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}