{
  "openapi": "3.0.1",
  "info": {
    "title": "Home Depot Clearance Finder by Store - BrickSeek Alternative",
    "description": "What is on clearance at my Home Depot? Lists in-store clearance items by store number or ZIP code: clearance price, regular price, % off, units on hand at each store, biggest markdown first. Filter by search words or minimum % off; optional only-new mode. $0.005 per item + $0.01 per store scanned.",
    "version": "0.0",
    "x-build-id": "NJmNYg6L9fkmaaSdr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapebench~home-depot-clearance-finder-brickseek-alternative/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapebench-home-depot-clearance-finder-brickseek-alternative",
        "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/scrapebench~home-depot-clearance-finder-brickseek-alternative/runs": {
      "post": {
        "operationId": "runs-sync-scrapebench-home-depot-clearance-finder-brickseek-alternative",
        "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/scrapebench~home-depot-clearance-finder-brickseek-alternative/run-sync": {
      "post": {
        "operationId": "run-sync-scrapebench-home-depot-clearance-finder-brickseek-alternative",
        "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": {
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "US ZIP codes, one per line: each adds its nearest Home Depot stores (how many: storesPerZip). Prefer this or stores. With no ZIP code and no store the run scans store 0121 (Cumberland, Atlanta GA).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "stores": {
            "title": "Store numbers",
            "type": "array",
            "description": "Home Depot store numbers, one per line (0121 = Cumberland, Atlanta GA; 4702 = Lander, Seattle). Every store is scanned for its in-store clearance. Each store scanned costs $0.01. Up to 25 stores a run.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "storesPerZip": {
            "title": "Stores per ZIP code",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many of the nearest Home Depot stores (within 50 miles) to scan for each ZIP code, 1-10. Each store scanned costs $0.01.",
            "default": 1
          },
          "queries": {
            "title": "Search words",
            "type": "array",
            "description": "Keep only items whose title, brand or model has every word of one line, each at the start of a word (dewalt, mower, led light). Several lines = any of them. Empty = every clearance item. The whole store is still scanned. Prefer this over query.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "categoryUrls": {
            "title": "Category links",
            "type": "array",
            "description": "homedepot.com category links (https://www.homedepot.com/b/Tools/N-5yc1vZc1xy), one per line, to scan only those departments' clearance at each store. Empty = the whole store.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minPercentOff": {
            "title": "Minimum % off",
            "minimum": 0,
            "maximum": 99,
            "type": "integer",
            "description": "Keep only items at least this many percent under the store's current price (0-99). 90 finds near-penny items.",
            "default": 0
          },
          "inStockOnly": {
            "title": "In stock at the store only",
            "type": "boolean",
            "description": "Keep only items with at least 1 unit on hand at the store. Items whose store stock Home Depot does not show (in-store-only items, about 1 in 4 at store 0121) are left out too; turn this off to see them with on_hand_at_store empty.",
            "default": true
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "percent_off",
              "dollars_off",
              "price_low"
            ],
            "type": "string",
            "description": "Order of the items per store: percent_off = biggest % markdown first; dollars_off = biggest $ saving first; price_low = cheapest clearance price first.",
            "default": "percent_off"
          },
          "onlyNew": {
            "title": "Only new items",
            "type": "boolean",
            "description": "Return only items, or new clearance prices, that this same input has not returned before, per store. The memory is a key-value store named home-depot-clearance-seen in your own account; an item counts as returned once it was delivered and charged.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum items per store",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap per store, after the filters and the sort, so 20 = the top 20. Each item returned is $0.005 and each store scanned $0.01: the default 100 at one store costs up to $0.51.",
            "default": 100
          },
          "store": {
            "title": "Store number (single)",
            "type": "string",
            "description": "One store number, for saved tasks and API calls that send a single value. Prefer stores."
          },
          "zipCode": {
            "title": "ZIP code (single)",
            "type": "string",
            "description": "One ZIP code, for saved tasks and API calls that send a single value. Prefer zipCodes."
          },
          "query": {
            "title": "Search words (single)",
            "type": "string",
            "description": "One line of search words, for saved tasks and API calls that send a single value. Prefer queries."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Leave as set: with Apify Proxy on and no group picked, the run uses the connection Home Depot answers. Picking a group yourself overrides that.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}