{
  "openapi": "3.0.1",
  "info": {
    "title": "FMCSA Carriers & Brokers: Safety, Crashes, Phone & Email Leads",
    "description": "Trucking companies, brokers and forwarders from FMCSA's census by state, cargo, fleet or date added, or by name, USDOT or MC number: phone, email, fleet, authority, and each one's 24-month inspections, out-of-service rates, crashes and out-of-service orders.",
    "version": "0.1",
    "x-build-id": "VzLU2ZUdGCTfSYXFa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pikoulas~fmcsa-carriers/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pikoulas-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/pikoulas~fmcsa-carriers/runs": {
      "post": {
        "operationId": "runs-sync-pikoulas-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/pikoulas~fmcsa-carriers/run-sync": {
      "post": {
        "operationId": "run-sync-pikoulas-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",
            "type": "array",
            "description": "Two-letter codes of the physical address's state or province (TX, CA, ON). None means everywhere.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Cities of the physical address, as FMCSA writes them (Dallas, El Paso).",
            "items": {
              "type": "string"
            }
          },
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "Five-digit ZIP codes of the physical address.",
            "items": {
              "type": "string"
            }
          },
          "entityTypes": {
            "title": "Entity types",
            "type": "array",
            "description": "Registrations of any of these kinds. None means all.",
            "items": {
              "type": "string",
              "enum": [
                "carrier",
                "broker",
                "freightForwarder",
                "shipper",
                "intermodalEquipmentProvider",
                "cargoTank",
                "registrant"
              ],
              "enumTitles": [
                "Carrier",
                "Broker",
                "Freight Forwarder",
                "Shipper",
                "Intermodal Equipment Provider",
                "Cargo Tank",
                "Registrant"
              ]
            }
          },
          "classifications": {
            "title": "Operation classifications",
            "type": "array",
            "description": "Any of these classifications, as filed on the MCS-150. None means all.",
            "items": {
              "type": "string",
              "enum": [
                "authorizedForHire",
                "exemptForHire",
                "privateProperty",
                "privatePassengers",
                "migrant",
                "usMail",
                "government"
              ],
              "enumTitles": [
                "Authorized for hire",
                "Exempt for hire",
                "Private property (own goods)",
                "Private passengers (business)",
                "Migrant",
                "U.S. Mail",
                "Government (federal, state, local, tribal)"
              ]
            }
          },
          "operations": {
            "title": "Interstate or intrastate",
            "type": "array",
            "description": "Any of these. None means both.",
            "items": {
              "type": "string",
              "enum": [
                "interstate",
                "intrastateHazmat",
                "intrastate"
              ],
              "enumTitles": [
                "Interstate",
                "Intrastate, hazardous materials",
                "Intrastate, non-hazardous materials"
              ]
            }
          },
          "cargo": {
            "title": "Cargo carried",
            "type": "array",
            "description": "Carriers that haul any of these, as filed on the MCS-150.",
            "items": {
              "type": "string",
              "enum": [
                "generalFreight",
                "householdGoods",
                "metal",
                "motorVehicles",
                "driveawayTowaway",
                "logsLumber",
                "buildingMaterials",
                "mobileHomes",
                "machinery",
                "freshProduce",
                "liquidsGases",
                "intermodal",
                "passengers",
                "oilfield",
                "livestock",
                "grainFeedHay",
                "coalCoke",
                "meat",
                "garbage",
                "usMail",
                "chemicals",
                "dryBulk",
                "refrigeratedFood",
                "beverages",
                "paperProducts",
                "utility",
                "farmSupplies",
                "construction",
                "waterWell",
                "other"
              ],
              "enumTitles": [
                "General Freight",
                "Household Goods",
                "Metal: Sheets, Coils, Rolls",
                "Motor Vehicles",
                "Driveaway/Towaway",
                "Logs, Poles, Beams, Lumber",
                "Building Materials",
                "Mobile Homes",
                "Machinery, Large Objects",
                "Fresh Produce",
                "Liquids/Gases",
                "Intermodal Containers",
                "Passengers",
                "Oilfield Equipment",
                "Livestock",
                "Grain, Feed, Hay",
                "Coal, Coke",
                "Meat",
                "Garbage, Refuse, Trash",
                "U.S. Mail",
                "Chemicals",
                "Commodities Dry Bulk",
                "Refrigerated Food",
                "Beverages",
                "Paper Products",
                "Utility",
                "Farm Supplies",
                "Construction",
                "Water - Well",
                "Other"
              ]
            }
          },
          "hazmatOnly": {
            "title": "Hazmat carriers only",
            "type": "boolean",
            "description": "Only carriers that haul hazardous materials.",
            "default": false
          },
          "safetyRatings": {
            "title": "Safety ratings",
            "type": "array",
            "description": "Any of these FMCSA safety ratings. None means rated or not (most carriers have none).",
            "items": {
              "type": "string",
              "enum": [
                "satisfactory",
                "conditional",
                "unsatisfactory"
              ],
              "enumTitles": [
                "Satisfactory",
                "Conditional",
                "Unsatisfactory"
              ]
            }
          },
          "minPowerUnits": {
            "title": "Least power units",
            "minimum": 0,
            "type": "integer",
            "description": "Fleet size: the fewest trucks, tractors and buses."
          },
          "maxPowerUnits": {
            "title": "Most power units",
            "minimum": 0,
            "type": "integer",
            "description": "Fleet size: the most."
          },
          "addedWithinDays": {
            "title": "Added within (days)",
            "minimum": 1,
            "type": "integer",
            "description": "Only registrations FMCSA added (or reactivated) in the last this many days: new carriers."
          },
          "withEmailOnly": {
            "title": "With an email only",
            "type": "boolean",
            "description": "Only registrations that filed an email address.",
            "default": false
          },
          "includeSafety": {
            "title": "Safety record",
            "type": "boolean",
            "description": "Give each carrier its last 24 months of roadside inspections (and how many put a vehicle or driver out of service, as rates), its reported crashes (fatal, injury, tow-away), and an FMCSA out-of-service order in force, from FMCSA's daily files. At no extra charge.",
            "default": true
          },
          "excludeOutOfService": {
            "title": "Leave out carriers under an out-of-service order",
            "type": "boolean",
            "description": "Leave out carriers with an FMCSA out-of-service order in force, such as a revoked new entrant or an unpaid fine.",
            "default": false
          },
          "maxCrashes": {
            "title": "Most crashes in 24 months",
            "minimum": 0,
            "type": "integer",
            "description": "Leave out carriers with more reported crashes than this in the last 24 months; 0 keeps only those with none. Empty keeps all."
          },
          "maxVehicleOosRate": {
            "title": "Highest vehicle out-of-service rate (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Leave out carriers whose vehicle inspections in the last 24 months put a vehicle out of service more often than this percentage. A carrier without vehicle inspections is kept. Empty keeps all."
          },
          "statuses": {
            "title": "USDOT status",
            "type": "array",
            "description": "Any of these. None means active only.",
            "items": {
              "type": "string",
              "enum": [
                "active",
                "inactive",
                "pending"
              ],
              "enumTitles": [
                "Active",
                "Inactive",
                "Pending"
              ]
            }
          },
          "names": {
            "title": "Company names",
            "type": "array",
            "description": "Carriers whose legal or trade (DBA) name contains any of these, such as Swift Trans (any case, 3 characters or more). The other filters still apply.",
            "items": {
              "type": "string"
            }
          },
          "dotNumbers": {
            "title": "USDOT numbers",
            "type": "array",
            "description": "Look these carriers up. The other filters still apply, and USDOT status is active only unless set.",
            "items": {
              "type": "string"
            }
          },
          "docketNumbers": {
            "title": "MC, MX or FF numbers",
            "type": "array",
            "description": "Look up carriers, brokers and forwarders by docket number (MC-123456, or 123456 for any prefix).",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max carriers",
            "minimum": 1,
            "type": "integer",
            "description": "The most carriers to give, newest USDOT numbers first.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}