{
  "openapi": "3.0.1",
  "info": {
    "title": "Tow Truck, Car Hauler & Mobile Home Transporter Leads (FMCSA)",
    "description": "New and active tow/wrecker companies, car haulers and mobile-home transporters from official FMCSA data. Filter by state and registration date; includes phone, email, MC number, authority and insurance on file. $4 per 1,000 leads.",
    "version": "0.1",
    "x-build-id": "gTomb3S70jOIptloF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/queenly_friendship~fmcsa-tow-hauler-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-queenly_friendship-fmcsa-tow-hauler-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/queenly_friendship~fmcsa-tow-hauler-leads/runs": {
      "post": {
        "operationId": "runs-sync-queenly_friendship-fmcsa-tow-hauler-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/queenly_friendship~fmcsa-tow-hauler-leads/run-sync": {
      "post": {
        "operationId": "run-sync-queenly_friendship-fmcsa-tow-hauler-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",
        "required": [
          "cargoTypes"
        ],
        "properties": {
          "cargoTypes": {
            "title": "Carrier types",
            "type": "array",
            "description": "Which kinds of carriers to return (based on the cargo they told FMCSA they haul).",
            "items": {
              "type": "string",
              "enum": [
                "tow",
                "car_hauler",
                "mobile_home",
                "household_goods_movers",
                "general_freight",
                "refrigerated_food",
                "building_materials",
                "construction",
                "heavy_machinery",
                "intermodal_containers",
                "dry_bulk",
                "garbage_refuse",
                "livestock",
                "grain_feed",
                "logs_poles_lumber",
                "oilfield_equipment",
                "chemicals",
                "liquids_gases",
                "passengers"
              ],
              "enumTitles": [
                "Tow / wrecker (drive-away, tow-away)",
                "Car hauler (motor vehicles)",
                "Mobile home transporter",
                "Household goods movers",
                "General freight",
                "Refrigerated food",
                "Building materials",
                "Construction",
                "Heavy machinery",
                "Intermodal containers",
                "Dry bulk",
                "Garbage / refuse",
                "Livestock",
                "Grain / feed",
                "Logs, poles, lumber",
                "Oilfield equipment",
                "Chemicals",
                "Liquids / gases",
                "Passengers"
              ]
            },
            "default": [
              "tow",
              "car_hauler",
              "mobile_home"
            ]
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "2-letter state codes of the carrier's physical address, e.g. OH, PA. Leave empty for nationwide (all states).",
            "items": {
              "type": "string"
            }
          },
          "registeredWithinDays": {
            "title": "Registered within the last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Only carriers that got their USDOT number in the last N days (fresh leads). Set 0 for all carriers regardless of age.",
            "default": 30
          },
          "activeOnly": {
            "title": "Active USDOT only",
            "type": "boolean",
            "description": "Skip inactive and pending USDOT records.",
            "default": true
          },
          "requireContact": {
            "title": "Only leads with phone or email",
            "type": "boolean",
            "description": "Drop carriers that have no phone, cell phone or email on file.",
            "default": false
          },
          "includeAuthorityAndInsurance": {
            "title": "Add operating authority & insurance on file",
            "type": "boolean",
            "description": "Join each carrier with its FMCSA operating-authority record (MC status, pending revocation, liability/cargo insurance on file). Adds about one extra request per 50 leads.",
            "default": true
          },
          "maxResults": {
            "title": "Max leads",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many leads.",
            "default": 100
          },
          "appToken": {
            "title": "Socrata app token (optional)",
            "type": "string",
            "description": "Optional free app token from data.transportation.gov for higher rate limits on very large pulls."
          },
          "skipPreviouslyReturned": {
            "title": "Skip records returned in earlier runs",
            "type": "boolean",
            "description": "On by default: records this tool already delivered to you in earlier runs are skipped (and not charged), so scheduled or repeat runs only bring new records.",
            "default": true
          },
          "resetPreviouslyReturned": {
            "title": "Forget earlier runs (start fresh)",
            "type": "boolean",
            "description": "Clear the memory of previously returned records before this run, so everything matching is returned again.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}