{
  "openapi": "3.0.1",
  "info": {
    "title": "Vivino Scraper - Wines, Ratings, Reviews & Prices",
    "description": "Discover wines on Vivino by type, country, region, grape, price & rating: ratings, taste profile, flavor notes, food pairings, awards, critic & user reviews, live + median prices, and price/rating monitoring.",
    "version": "0.1",
    "x-build-id": "ZL9cNwnXs0sVrObvG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~vivino-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-vivino-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/scrapesage~vivino-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-vivino-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/scrapesage~vivino-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-vivino-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": {
          "wineTypes": {
            "title": "Wine types",
            "type": "array",
            "description": "Filter discovery by wine type. Leave empty for all types. Combine with the other filters below to explore Vivino exactly like its own 'Explore wines' page.",
            "items": {
              "type": "string",
              "enum": [
                "red",
                "white",
                "sparkling",
                "rose",
                "dessert",
                "fortified"
              ],
              "enumTitles": [
                "Red",
                "White",
                "Sparkling",
                "Rosé",
                "Dessert",
                "Fortified"
              ]
            }
          },
          "wineCountries": {
            "title": "Wine origin countries",
            "type": "array",
            "description": "Only keep wines made in these countries (ISO codes, lowercase): e.g. <code>us</code>, <code>fr</code>, <code>it</code>, <code>es</code>, <code>pt</code>, <code>ar</code>, <code>cl</code>, <code>au</code>, <code>de</code>. Leave empty for all origins.",
            "items": {
              "type": "string"
            }
          },
          "minRating": {
            "title": "Minimum rating",
            "type": "string",
            "description": "Only keep wines with at least this Vivino average rating (1.0–4.9), e.g. <code>4.0</code>."
          },
          "priceMin": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep wines priced at or above this amount in the market currency."
          },
          "priceMax": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep wines priced at or below this amount in the market currency."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "mostPopular",
              "topRated",
              "priceAsc",
              "priceDesc"
            ],
            "type": "string",
            "description": "How to order discovered wines.",
            "default": "mostPopular"
          },
          "grapeIds": {
            "title": "Grape IDs",
            "type": "array",
            "description": "Advanced: filter by Vivino grape IDs (numeric). Common: 1 Shiraz/Syrah, 2 Cabernet Sauvignon, 5 Chardonnay, 9 Merlot, 10 Sangiovese, 14 Pinot Noir, 18 Sauvignon Blanc, 22 Tempranillo, 43 Riesling, 64 Nebbiolo.",
            "items": {
              "type": "string"
            }
          },
          "regionIds": {
            "title": "Region IDs",
            "type": "array",
            "description": "Advanced: filter by Vivino region IDs (numeric), e.g. 25 Napa Valley.",
            "items": {
              "type": "string"
            }
          },
          "foodIds": {
            "title": "Food pairing IDs",
            "type": "array",
            "description": "Advanced: filter by Vivino food-pairing IDs (numeric), e.g. 20 Beef, 8 Lamb, 4 Pork, 9 Poultry, 17 Mushrooms, 10 Spicy food, 14 Mature & hard cheese.",
            "items": {
              "type": "string"
            }
          },
          "wineStyleIds": {
            "title": "Wine style IDs",
            "type": "array",
            "description": "Advanced: filter by Vivino wine-style IDs (numeric), e.g. a specific regional style like 'Napa Valley Cabernet Sauvignon'.",
            "items": {
              "type": "string"
            }
          },
          "marketCountry": {
            "title": "Market country",
            "type": "string",
            "description": "Pricing & availability market (ISO country code). Prices and median prices are computed for this market. Default <code>US</code>.",
            "default": "US"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Currency for all prices (ISO code), e.g. <code>USD</code>, <code>EUR</code>, <code>GBP</code>.",
            "default": "USD"
          },
          "startUrls": {
            "title": "Wine page URLs",
            "type": "array",
            "description": "Vivino wine page URLs to scrape directly, e.g. <code>https://www.vivino.com/&lt;slug&gt;/w/1234567</code> or <code>https://www.vivino.com/w/1234567?year=2019</code>. Used in addition to the Explore filters.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "wineIds": {
            "title": "Wine IDs",
            "type": "array",
            "description": "Vivino wine IDs to scrape directly (the number in a <code>/w/&lt;id&gt;</code> URL), e.g. <code>5978015</code>.",
            "items": {
              "type": "string"
            }
          },
          "includeWineDetails": {
            "title": "Include full wine detail",
            "type": "boolean",
            "description": "Enrich each wine with the full detail: description, food pairings, grape composition, alcohol, awards, critic reviews, ratings distribution, recommended drinking window and global/country/region/winery rankings. Turn OFF for a faster/cheaper discovery run (ratings, taste, region, winery, price & image only). Adds one request per wine.",
            "default": true
          },
          "includeReviews": {
            "title": "Include user reviews",
            "type": "boolean",
            "description": "Pull Vivino community reviews for each wine (star rating, review text, language, date, taster alias, flavor keywords) as separate review records. Adds one request per wine.",
            "default": false
          },
          "maxReviewsPerWine": {
            "title": "Max reviews per wine",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of user reviews to pull per wine when reviews are enabled.",
            "default": 10
          },
          "reviewsLanguage": {
            "title": "Reviews language",
            "type": "string",
            "description": "Only keep reviews in this language (ISO code, e.g. <code>en</code>), or <code>any</code> for all languages.",
            "default": "any"
          },
          "includeAllVintages": {
            "title": "Include all vintages (direct wines)",
            "type": "boolean",
            "description": "For wines provided via URL or ID, emit every available vintage year (one record per year) instead of just the featured vintage — perfect for price/rating-by-year analysis.",
            "default": false
          },
          "includeMedianPrice": {
            "title": "Include median market price",
            "type": "boolean",
            "description": "Add the median market price alongside the live lowest price for each wine (one extra batched request per page).",
            "default": true
          },
          "maxResults": {
            "title": "Max wines",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of wine records to scrape across all filters and URLs. Vivino Explore returns 24 wines per page.",
            "default": 100
          },
          "maxPagesPerSearch": {
            "title": "Max Explore pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many Explore result pages to page through (24 wines each).",
            "default": 10
          },
          "deduplicateWines": {
            "title": "Deduplicate wines",
            "type": "boolean",
            "description": "Drop duplicate wines (same vintage) that appear more than once in the same run.",
            "default": true
          },
          "monitorMode": {
            "title": "Monitor mode (only new / changed)",
            "type": "boolean",
            "description": "Remember wines across runs in a named key-value store and emit ONLY wines that are new OR whose price/rating changed since the last run (each carries a <code>changeType</code>: new / price_drop / price_rise / rating_up / rating_down). Pair with Apify Schedules for price-drop & rating alerts — it complements the scheduler (the schedule starts the run; monitor mode dedupes against prior runs).",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Names the monitor's memory store so you can run several independent monitors (e.g. one per filter). Reuse the same key to keep tracking the same feed.",
            "default": "default"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Parallel requests. Keep moderate (3–5) for steady, reliable output.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxies to use. Vivino serves cleanly to Apify RESIDENTIAL proxies; keep the default. Datacenter IPs are throttled by Vivino and are not recommended.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}