{
  "openapi": "3.0.1",
  "info": {
    "title": "Saratoga Wine Exchange Scraper",
    "description": "Scrape SaratogaWine.com - a major US wine, spirits and beer retailer with 50,000+ products. Search by keyword, browse any category, or fetch exact products by ID. Returns price, category, stock, rating, images and more.",
    "version": "1.0",
    "x-build-id": "ZccN7jBrREs6aLUDq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~saratoga-wine-exchange-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-saratoga-wine-exchange-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/crawlerbros~saratoga-wine-exchange-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-saratoga-wine-exchange-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/crawlerbros~saratoga-wine-exchange-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-saratoga-wine-exchange-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byCategory",
              "byProductIds"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query (mode=search)",
            "type": "string",
            "description": "Keyword matched against product name and description.",
            "default": "cabernet sauvignon"
          },
          "categorySlug": {
            "title": "Category (mode=byCategory)",
            "enum": [
              "2025-spectator-100",
              "best-of-2025",
              "bulk-price-deals",
              "bundles",
              "calorie-conscious",
              "collectible-spirits",
              "collectible-wines",
              "collectibles",
              "double-points",
              "email-offers",
              "end-bin",
              "social",
              "gift-spirits",
              "gift-wines",
              "great-wines-under-30",
              "left-bank-bordeaux",
              "lower-alcohol-wines",
              "pre-arrival",
              "videos",
              "right-bank-bordeaux",
              "barrel-picks",
              "triple-points",
              "uncategorized",
              "willamette-valley-wine-auction",
              "spectator-100"
            ],
            "type": "string",
            "description": "Saratoga Wine catalog category to browse."
          },
          "productIds": {
            "title": "Product IDs (mode=byProductIds)",
            "type": "array",
            "description": "Exact numeric Saratoga Wine product IDs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "wineColor": {
            "title": "Wine color",
            "enum": [
              "",
              "red",
              "white",
              "rose"
            ],
            "type": "string",
            "description": "Only return products tagged with this wine color (applies to `search` and `byCategory` modes; not supported for `byProductIds`). Uses SaratogaWine.com's own color attribute, so results are exact.",
            "default": ""
          },
          "rapidShipOnly": {
            "title": "Rapid Ship only",
            "type": "boolean",
            "description": "Only return products tagged \"Rapid Ship\" by Saratoga Wine (applies to `search` and `byCategory` modes; not supported for `byProductIds`). Uses SaratogaWine.com's own Rapid Ship attribute, so results are exact.",
            "default": false
          },
          "caseOnly": {
            "title": "Case-only products",
            "type": "boolean",
            "description": "Only return products Saratoga Wine sells exclusively by the case (applies to `search` and `byCategory` modes; not supported for `byProductIds`). Uses SaratogaWine.com's own Case Only attribute, so results are exact.",
            "default": false
          },
          "inStoreTodayOnly": {
            "title": "In-store today only (mode=search/byCategory)",
            "type": "boolean",
            "description": "Only emit products Saratoga Wine flags as physically available in-store today (its own pa_in-store-today attribute).",
            "default": false
          },
          "inStoreOnly": {
            "title": "In-store only (not sold online) (mode=search/byCategory)",
            "type": "boolean",
            "description": "Only return products Saratoga Wine flags as sold exclusively in its physical store, not shippable online (its own pa_in-store-only attribute; applies to `search` and `byCategory` modes, not `byProductIds`).",
            "default": false
          },
          "shipsFreeWith12Only": {
            "title": "Ships free with 12 only (mode=search/byCategory)",
            "type": "boolean",
            "description": "Only return products Saratoga Wine flags as free-shipping-eligible when bought as part of a 12-bottle order (its own pa_12-ship-free attribute; applies to `search` and `byCategory` modes, not `byProductIds`).",
            "default": false
          },
          "oversizedBottleOnly": {
            "title": "Oversized bottle only (mode=search/byCategory)",
            "type": "boolean",
            "description": "Only return products Saratoga Wine flags as an oversized bottle format (its own pa_oversized-bottle attribute, e.g. magnums and other large-format bottlings; applies to `search` and `byCategory` modes, not `byProductIds`).",
            "default": false
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "popularity",
              "date",
              "price",
              "price-desc",
              "rating",
              "title"
            ],
            "type": "string",
            "description": "Sort order used when browsing or searching.",
            "default": "popularity"
          },
          "minPrice": {
            "title": "Min price (USD)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Drop products priced below this value."
          },
          "maxPrice": {
            "title": "Max price (USD)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Drop products priced above this value."
          },
          "category": {
            "title": "Category filter",
            "type": "string",
            "description": "Category name contains this text (applies on top of any mode)."
          },
          "brand": {
            "title": "Brand",
            "type": "string",
            "description": "Brand name contains this text."
          },
          "minRating": {
            "title": "Min average rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Drop products rated below this value (0-5). Fractional values (e.g. 4.5) are accepted since product ratings are fractional. Note: most Saratoga Wine products currently have no published customer reviews, so setting this above 0 will typically return 0 results."
          },
          "minVintageYear": {
            "title": "Min vintage year",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Drop products whose vintage year (parsed from the product title, e.g. \"... 2022 750ml\") is below this value. Non-vintage (NV) products have no vintage year and are dropped when this filter is set."
          },
          "maxVintageYear": {
            "title": "Max vintage year",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Drop products whose vintage year (parsed from the product title) is above this value. Non-vintage (NV) products have no vintage year and are dropped when this filter is set."
          },
          "inStockOnly": {
            "title": "In stock only",
            "type": "boolean",
            "description": "Only emit products currently in stock.",
            "default": false
          },
          "onSaleOnly": {
            "title": "On sale only",
            "type": "boolean",
            "description": "Only emit products currently discounted below their regular price.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}