{
  "openapi": "3.0.1",
  "info": {
    "title": "HiBid Auctions, Lots & Sold Prices Scraper (MCP)",
    "description": "Extract live bids, closed hammer prices, buyer's premium all-in totals, shipping flags, gallery photos, and auctioneer emails/phones from HiBid.com (USA & Canada) via fast pure HTTP. Built-in deal-sniping filters & incremental alerts for MCP & n8n.",
    "version": "1.0",
    "x-build-id": "r5HyK8liqmHLHmNz0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/clearbid-data~hibid-auctions-lots-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-clearbid-data-hibid-auctions-lots-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/clearbid-data~hibid-auctions-lots-scraper/runs": {
      "post": {
        "operationId": "runs-sync-clearbid-data-hibid-auctions-lots-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/clearbid-data~hibid-auctions-lots-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-clearbid-data-hibid-auctions-lots-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": {
          "status": {
            "title": "Auction Lot Status",
            "enum": [
              "open",
              "closing",
              "closed",
              "all"
            ],
            "type": "string",
            "description": "Filter by active open lots, lots closing soon, closed/archived lots (for sold hammer price comps), or all.",
            "default": "open"
          },
          "keywords": {
            "title": "Search Keywords",
            "type": "string",
            "description": "Keywords matched against lot title and description (e.g. 'generator', 'skid steer', 'MacBook', 'silver dollar', 'DeWalt', 'rolex'). Leave empty when scraping by state/category/catalog.",
            "default": ""
          },
          "country": {
            "title": "Country",
            "enum": [
              "all",
              "USA",
              "Canada"
            ],
            "type": "string",
            "description": "Filter auctions server-side to United States only, Canada only, or both.",
            "default": "all"
          },
          "state": {
            "title": "US State or Canadian Province",
            "type": "string",
            "description": "Optional 2-letter postal code or full state/province name (e.g. 'TX', 'Texas', 'CA', 'ON', 'Ontario'). Leave empty for nationwide.",
            "default": ""
          },
          "zip": {
            "title": "ZIP / Postal Code (Proximity Center)",
            "type": "string",
            "description": "Optional US ZIP or Canadian postal code for radius proximity search (e.g. '75201').",
            "default": ""
          },
          "miles": {
            "title": "Proximity Radius (Miles)",
            "minimum": 5,
            "maximum": 500,
            "type": "integer",
            "description": "Search radius in miles around ZIP code when ZIP is provided (10 to 500 miles).",
            "default": 50
          },
          "category": {
            "title": "Category Name or ID",
            "type": "string",
            "description": "Optional HiBid category name or numeric ID (e.g. 'Construction & Farm', 'Business & Industrial', 'Cars & Vehicles', 'Tools', 'Computers & Electronics', 'Coins & Currency', 'Jewelry', 'Antiques & Collectibles').",
            "default": ""
          },
          "shippingOfferedOnly": {
            "title": "Shipping Offered Only",
            "type": "boolean",
            "description": "When enabled, only returns lots where the auctioneer explicitly offers shipping.",
            "default": false
          },
          "sortOrder": {
            "title": "Sort Order",
            "enum": [
              "relevance",
              "closing_soonest",
              "bid_count_desc",
              "high_bid_desc",
              "lot_number"
            ],
            "type": "string",
            "description": "Sort results by relevance, closing soonest (best for sniping), highest bid count, highest bid, or lot number.",
            "default": "relevance"
          },
          "directUrls": {
            "title": "Direct Catalog URLs, Lot URLs or Auction IDs",
            "type": "array",
            "description": "Optional list of HiBid catalog URLs (https://hibid.com/catalog/797200/...), lot URLs (https://hibid.com/lot/332522244/...), or numeric auction IDs. Overrides keyword search when provided.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxItems": {
            "title": "Max Lots",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of validated lot records to return (1 to 5000).",
            "default": 50
          },
          "includeDetails": {
            "title": "Enrich Full Lot Details (Gallery, Categories & Terms)",
            "type": "boolean",
            "description": "Fetch full lot details to add the complete multi-photo gallery, 4-level category hierarchy, shipping/pickup instructions, payment rules, and bid increment schedule.",
            "default": true
          },
          "maxCurrentBid": {
            "title": "Max Current Bid Ceiling (USD/CAD)",
            "minimum": 0,
            "type": "number",
            "description": "Optional deal-sniper ceiling: skip lots whose current high bid exceeds this amount (evaluated before detail enrichment and billing)."
          },
          "minCurrentBid": {
            "title": "Min Current Bid Floor (USD/CAD)",
            "minimum": 0,
            "type": "number",
            "description": "Optional floor: skip lots whose current high bid is below this amount."
          },
          "closingWithinHours": {
            "title": "Closing Within Hours (Sniping Window)",
            "minimum": 1,
            "type": "number",
            "description": "Optional sniping filter (e.g. 24): only emit active lots closing within the next N hours (evaluated before detail enrichment and billing)."
          },
          "mustIncludeKeywords": {
            "title": "Must Include Keywords (Post-Filter)",
            "type": "array",
            "description": "Optional case-insensitive terms where at least one must match title/description before billing.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "excludeKeywords": {
            "title": "Exclude Keywords (Negative Filter)",
            "type": "array",
            "description": "Optional negative terms (e.g. ['for parts', 'broken', 'untested', 'reference photo']) — matching lots are skipped without billing.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "onlyNewSinceLastRun": {
            "title": "Incremental Alert Mode (Only New Lots)",
            "type": "boolean",
            "description": "Persist seen lotIds in a named Apify Key-Value Store across scheduled runs so each matching lot is delivered and billed only once.",
            "default": false
          },
          "alertStateKey": {
            "title": "Alert Channel Name",
            "type": "string",
            "description": "Optional key separating deduplication state across multiple scheduled workflows (default: 'default').",
            "default": "default"
          },
          "requestDelayMs": {
            "title": "Request Delay (ms)",
            "minimum": 100,
            "maximum": 5000,
            "type": "integer",
            "description": "Polite delay in milliseconds between HTTP batches (100 to 5000 ms).",
            "default": 200
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration (Optional)",
            "type": "object",
            "description": "HiBid public GraphQL queries work via direct HTTP without proxies by default.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}