{
  "openapi": "3.0.1",
  "info": {
    "title": "EquipmentTrader Scraper — Prices & Dealer Monitor",
    "description": "Scrape EquipmentTrader construction and farm equipment listings: asking prices, make/model/year, hours, serials, price drops, dealer details, and images. Monitor new inventory and price changes. Export JSON/CSV from Python, Node.js, or MCP.",
    "version": "0.1",
    "x-build-id": "kMvi1gMcVbC6H2GnV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawloop~equipmenttrader-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawloop-equipmenttrader-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~equipmenttrader-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawloop-equipmenttrader-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~equipmenttrader-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawloop-equipmenttrader-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": {
          "includePhones": {
            "title": "Include phone numbers",
            "type": "boolean",
            "description": "Off by default. Include dealer phone fields already published on public pages only when you have a lawful basis.",
            "default": false
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Search results, category SEO pages (e.g. /Excavators/equipment-for-sale), dealer inventory URLs (/dealers/{Name}/{id}), or listing detail pages (/listing/{year}-{make}-{model}-{id}).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQuery": {
            "title": "Search keywords",
            "type": "string",
            "description": "Optional keyword search appended as a built search URL (e.g. 320GC, skid steer, telehandler)."
          },
          "listingType": {
            "title": "Listing type",
            "enum": [
              "For Sale",
              "For Rent"
            ],
            "type": "string",
            "description": "Used when building a search URL from filters (or when startUrls is empty).",
            "default": "For Sale"
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Filter by brand when building a search URL (e.g. Caterpillar, John Deere, Bobcat, Komatsu). Name or Name|id."
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "EquipmentTrader category name or Name|id (e.g. Excavators, Skid Steers, 2000206)."
          },
          "dealerId": {
            "title": "Dealer ID",
            "type": "string",
            "description": "Watch a single dealer inventory by numeric dealer id (from listing details). Builds /dealers/{Name}/{dealerId}."
          },
          "dealerName": {
            "title": "Dealer name",
            "type": "string",
            "description": "Optional slug used with dealerId (e.g. Quinn Company)."
          },
          "state": {
            "title": "US state",
            "type": "string",
            "description": "Optional state filter when building a search URL (e.g. TX, CA, FL or Florida)."
          },
          "zip": {
            "title": "ZIP code",
            "type": "string",
            "description": "Optional US ZIP for radius search when building a search URL."
          },
          "radius": {
            "title": "Radius (miles)",
            "type": "string",
            "description": "Search radius around ZIP when building a search URL (EquipmentTrader miles)."
          },
          "condition": {
            "title": "Condition",
            "type": "string",
            "description": "Optional condition filter for built search URLs (e.g. Used, New)."
          },
          "sort": {
            "title": "Sort",
            "type": "string",
            "description": "Optional sort key for built search URLs (site query value, e.g. year-desc)."
          },
          "baseUrl": {
            "title": "Base URL",
            "type": "string",
            "description": "Site origin for built search URLs. Default EquipmentTrader US.",
            "default": "https://www.equipmenttrader.com"
          },
          "runMode": {
            "title": "Run Mode",
            "enum": [
              "listings",
              "details"
            ],
            "type": "string",
            "description": "listings = fast search-card fields (price, make/model, dealer, location, images). details = also visit each PDP for hours, serial, price drop, dealer phone/address, gallery.",
            "default": "listings"
          },
          "pricedOnly": {
            "title": "Only listings with price",
            "type": "boolean",
            "description": "Skip Call-for-price / zero-price rows.",
            "default": false
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum dataset rows to emit (in monitor seed runs: max listings to fingerprint).",
            "default": 100
          },
          "maxPagesPerUrl": {
            "title": "Max Pages per Start URL",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum pagination pages per search / dealer inventory URL (~42 listings per page).",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Residential Proxies recommended — EquipmentTrader sits behind AWS CloudFront / WAF (Camoufox browser)."
          },
          "concurrencyLimit": {
            "title": "Max Concurrency Limit",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Parallel PDP fetches in details mode.",
            "default": 5
          },
          "monitorMode": {
            "title": "Monitoring Mode",
            "type": "boolean",
            "description": "Delta tracking for category, search, or dealer inventory 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 (dealer or category).",
            "default": "equipmenttrader-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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}