{
  "openapi": "3.0.1",
  "info": {
    "title": "Machinio Scraper",
    "description": "Scrape new & used industrial equipment listings from machinio.com. Browse by category (excavators, CNC machines, forklifts, cranes, trucks, 80+ more), search by keyword, or fetch listing URLs. Get price, year, hours, manufacturer, model, location, condition, description, images.",
    "version": "1.0",
    "x-build-id": "j08tRMGHjIeLVScwp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~machinio-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-machinio-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~machinio-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-machinio-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~machinio-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-machinio-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": [
              "byCategory",
              "search",
              "byListingUrls"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "byCategory"
          },
          "category": {
            "title": "Category (mode=byCategory)",
            "enum": [
              "agriculture",
              "aircrafts-gse",
              "boats-marine-equipment",
              "construction",
              "energy",
              "food-beverage-processing",
              "forestry-equipment",
              "industrial-automation",
              "machine-tools",
              "material-handling",
              "oil-gas-mining",
              "printing",
              "processing",
              "semiconductors",
              "test-lab-medical-equipment",
              "textile-and-leather-manufacturing",
              "trucks",
              "waste-recycling",
              "woodworking-machinery",
              "other",
              "excavators",
              "wheel-loaders",
              "dozers",
              "cranes",
              "generator-sets",
              "drilling",
              "lifts",
              "block-brick-machines",
              "construction-industrial-engines",
              "earthmoving-attachments",
              "tractors",
              "combines",
              "tillage",
              "planting",
              "balers",
              "lawn-mowers",
              "livestock-equipment",
              "forklifts",
              "telehandlers",
              "pallet-trucks",
              "overhead-cranes",
              "reach-trucks",
              "material-handlers",
              "order-pickers",
              "sideloaders",
              "machining-centers",
              "lathes",
              "cnc-lathes",
              "milling-machines",
              "grinding-machines",
              "welding-equipment",
              "saws",
              "presses",
              "laser-cutters",
              "bending-forming",
              "conventional-trucks",
              "dump-trucks",
              "trailers",
              "vans",
              "pickup-trucks",
              "bucket-boom-crane-trucks",
              "industrial-compressors",
              "conveyors",
              "packaging-machinery",
              "injection-molding",
              "extruders",
              "agitators-blenders-mixers",
              "crushers-screening-plants",
              "haul-trucks",
              "articulated-haulers",
              "mineral-processing",
              "wood-saws",
              "cnc-wood-routers",
              "wood-sawmills",
              "planers-and-moulders",
              "industrial-shredders",
              "recycling-and-disposal",
              "industrial-balers",
              "sewing-machines",
              "general-medical-equipment",
              "general-laboratory-equipment",
              "diesel-engines",
              "solar-power",
              "turbines"
            ],
            "type": "string",
            "description": "Machinio equipment category to browse.",
            "default": "excavators"
          },
          "manufacturer": {
            "title": "Manufacturer (mode=byCategory)",
            "type": "string",
            "description": "Optional manufacturer/brand slug to narrow the category browse, e.g. caterpillar, john-deere, komatsu. Free text because Machinio has thousands of manufacturers."
          },
          "country": {
            "title": "Country (mode=byCategory)",
            "enum": [
              "",
              "united-states",
              "canada",
              "mexico",
              "brazil",
              "argentina",
              "chile",
              "colombia",
              "peru",
              "united-kingdom",
              "ireland",
              "germany",
              "france",
              "italy",
              "spain",
              "portugal",
              "netherlands",
              "belgium",
              "switzerland",
              "austria",
              "poland",
              "sweden",
              "norway",
              "denmark",
              "finland",
              "russia",
              "ukraine",
              "turkey",
              "greece",
              "romania",
              "czech-republic",
              "hungary",
              "india",
              "china",
              "japan",
              "south-korea",
              "indonesia",
              "thailand",
              "vietnam",
              "philippines",
              "malaysia",
              "singapore",
              "pakistan",
              "bangladesh",
              "sri-lanka",
              "united-arab-emirates",
              "saudi-arabia",
              "qatar",
              "kuwait",
              "oman",
              "israel",
              "jordan",
              "egypt",
              "morocco",
              "algeria",
              "south-africa",
              "nigeria",
              "kenya",
              "ghana",
              "australia",
              "new-zealand"
            ],
            "type": "string",
            "description": "Optional country filter for category browsing. Ignored if `manufacturer` is also set (Machinio does not support combining both).",
            "default": ""
          },
          "searchQuery": {
            "title": "Search query (mode=search)",
            "type": "string",
            "description": "Free-text keyword search across manufacturer, model, and title, e.g. `caterpillar 320` or `cnc lathe`.",
            "default": "caterpillar excavator"
          },
          "location": {
            "title": "Location (mode=search)",
            "type": "string",
            "description": "Optional city, state, or country to narrow keyword search results, e.g. Texas or Germany."
          },
          "listingUrls": {
            "title": "Listing URLs or IDs (mode=byListingUrls)",
            "type": "array",
            "description": "Full machinio.com/listings/... URLs, or bare numeric listing IDs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "yearMin": {
            "title": "Year (min)",
            "minimum": 1950,
            "maximum": 2035,
            "type": "integer",
            "description": "Drop listings manufactured before this year."
          },
          "yearMax": {
            "title": "Year (max)",
            "minimum": 1950,
            "maximum": 2035,
            "type": "integer",
            "description": "Drop listings manufactured after this year."
          },
          "priceMin": {
            "title": "Price (min, USD)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Drop listings priced below this amount (USD). Listings without a visible price are always kept."
          },
          "priceMax": {
            "title": "Price (max, USD)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Drop listings priced above this amount (USD). Listings without a visible price are always kept."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used",
              "refurbished",
              "salvage"
            ],
            "type": "string",
            "description": "Filter by equipment condition. Requires `fetchFullDetails` (auto-enabled if set).",
            "default": "any"
          },
          "keywordFilter": {
            "title": "Additional keyword filter",
            "type": "string",
            "description": "Extra substring filter applied to title/description/manufacturer/model after fetching (mode=byCategory or search)."
          },
          "fetchFullDetails": {
            "title": "Fetch full listing details",
            "type": "boolean",
            "description": "Visit each listing detail page for condition, serial number, stock number, seller info, full description, and all images. Slower but much richer. When off, only card-level fields (title, price, manufacturer, model, location, one image) are emitted.",
            "default": true
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard cap on emitted listings.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Machinio is protected by Akamai bot management. The actor first tries a direct connection; if blocked, it automatically escalates to Apify's free AUTO datacenter proxy group. No residential proxy is ever used.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}