{
  "openapi": "3.0.1",
  "info": {
    "title": "FMCSA Carrier Scraper",
    "description": "Search 2M+ US trucking carriers from FMCSA / DOT open data by state, cargo or fleet size: contact, officers, fleet, CSA safety scores, authority + insurance history (revocations, lapses, coverage), crashes and inspections. Lead lists, a change monitor, or full safety profiles. No API key.",
    "version": "1.0",
    "x-build-id": "ccu6hufrpWSlT2drz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/normdata~fmcsa-carrier-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-normdata-fmcsa-carrier-scraper",
        "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/normdata~fmcsa-carrier-scraper/runs": {
      "post": {
        "operationId": "runs-sync-normdata-fmcsa-carrier-scraper",
        "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/normdata~fmcsa-carrier-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-normdata-fmcsa-carrier-scraper",
        "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": {
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "type": "integer",
            "description": "Caps how many carrier rows this run writes. Starts at 10 for a quick sample; raise it for a full run."
          },
          "mode": {
            "title": "What to do",
            "enum": [
              "search",
              "lookup",
              "monitor",
              "safety"
            ],
            "type": "string",
            "description": "Search filters the census for lead lists. Look up resolves exact DOT/MC numbers or names. Monitor returns carriers with a new registration, revocation, insurance lapse or out-of-service order since a date. Safety pulls the full safety profile for the carriers you name.",
            "default": "search"
          },
          "state": {
            "title": "State (for Search, Monitor)",
            "type": "array",
            "description": "Two-letter physical state code(s), e.g. TX, CA. Leave empty for all states.",
            "items": {
              "type": "string"
            }
          },
          "operationClass": {
            "title": "Operation (for Search, Monitor)",
            "enum": [
              "",
              "interstate",
              "intrastate",
              "intrastate_hazmat"
            ],
            "type": "string",
            "description": "Restrict by operation class.",
            "default": ""
          },
          "cargo": {
            "title": "Cargo carried (for Search, Monitor)",
            "uniqueItems": true,
            "type": "array",
            "description": "Only carriers that haul one of these commodity types.",
            "items": {
              "type": "string",
              "enum": [
                "genfreight",
                "household",
                "motoveh",
                "drivetow",
                "logpole",
                "bldgmat",
                "machlrg",
                "produce",
                "liqgas",
                "intermodal",
                "passengers",
                "livestock",
                "grainfeed",
                "coalcoke",
                "meat",
                "garbage",
                "chem",
                "drybulk",
                "coldfood",
                "beverages",
                "paperprod",
                "farmsupp",
                "construct",
                "metalsheet",
                "oilfield",
                "mobilehome"
              ],
              "enumTitles": [
                "General Freight",
                "Household Goods",
                "Motor Vehicles",
                "Driveaway/Towaway",
                "Logs/Poles/Lumber",
                "Building Materials",
                "Machinery/Large Objects",
                "Fresh Produce",
                "Liquids/Gases",
                "Intermodal Containers",
                "Passengers",
                "Livestock",
                "Grain/Feed/Hay",
                "Coal/Coke",
                "Meat",
                "Garbage/Refuse",
                "Chemicals",
                "Dry Bulk",
                "Refrigerated Food",
                "Beverages",
                "Paper Products",
                "Farm Supplies",
                "Construction",
                "Metal: sheets/coils",
                "Oilfield Equipment",
                "Mobile Homes"
              ]
            }
          },
          "hazmatOnly": {
            "title": "Hazmat carriers only (for Search, Monitor)",
            "type": "boolean",
            "description": "Only carriers flagged to transport hazardous materials.",
            "default": false
          },
          "safetyRating": {
            "title": "Safety rating (for Search)",
            "enum": [
              "",
              "S",
              "C",
              "U"
            ],
            "type": "string",
            "description": "Restrict to carriers with this FMCSA safety rating (many carriers are unrated).",
            "default": ""
          },
          "minPowerUnits": {
            "title": "Min power units (for Search)",
            "minimum": 0,
            "type": "integer",
            "description": "Only carriers with at least this many trucks/tractors."
          },
          "maxPowerUnits": {
            "title": "Max power units (for Search)",
            "minimum": 0,
            "type": "integer",
            "description": "Only carriers with at most this many power units (e.g. 5 for owner-operators)."
          },
          "registeredAfter": {
            "title": "Registered on/after (for Search)",
            "type": "string",
            "description": "ISO date (2026-01-01). Only carriers whose FMCSA registration date is on or after this - a new-authority lead filter."
          },
          "registeredBefore": {
            "title": "Registered on/before (for Search)",
            "type": "string",
            "description": "ISO date. Only carriers registered on or before this."
          },
          "keyword": {
            "title": "Name contains (for Search)",
            "type": "string",
            "description": "Match carriers whose legal name or DBA name contains this text."
          },
          "activeOnly": {
            "title": "Active carriers only (for Search, Monitor)",
            "type": "boolean",
            "description": "Exclude inactive / de-registered carriers.",
            "default": true
          },
          "identifiers": {
            "title": "DOT / MC numbers or names (for Look up, Safety)",
            "type": "array",
            "description": "US DOT numbers (e.g. 76830), MC/MX docket numbers (e.g. MC386188 or 386188), or company names. Names may match several carriers.",
            "items": {
              "type": "string"
            }
          },
          "since": {
            "title": "Changed since (for Monitor)",
            "type": "string",
            "description": "ISO date (2026-09-01) or a window (\"7 days\", \"2 weeks\", \"1 month\"). Monitor returns carriers with a matching change on or after this."
          },
          "events": {
            "title": "Change types to watch (for Monitor)",
            "uniqueItems": true,
            "type": "array",
            "description": "Which lifecycle changes to include. Leave empty for new registrations + revocations + insurance lapses + out-of-service orders.",
            "items": {
              "type": "string",
              "enum": [
                "new_registration",
                "revocation",
                "reinstatement",
                "insurance_lapse",
                "oos_order"
              ],
              "enumTitles": [
                "New registration",
                "Authority revocation",
                "Authority reinstatement",
                "Insurance lapse / cancellation",
                "Out-of-service order"
              ]
            }
          },
          "includeSafety": {
            "title": "Include CSA / SMS safety scores",
            "type": "boolean",
            "description": "Add the CSA BASIC measures and alert flags plus an inspection and crash summary. Billed as a separate Safety record event, only when data is found.",
            "default": true
          },
          "includeHistory": {
            "title": "Include authority + insurance history",
            "type": "boolean",
            "description": "Add the full authority lifecycle (grants, revocations, reinstatements) and every insurance filing (insurer, coverage, effective and cancellation dates). Billed as a separate History record event, only when data is found.",
            "default": false
          },
          "includeInspections": {
            "title": "Include inspection + crash detail",
            "type": "boolean",
            "description": "Add per-inspection violation and out-of-service counts and per-crash outcomes for the last 24 months. Billed as a separate Inspections record event, only when data is found.",
            "default": false
          },
          "socrataAppToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "A free data.transportation.gov app token raises the shared rate limit. Only needed for very large 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}