{
  "openapi": "3.0.1",
  "info": {
    "title": "Warehouse Club Prices: Costco, Sam's Club & BJ's Scraper",
    "description": "Compare Costco vs Sam's Club vs BJ's wholesale club prices for coffee and milk: club and online prices, member savings, dates, stock and item IDs. Costco US, Canada, UK and Australia. $0.004 per product: 1,000 cost $4, plus $0.003 setup and platform start. No login.",
    "version": "1.0",
    "x-build-id": "662wyMoIYQPCvL15J"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vant47~warehouse-club-prices-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vant47-warehouse-club-prices-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/vant47~warehouse-club-prices-scraper/runs": {
      "post": {
        "operationId": "runs-sync-vant47-warehouse-club-prices-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/vant47~warehouse-club-prices-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-vant47-warehouse-club-prices-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": {
          "retailers": {
            "title": "Retailers",
            "type": "array",
            "description": "Default: Costco US, Sam's Club and BJ's. Also select costco-ca, costco-uk or costco-au. The alias costco selects costco-us.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Keywords across selected retailers. Costco US/CA uses sitemap name discovery; Sam's and BJ's and Costco UK/AU use native catalog discovery.",
            "items": {
              "type": "string"
            }
          },
          "categoryUrls": {
            "title": "Category URLs",
            "type": "array",
            "description": "Public category links. Routes automatically to the matching retailer domain. US/CA Costco dynamic grids are unavailable; explicit linked products only.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Product, savings or category URLs",
            "type": "array",
            "description": "Public retailer URLs, routed by domain. Include known product URLs or linked savings pages.",
            "items": {
              "type": "string"
            }
          },
          "productIds": {
            "title": "Product IDs",
            "type": "array",
            "description": "Source item or product IDs. Use one retailer or retailerInputs to avoid sending the same number to unrelated catalogs. Never barcode inputs.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "ZIP or postal codes",
            "type": "array",
            "description": "US ZIP codes, Canadian postcodes, UK postcodes or Australian postcodes appropriate to each selected retailer. Use retailerInputs for mixed countries.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Location alias",
            "type": "array",
            "description": "Combined with postalCodes without a hidden default. Exact storeIds take priority.",
            "items": {
              "type": "string"
            }
          },
          "storeIds": {
            "title": "Exact club or warehouse IDs",
            "type": "array",
            "description": "Select exact source clubs. Scope IDs under retailerInputs when selecting more than one retailer.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerRetailer": {
            "title": "Maximum products per retailer",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Delivered priced products only. The global and retailer ceilings both apply. Excluded unpriced products do not consume this limit.",
            "default": 10
          },
          "maxItems": {
            "title": "Maximum products total",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Delivered priced products only. The global and retailer ceilings both apply. Excluded unpriced products do not consume this limit.",
            "default": 30
          },
          "maxItemsPerSearch": {
            "title": "Maximum per source and store",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Delivered priced products only. The global and retailer ceilings both apply. Excluded unpriced products do not consume this limit.",
            "default": 10
          },
          "dealsOnly": {
            "title": "Deals only",
            "type": "boolean",
            "description": "Keep current source offers. Coupons requiring clipping are retained separately and never subtracted automatically.",
            "default": false
          },
          "includeDetails": {
            "title": "Include public details",
            "type": "boolean",
            "description": "Add public-page details where supported. No extra detail charge; missing details stay null.",
            "default": false
          },
          "retailerInputs": {
            "title": "Settings by retailer",
            "type": "object",
            "description": "Optional settings keyed by exact retailer selection, for example {\"costco-us\":{\"productIds\":[\"512599\"],\"storeIds\":[\"1\"]},\"bjs\":{\"storeIds\":[\"0096\"]}}. A local source basket replaces all global source fields, including a prefilled search. Local maxItems can lower but never raise maxItemsPerRetailer."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Automatic default datacenter first, then signed-out direct or country residential retry. Explicit disable, groups, country and custom URLs are preserved.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}