{
  "openapi": "3.0.1",
  "info": {
    "title": "Machinio Scraper — Used Equipment Listings & Price Monitor",
    "description": "Scrape Machinio used equipment listings worldwide for dealers and buyers: asking prices, make/model/year, hours, serials, seller profiles, and images. Monitor mode tracks new inventory and price changes.",
    "version": "0.1",
    "x-build-id": "FCY6fpdHZWtTK6cBw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawloop~machinio-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawloop-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/crawloop~machinio-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawloop-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/crawloop~machinio-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawloop-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",
        "properties": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Category pages, keyword search URLs, manufacturer pages, or direct listing URLs / bare numeric IDs. Example: https://www.machinio.com/categories/excavators",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQuery": {
            "title": "Search keywords",
            "type": "string",
            "description": "Free-text search across manufacturer, model, and title (builds /listings?search=...). Example: caterpillar excavator."
          },
          "location": {
            "title": "Location (keyword search)",
            "type": "string",
            "description": "Optional city/state/country string for keyword search (location= query param)."
          },
          "category": {
            "title": "Category",
            "enum": [
              "excavators",
              "wheel-loaders",
              "skid-steer-loaders",
              "bulldozers",
              "backhoe-loaders",
              "motor-graders",
              "cranes",
              "aerial-work-platforms",
              "forklifts",
              "telehandlers",
              "dump-trucks",
              "tractors",
              "combine-harvesters",
              "cnc-lathes",
              "cnc-machining-centers",
              "milling-machines",
              "presses",
              "injection-moulding-machines",
              "printing-presses",
              "generators",
              "compressors",
              "trailers",
              "trucks"
            ],
            "type": "string",
            "description": "Machinio category slug for browse mode (e.g. excavators, forklifts, cnc-lathes, tractors)."
          },
          "manufacturer": {
            "title": "Manufacturer",
            "type": "string",
            "description": "Brand slug or name when browsing a category (e.g. caterpillar, komatsu, john-deere, hyundai)."
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Country slug filter for category browse (e.g. united-states, germany, united-kingdom)."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "used",
              "new",
              "refurbished",
              "salvage"
            ],
            "type": "string",
            "description": "Optional condition filter for built browse/search URLs.",
            "default": "any"
          },
          "yearMin": {
            "title": "Year min",
            "type": "integer",
            "description": "Minimum manufacture year (URL filter when supported + client-side filter)."
          },
          "yearMax": {
            "title": "Year max",
            "type": "integer",
            "description": "Maximum manufacture year (URL filter when supported + client-side filter)."
          },
          "priceMin": {
            "title": "Price min (USD)",
            "type": "integer",
            "description": "Client-side minimum numeric price filter (skips contact-for-price rows)."
          },
          "priceMax": {
            "title": "Price max (USD)",
            "type": "integer",
            "description": "Client-side maximum numeric price filter."
          },
          "keywordFilter": {
            "title": "Keyword filter",
            "type": "string",
            "description": "Extra client-side substring filter on title / make / model / description."
          },
          "baseUrl": {
            "title": "Base URL",
            "type": "string",
            "description": "Site origin for built search URLs.",
            "default": "https://www.machinio.com"
          },
          "runMode": {
            "title": "Run Mode",
            "enum": [
              "listings",
              "details"
            ],
            "type": "string",
            "description": "listings = fast card fields (price, make, hours, images). details = also visit each listing page for serial, stock, seller profile, full specs and gallery.",
            "default": "listings"
          },
          "pricedOnly": {
            "title": "Only listings with price",
            "type": "boolean",
            "description": "Skip Contact-Seller-for-Price rows that have no numeric price (including FB pixel enrichment).",
            "default": false
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum dataset rows to emit (in monitor seed runs: max listings to fingerprint). No artificial 500 cap.",
            "default": 100
          },
          "maxPagesPerUrl": {
            "title": "Max Pages per Start URL",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum pagination pages per search/category URL. Machinio caps category browse around 50 pages — use manufacturer/country/keyword slices for deeper coverage.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Direct Chrome-TLS requests often work; enable Apify Residential if you see Access Denied blocks."
          },
          "concurrencyLimit": {
            "title": "Max Concurrency Limit",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Parallel PDP fetches in details mode.",
            "default": 5
          },
          "monitorMode": {
            "title": "Monitoring Mode",
            "type": "boolean",
            "description": "Delta tracking for category, search, or manufacturer URLs. First run seeds a named Key-Value store (no dataset rows / alerts). Later runs output only new listings and price changes. Pair with an Apify Schedule.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor Store Name",
            "type": "string",
            "description": "Named Key-Value store for fingerprints across scheduled runs. Use a distinct name per watch target.",
            "default": "machinio-monitor-state"
          },
          "telegramToken": {
            "title": "Telegram Bot Token",
            "type": "string",
            "description": "Bot token for real-time alerts on new listings and price changes (monitorMode only)."
          },
          "telegramChatId": {
            "title": "Telegram Chat ID",
            "type": "string",
            "description": "Telegram user or group chat ID that receives monitor alerts."
          },
          "resetMonitorState": {
            "title": "Reset Monitor State",
            "type": "boolean",
            "description": "Clear stored listing fingerprints before this run (forces a fresh seed run).",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}