{
  "openapi": "3.0.1",
  "info": {
    "title": "B-Stock Liquidation Auction Scraper - Pallets & Truckloads",
    "description": "Scrape live B-Stock liquidation auctions: wholesale pallet & truckload lots of returns/overstock from Amazon, Walmart, Target & 65+ retailers. Per lot: bid, MSRP, bid/MSRP ratio, cost-per-unit, units, condition, retailer, location, close time, image, URL. Filter by category, inventory type & price.",
    "version": "1.0",
    "x-build-id": "nGvhG50te5AQSdH2i"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lulzasaur~bstock-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lulzasaur-bstock-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/lulzasaur~bstock-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lulzasaur-bstock-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/lulzasaur~bstock-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lulzasaur-bstock-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": {
          "search": {
            "title": "Search / Retailer",
            "type": "string",
            "description": "Free-text search across lot titles AND retailer names. Use a retailer like 'Amazon', 'Walmart' or 'Target' to focus on a source, or a product term like 'iPhone' or 'furniture'. Leave blank to scan all live auctions."
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum auction lots to return (0 = all matching lots, up to a safety cap of 2000). Pagination is handled automatically.",
            "default": 50
          },
          "category": {
            "title": "Category",
            "enum": [
              "",
              "Apparel Shoes & Accessories",
              "Automotive Supplies",
              "Books Movies & Music",
              "Building & Industrial",
              "Cell Phones",
              "Electronics",
              "Furniture",
              "Groceries",
              "Health & Beauty",
              "Home & Garden",
              "Jewelry & Watches",
              "Major Appliances",
              "Mixed Lots",
              "Office Supplies & Equipment",
              "Other",
              "Pets",
              "Small Appliances",
              "Sports & Outdoors",
              "Toys Kids & Baby"
            ],
            "type": "string",
            "description": "Optionally restrict to a single product category.",
            "default": ""
          },
          "inventoryType": {
            "title": "Inventory Type",
            "enum": [
              "",
              "Customer Returns",
              "Overstock",
              "Mixed/Other",
              "Refurbished",
              "Shelf Pulls",
              "Warehouse Damaged",
              "B-Stock Blue"
            ],
            "type": "string",
            "description": "Optionally restrict to a single inventory type (e.g. Customer Returns, Overstock).",
            "default": ""
          },
          "minBidValue": {
            "title": "Min Current Bid",
            "minimum": 0,
            "type": "integer",
            "description": "Only return lots with a current bid at or above this amount. Leave blank for no minimum."
          },
          "maxBidValue": {
            "title": "Max Current Bid",
            "minimum": 0,
            "type": "integer",
            "description": "Only return lots with a current bid at or below this amount (your budget cap). Leave blank for no maximum."
          },
          "minRetailPrice": {
            "title": "Min Retail Price (MSRP)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return lots with a total retail/MSRP value at or above this amount. Leave blank for no minimum."
          },
          "maxRetailPrice": {
            "title": "Max Retail Price (MSRP)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return lots with a total retail/MSRP value at or below this amount. Leave blank for no maximum."
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "endTime",
              "recommended",
              "retailPrice",
              "currentBid"
            ],
            "type": "string",
            "description": "Field to sort auction lots by.",
            "default": "endTime"
          },
          "sortOrder": {
            "title": "Sort Order",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Ascending or descending. With 'Closing Time' + ascending you get lots closing soonest first.",
            "default": "asc"
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify proxy settings. B-Stock's search API has no anti-bot, so the default datacenter proxy is plenty.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}