{
  "openapi": "3.0.1",
  "info": {
    "title": "US Wine & Fine Wine Price Comparator (6 Stores)",
    "description": "Compare wine prices across Zachys, ABC Fine Wine & Spirits, Chambers Street Wines, Remedy Liquor, Quality Liquor Store & Chips Liquor. Bottle size, vintage & spread analytics.",
    "version": "0.0",
    "x-build-id": "DD3enfxwafEqr0NJ6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lonwabo~us-wine-price-comparator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lonwabo-us-wine-price-comparator",
        "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/lonwabo~us-wine-price-comparator/runs": {
      "post": {
        "operationId": "runs-sync-lonwabo-us-wine-price-comparator",
        "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/lonwabo~us-wine-price-comparator/run-sync": {
      "post": {
        "operationId": "run-sync-lonwabo-us-wine-price-comparator",
        "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": [
          "searchTerms"
        ],
        "properties": {
          "searchTerms": {
            "title": "Wine Labels, Wineries, or Regions",
            "type": "array",
            "description": "List of wines, producers, varietals, or Champagne labels to compare across nationwide US wine merchants (e.g. 'Caymus Cabernet Sauvignon', 'Dom Perignon', 'Cloudy Bay Sauvignon Blanc', 'Opus One').",
            "items": {
              "type": "string"
            }
          },
          "includeZachys": {
            "title": "Zachys Wine & Auctions (zachys.com)",
            "type": "boolean",
            "description": "Include Zachys — prestigious fine, vintage, and collectible wine specialist.",
            "default": true
          },
          "includeAbcFineWine": {
            "title": "ABC Fine Wine & Spirits (abcfws.com)",
            "type": "boolean",
            "description": "Include ABC Fine Wine & Spirits — major US beverage & wine chain with customer ratings.",
            "default": true
          },
          "includeChambers": {
            "title": "Chambers Street Wines (chambersstwines.com)",
            "type": "boolean",
            "description": "Include Chambers Street Wines — NYC Burgundy, Loire, Italian & Old World merchant.",
            "default": true
          },
          "includeRemedy": {
            "title": "Remedy Liquor Wine Catalog (remedyliquor.com)",
            "type": "boolean",
            "description": "Include Remedy Liquor — aggressive volume & restaurant-grade wine pricing.",
            "default": true
          },
          "includeQualityLiquor": {
            "title": "Quality Liquor Store (qualityliquorstore.com)",
            "type": "boolean",
            "description": "Include Quality Liquor Store — nationwide California & imported wine delivery.",
            "default": true
          },
          "includeChipsLiquor": {
            "title": "Chips Liquor Wine Selection (chipsliquor.com)",
            "type": "boolean",
            "description": "Include Chips Liquor — nationwide wine & Champagne e-commerce merchant.",
            "default": true
          },
          "maxItemsPerStore": {
            "title": "Max Items Per Store",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum wine listings to inspect per store for each search query.",
            "default": 10
          },
          "minPrice": {
            "title": "Minimum Price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Ignore cheap accessories or splits below this USD price threshold.",
            "default": 10
          },
          "maxPrice": {
            "title": "Maximum Price ($)",
            "minimum": 1,
            "type": "integer",
            "description": "Ignore ultra-high collector bottles above this USD price threshold.",
            "default": 2000
          },
          "excludeAccessories": {
            "title": "Exclude Barware, Glassware, Mixers & 50ml Minis",
            "type": "boolean",
            "description": "Automatically filters out corkscrews, decanters, wine glasses, gift bags, and mini/50ml bottles unless explicitly searched.",
            "default": true
          },
          "inStockOnly": {
            "title": "In-Stock Items Only",
            "type": "boolean",
            "description": "Only include wine offers currently in stock according to live merchant inventory.",
            "default": true
          },
          "matchExactSize": {
            "title": "Match Bottle Volume Strictly (750ml vs 1.5L vs 375ml)",
            "type": "boolean",
            "description": "Prevents standard 750ml bottles from being matched against 375ml half bottles, 1.5L magnums, or multi-bottle packs.",
            "default": true
          },
          "matchVintage": {
            "title": "Isolate Vintage Years Strictly",
            "type": "boolean",
            "description": "When enabled, explicitly different vintage years (e.g. 2020 vs 2021) are kept separate rather than merged into one row.",
            "default": true
          },
          "onlyMultiStoreMatches": {
            "title": "Only Multi-Store Matches",
            "type": "boolean",
            "description": "When enabled, outputs only wines found at 2 or more merchants for direct side-by-side price comparison.",
            "default": false
          },
          "sortBy": {
            "title": "Sort Results By",
            "enum": [
              "priceSpreadDesc",
              "bestPriceAsc",
              "storesComparedDesc",
              "savingsPercentDesc"
            ],
            "type": "string",
            "description": "Choose how matched wine comparison rows are ordered.",
            "default": "priceSpreadDesc"
          },
          "includeFields": {
            "title": "Included Columns / Fields",
            "type": "array",
            "description": "Toggle optional columns cleanly while preserving all core comparison pricing and buy links.",
            "items": {
              "type": "string",
              "enum": [
                "productImage",
                "brand",
                "specs",
                "storeColumns",
                "rawOffers",
                "dealVerdict"
              ],
              "enumTitles": [
                "Product Image Thumbnail",
                "Winery / Producer",
                "Bottle Volume & Vintage Year",
                "All Individual Store Tab Columns",
                "Raw Store Offers Array (JSON)",
                "Deal Verdict Banner"
              ]
            },
            "default": [
              "productImage",
              "brand",
              "specs",
              "storeColumns",
              "dealVerdict"
            ]
          },
          "minSimilarityScore": {
            "title": "Fuzzy Title Matching Sensitivity",
            "minimum": 0.2,
            "maximum": 0.9,
            "type": "number",
            "description": "Token overlap threshold (0.20 loose to 0.90 strict) used to cluster identical wines across merchants.",
            "default": 0.5
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "All 6 wine merchants run directly without IP blocks. Leave disabled unless routing high-volume scrapes via Apify Proxy.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}