{
  "openapi": "3.0.1",
  "info": {
    "title": "Specialty Auction Deal Monitor",
    "description": "Turn auction lots into landed-cost decisions: classified equipment, extracted buyer premium, itemized cost basis, and a deal score with every assumption labeled.",
    "version": "0.2",
    "x-build-id": "fmOyzIntYstYdu2eH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/repairiq~specialty-auction-deal-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-repairiq-specialty-auction-deal-monitor",
        "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/repairiq~specialty-auction-deal-monitor/runs": {
      "post": {
        "operationId": "runs-sync-repairiq-specialty-auction-deal-monitor",
        "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/repairiq~specialty-auction-deal-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-repairiq-specialty-auction-deal-monitor",
        "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": {
          "lots": {
            "title": "Lots",
            "type": "array",
            "description": "Inline auction lots from any auction scraper. Leave the prefill in place to see the output shape.",
            "default": []
          },
          "sourceDatasetId": {
            "title": "Source dataset ID",
            "type": "string",
            "description": "Apify dataset produced by an auction scraper. Portfolio signal datasets are unwrapped automatically."
          },
          "categories": {
            "title": "Equipment types",
            "type": "array",
            "description": "vehicle-lift, tire-changer, wheel-balancer, alignment-rack, diagnostic-tool, ac-service-machine, air-compressor, brake-lathe, parts-washer, welder, shop-press, transmission-jack, attachment.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "brands": {
            "title": "Brands",
            "type": "array",
            "description": "Equipment brands to keep, e.g. Hunter, Rotary, BendPak, Coats.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Two-letter codes or full names.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maximumBid": {
            "title": "Maximum current bid",
            "minimum": 0,
            "type": "integer",
            "description": "Skip lots whose observed bid already exceeds this amount."
          },
          "maximumLandedCost": {
            "title": "Maximum landed cost",
            "minimum": 0,
            "type": "integer",
            "description": "Filters on the all-in estimate rather than the headline bid."
          },
          "maximumDistanceMiles": {
            "title": "Maximum distance (miles)",
            "minimum": 0,
            "type": "integer",
            "description": "Applied only when both the origin and the lot have coordinates."
          },
          "onlyNewLots": {
            "title": "Only new lots",
            "type": "boolean",
            "description": "Emit a lot the first time it is seen and skip it on later runs.",
            "default": false
          },
          "defaultBuyerPremiumPercent": {
            "title": "Default buyer premium %",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Used only when the premium cannot be extracted from the lot text. Reported with an `assumed` basis.",
            "default": 15
          },
          "salesTaxPercent": {
            "title": "Sales tax %",
            "minimum": 0,
            "maximum": 20,
            "type": "number",
            "description": "Assumed rate applied to bid plus premium. Exemptions and jurisdiction are not verified.",
            "default": 9.5
          },
          "riggingCost": {
            "title": "Rigging and removal cost",
            "minimum": 0,
            "type": "integer",
            "description": "Flat assumption; auction removal terms are frequently in PDFs this Actor does not parse.",
            "default": 350
          },
          "transportCostPerMile": {
            "title": "Transport cost per mile",
            "minimum": 0,
            "type": "number",
            "description": "Used only when a measurable distance exists. Reported as an estimated cost line.",
            "default": 2.5
          },
          "minimumTransportCost": {
            "title": "Minimum transport cost",
            "minimum": 0,
            "type": "integer",
            "description": "Floor for the transport estimate, covering short local hauls.",
            "default": 250
          },
          "electricalConversionCost": {
            "title": "Electrical conversion cost",
            "minimum": 0,
            "type": "integer",
            "description": "Added only when three-phase or high-voltage language is detected in the lot text.",
            "default": 400
          },
          "missingPartsAllowance": {
            "title": "Missing-parts allowance",
            "minimum": 0,
            "type": "integer",
            "description": "Added only when missing-parts language is detected.",
            "default": 300
          },
          "comparableValues": {
            "title": "Comparable values",
            "type": "array",
            "description": "Your replacement or resale benchmark per equipment type, optionally per brand. Without one, no deal score is produced.",
            "default": []
          },
          "dealScoreThreshold": {
            "title": "Deal score threshold",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Minimum 0-100 score before a separate deal signal is emitted.",
            "default": 55
          },
          "originLatitude": {
            "title": "Origin latitude",
            "type": "number",
            "description": "Your pickup origin, used for the transport estimate and the distance filter."
          },
          "originLongitude": {
            "title": "Origin longitude",
            "type": "number",
            "description": "Your pickup origin longitude."
          },
          "originState": {
            "title": "Origin state",
            "type": "string",
            "description": "Used as a weak locality signal when coordinates are unavailable."
          },
          "stateStoreName": {
            "title": "State store name",
            "type": "string",
            "description": "Named key-value store holding lot and bid history between runs.",
            "default": "auction-lot-state"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}