{
  "openapi": "3.0.1",
  "info": {
    "title": "Heavy Equipment Scraper",
    "description": "Scrape heavyequipment.com listings - search by keyword, browse by category or equipment type, or filter by US state / Canadian province. Get price, manufacturer, model, hours, condition, and images for construction and industrial equipment for sale.",
    "version": "1.0",
    "x-build-id": "4YqRb2BaKt5NcjPd3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~heavyequipment-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-heavyequipment-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/crawlerbros~heavyequipment-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-heavyequipment-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/crawlerbros~heavyequipment-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-heavyequipment-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byCategory",
              "bySubCategory",
              "byLocation"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "byCategory"
          },
          "q": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text keyword search, e.g. `caterpillar` (mode=search)."
          },
          "category": {
            "title": "Category",
            "enum": [
              "",
              "1",
              "9",
              "14",
              "30",
              "37",
              "46"
            ],
            "type": "string",
            "description": "Top-level category to browse (mode=byCategory).",
            "default": "1"
          },
          "subCategory": {
            "title": "Equipment type",
            "enum": [
              "",
              "atvs-and-utvs",
              "auto-trailers-hec",
              "backhoe-loaders",
              "combines",
              "compactors",
              "crane",
              "dozers",
              "end-dump",
              "excavators",
              "forklift",
              "generators",
              "graders",
              "integrated-tool-carriers",
              "mowers",
              "pavers",
              "pipelayers",
              "scrapers",
              "shovels-and-draglines",
              "skidsteer",
              "wheel-loaders"
            ],
            "type": "string",
            "description": "Specific equipment type to browse (mode=bySubCategory).",
            "default": "excavators"
          },
          "country": {
            "title": "Country",
            "enum": [
              "233",
              "39"
            ],
            "type": "string",
            "description": "Country to browse (mode=byLocation). Combined server-side with the Heavy Equipment category.",
            "default": "233"
          },
          "state": {
            "title": "State / province",
            "enum": [
              "",
              "1456",
              "1400",
              "1424",
              "1434",
              "1444",
              "1402",
              "1416",
              "1450",
              "1435",
              "1399",
              "1437",
              "1436",
              "1455",
              "1412",
              "1411",
              "1398",
              "1460",
              "1425",
              "1440",
              "1459",
              "1410",
              "1428",
              "1406",
              "1419",
              "1403",
              "1457",
              "1453",
              "1401",
              "1433",
              "1426",
              "1438",
              "1420",
              "1430",
              "1451",
              "1446",
              "1439",
              "1408",
              "1458",
              "1404",
              "1417",
              "1423",
              "1452",
              "1447",
              "1418",
              "1431",
              "4851",
              "1421",
              "1415",
              "1448",
              "1422",
              "1449",
              "1461",
              "1443",
              "1445",
              "1454",
              "1407",
              "1432",
              "1413",
              "1414",
              "1409",
              "1427",
              "1405",
              "1462",
              "1429",
              "1441",
              "1442",
              "872",
              "875",
              "867",
              "868",
              "877",
              "878",
              "874",
              "876",
              "866",
              "871",
              "873",
              "870",
              "869"
            ],
            "type": "string",
            "description": "US state or Canadian province to filter by (mode=byLocation). Leave as \"(no state filter)\" to browse the whole selected country.",
            "default": ""
          },
          "manufacturer": {
            "title": "Manufacturer",
            "type": "string",
            "description": "Keep only listings whose manufacturer matches (case-insensitive, partial match allowed). Not a controlled list on the source site, so any text works — common values include CAT / Caterpillar, John Deere, Komatsu, Case, Volvo, Kubota, Bobcat, JCB, Hitachi, Sany, Doosan, Liebherr, Hyundai, Ponsse."
          },
          "minPrice": {
            "title": "Min price (USD/CAD)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Drop listings priced below this amount. Applied after retrieval, on whichever currency the listing was posted in."
          },
          "maxPrice": {
            "title": "Max price (USD/CAD)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Drop listings priced above this amount. Applied after retrieval, on whichever currency the listing was posted in."
          },
          "minYear": {
            "title": "Min model year",
            "minimum": 1950,
            "maximum": 2030,
            "type": "integer",
            "description": "Drop listings whose title year is earlier than this. Listings with no extractable year are kept unless this filter is set."
          },
          "maxYear": {
            "title": "Max model year",
            "minimum": 1950,
            "maximum": 2030,
            "type": "integer",
            "description": "Drop listings whose title year is later than this. Listings with no extractable year are kept unless this filter is set."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "",
              "new",
              "like_new",
              "lightly_used",
              "heavy_usage",
              "salvage",
              "repair"
            ],
            "type": "string",
            "description": "Keep only listings with this condition.",
            "default": ""
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. The source site has no anti-bot protection, so a proxy isn't required — this is only used as an automatic fallback if the site starts blocking requests.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}