{
  "openapi": "3.0.1",
  "info": {
    "title": "US Motor Carriers (FMCSA Census)",
    "description": "US trucking companies from FMCSA's official Company Census File, renewed daily: new carriers by date added, state, for-hire or private, cargo and fleet size. USDOT number, legal and DBA name, city, power units, drivers, MC docket. Companies only.",
    "version": "0.1",
    "x-build-id": "XGgnI6H86PqROmcHI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/darikami~us-motor-carriers/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-darikami-us-motor-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/darikami~us-motor-carriers/runs": {
      "post": {
        "operationId": "runs-sync-darikami-us-motor-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/darikami~us-motor-carriers/run-sync": {
      "post": {
        "operationId": "run-sync-darikami-us-motor-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 carrier's physical address: US states (TX, CA, DC, PR), Canadian provinces (ON, QC) or the Mexican codes FMCSA uses. Empty = every state.",
            "items": {
              "type": "string"
            }
          },
          "addedSince": {
            "title": "Added since",
            "type": "string",
            "description": "Only carriers whose census record was added or reactivated on or after this date (YYYY-MM-DD). The file is renewed daily; about 350 carriers are added a day. Empty = no date limit (the newest first)."
          },
          "operationClassifications": {
            "title": "Operation classification",
            "type": "array",
            "description": "FMCSA's classification of the carrier. A carrier matches when it has one of them.",
            "items": {
              "type": "string",
              "enum": [
                "authorized-for-hire",
                "exempt-for-hire",
                "private-property",
                "private-passenger-business",
                "private-passenger-non-business",
                "migrant",
                "us-mail",
                "federal-government",
                "state-government",
                "local-government",
                "indian-tribe",
                "other"
              ],
              "enumTitles": [
                "Authorized for hire",
                "Exempt for hire",
                "Private (property)",
                "Private passenger (business)",
                "Private passenger (non-business)",
                "Migrant",
                "U.S. Mail",
                "Federal government",
                "State government",
                "Local government",
                "Indian tribe",
                "Other"
              ]
            }
          },
          "carrierOperations": {
            "title": "Carrier operation",
            "type": "array",
            "description": "Interstate, or intrastate with or without hazardous materials.",
            "items": {
              "type": "string",
              "enum": [
                "interstate",
                "intrastate-hazmat",
                "intrastate-non-hazmat"
              ],
              "enumTitles": [
                "Interstate",
                "Intrastate, hazardous materials",
                "Intrastate, non-hazardous materials"
              ]
            }
          },
          "cargo": {
            "title": "Cargo",
            "type": "array",
            "description": "The cargo the carrier declared on its MCS-150 form. A carrier matches when it carries one of them.",
            "items": {
              "type": "string",
              "enum": [
                "general-freight",
                "household-goods",
                "metal-sheets-coils-rolls",
                "motor-vehicles",
                "driveaway-towaway",
                "logs-poles-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",
                "us-mail",
                "chemicals",
                "dry-bulk",
                "refrigerated-food",
                "beverages",
                "paper-products",
                "utility",
                "farm-supplies",
                "construction",
                "water-well",
                "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"
              ]
            }
          },
          "minPowerUnits": {
            "title": "Minimum power units",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Only carriers with at least this many power units (trucks, tractors, buses). Empty or 0 = no limit."
          },
          "includeInactive": {
            "title": "Include inactive and pending carriers",
            "type": "boolean",
            "description": "Off: active carriers only (status A). On: also inactive and pending (Mexican applicants) records.",
            "default": false
          },
          "maxCarriers": {
            "title": "Maximum carriers",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The run stops after this number of carriers. Each carrier is one charged result.",
            "default": 1000
          },
          "appToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Your own free app token from data.transportation.gov. It is optional: the actor works without one at one request a second. The actor has no token of its own."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}