{
  "openapi": "3.0.1",
  "info": {
    "title": "MachineryTrader Heavy Equipment Listings Extractor",
    "description": "Browse MachineryTrader heavy-equipment listings by category, manufacturer, state, condition, and price/year range, or fetch full listing detail with specs, hours, and seller contact info by ID.",
    "version": "1.1",
    "x-build-id": "fuBuvMvd5GshC1YfG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataspryva~machinerytrader-heavy-equipment-listings-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataspryva-machinerytrader-heavy-equipment-listings-extractor",
        "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/dataspryva~machinerytrader-heavy-equipment-listings-extractor/runs": {
      "post": {
        "operationId": "runs-sync-dataspryva-machinerytrader-heavy-equipment-listings-extractor",
        "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/dataspryva~machinerytrader-heavy-equipment-listings-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-dataspryva-machinerytrader-heavy-equipment-listings-extractor",
        "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": [
              "browse",
              "byListingIds",
              "bySearchUrls"
            ],
            "type": "string",
            "description": "What to scrape.",
            "default": "browse"
          },
          "searchUrls": {
            "title": "Search URLs (mode=bySearchUrls)",
            "type": "array",
            "description": "Full MachineryTrader search or category URLs to paginate, e.g. https://www.machinerytrader.com/listings/search?Category=1031&Manufacturer=CATERPILLAR . Any filters already in the URL are kept.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Equipment category",
            "enum": [
              "any",
              "1001",
              "1006",
              "1007",
              "1008",
              "1013",
              "1015",
              "1017",
              "1019",
              "1024",
              "1025",
              "1026",
              "1028",
              "1031",
              "1032",
              "1033",
              "1034",
              "1035",
              "1036",
              "1038",
              "1040",
              "1045",
              "1046",
              "1047",
              "1048",
              "1049",
              "1050",
              "1051",
              "1052",
              "1053",
              "1054",
              "1055",
              "1056",
              "1057",
              "1058",
              "1059",
              "1060",
              "1073",
              "1085",
              "1108",
              "1125",
              "1171",
              "1234",
              "13003",
              "13008",
              "13018",
              "13029",
              "13050",
              "13068",
              "13069",
              "15000",
              "15117",
              "152000",
              "153001",
              "16002",
              "16014",
              "16015",
              "16020",
              "16022",
              "16027",
              "16032",
              "16043",
              "16049",
              "16058",
              "16059",
              "16064",
              "31563",
              "31568",
              "31602",
              "40000",
              "12",
              "14",
              "18",
              "21",
              "345",
              "880"
            ],
            "type": "string",
            "description": "Restrict browse results to one category. Leave as Any to search every category."
          },
          "categoryId": {
            "title": "Custom category ID (advanced)",
            "minimum": 1,
            "maximum": 999999,
            "type": "integer",
            "description": "Advanced: an exact MachineryTrader category ID from a category URL. Overrides the category dropdown."
          },
          "keywords": {
            "title": "Keyword search",
            "type": "string",
            "description": "Free-text search across listing titles and descriptions, e.g. caterpillar 320 (mode=browse)."
          },
          "manufacturer": {
            "title": "Manufacturer(s)",
            "type": "string",
            "description": "One or more brands separated by commas or |, e.g. CATERPILLAR, JOHN DEERE, KOMATSU (mode=browse)."
          },
          "state": {
            "title": "State / province",
            "enum": [
              "any",
              "Alabama",
              "Alaska",
              "Arizona",
              "Arkansas",
              "California",
              "Colorado",
              "Connecticut",
              "Delaware",
              "District of Columbia",
              "Florida",
              "Georgia",
              "Hawaii",
              "Idaho",
              "Illinois",
              "Indiana",
              "Iowa",
              "Kansas",
              "Kentucky",
              "Louisiana",
              "Maine",
              "Maryland",
              "Massachusetts",
              "Michigan",
              "Minnesota",
              "Mississippi",
              "Missouri",
              "Montana",
              "Nebraska",
              "Nevada",
              "New Hampshire",
              "New Jersey",
              "New Mexico",
              "New York",
              "North Carolina",
              "North Dakota",
              "Ohio",
              "Oklahoma",
              "Oregon",
              "Pennsylvania",
              "Rhode Island",
              "South Carolina",
              "South Dakota",
              "Tennessee",
              "Texas",
              "Utah",
              "Vermont",
              "Virginia",
              "Washington",
              "West Virginia",
              "Wisconsin",
              "Wyoming",
              "Alberta",
              "British Columbia",
              "Manitoba",
              "New Brunswick",
              "Newfoundland and Labrador",
              "Nova Scotia",
              "Ontario",
              "Prince Edward Island",
              "Quebec",
              "Saskatchewan",
              "Northwest Territories",
              "Nunavut",
              "Yukon"
            ],
            "type": "string",
            "description": "Only listings whose machine is located in this US state or Canadian province (mode=browse).",
            "default": "any"
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "New",
              "Used"
            ],
            "type": "string",
            "description": "Filter by new or used condition (mode=browse).",
            "default": "any"
          },
          "certifiedOnly": {
            "title": "Certified listings only",
            "type": "boolean",
            "description": "Only return listings the seller marks as certified (mode=browse).",
            "default": false
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "featured",
              "priceLowHigh",
              "priceHighLow",
              "yearOldest",
              "yearNewest",
              "hoursLowHigh",
              "hoursHighLow",
              "recentlyAdded",
              "model",
              "manufacturer",
              "serialNumber",
              "stockNumber",
              "recentlyUpdated"
            ],
            "type": "string",
            "description": "How to order browse results.",
            "default": "featured"
          },
          "minPrice": {
            "title": "Min price (USD)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Drop listings priced below this amount (mode=browse)."
          },
          "maxPrice": {
            "title": "Max price (USD)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Drop listings priced above this amount (mode=browse)."
          },
          "minYear": {
            "title": "Min model year",
            "minimum": 1900,
            "maximum": 2035,
            "type": "integer",
            "description": "Drop listings older than this model year (mode=browse)."
          },
          "maxYear": {
            "title": "Max model year",
            "minimum": 1900,
            "maximum": 2035,
            "type": "integer",
            "description": "Drop listings newer than this model year (mode=browse)."
          },
          "minHours": {
            "title": "Min hours",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Drop listings with fewer machine hours than this (mode=browse)."
          },
          "maxHours": {
            "title": "Max hours",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Drop listings with more machine hours than this (mode=browse)."
          },
          "minHorsepower": {
            "title": "Min horsepower",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Drop listings with less horsepower than this (mode=browse)."
          },
          "maxHorsepower": {
            "title": "Max horsepower",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Drop listings with more horsepower than this (mode=browse)."
          },
          "serialNumber": {
            "title": "Serial number",
            "type": "string",
            "description": "Only listings whose serial/VIN contains this value (mode=browse)."
          },
          "stockNumber": {
            "title": "Stock number",
            "type": "string",
            "description": "Only listings whose stock number contains this value (mode=browse)."
          },
          "includeDetails": {
            "title": "Enrich browse records with full detail",
            "type": "boolean",
            "description": "Open each listing page to add the full spec sheet, seller contact details, complete photo gallery and video. Slower and more request-heavy.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy used to reach machinerytrader.com. The actor picks a working proxy automatically.",
            "default": {
              "useApifyProxy": true
            }
          },
          "listingIds": {
            "title": "Listing IDs or URLs (mode=byListingIds)",
            "type": "array",
            "description": "MachineryTrader listing IDs or full listing URLs, e.g. 240187737 or https://www.machinerytrader.com/listing/for-sale/240187737/...",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}