{
  "openapi": "3.0.1",
  "info": {
    "title": "Vivino Wine Data Scraper",
    "description": "Look up wines on Vivino by name, vintage or link: ratings per vintage and overall, prices in 23 markets and 27 currencies, grapes, region, winery, food pairings, taste profile and community reviews.",
    "version": "0.1",
    "x-build-id": "CXMxtIY3iTLC772Gn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scraping_crew~vivino-wine-data-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scraping_crew-vivino-wine-data-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/scraping_crew~vivino-wine-data-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scraping_crew-vivino-wine-data-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/scraping_crew~vivino-wine-data-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scraping_crew-vivino-wine-data-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": [
          "wines"
        ],
        "properties": {
          "wines": {
            "title": "Wines",
            "type": "array",
            "description": "One per line: a wine name, optionally with a vintage year (e.g. \"Opus One 2019\", \"Château Margaux 2015\"), a Vivino wine page link (e.g. https://www.vivino.com/cloudy-bay-sauvignon-blanc/w/18978?year=2022), or a Vivino category link (https://www.vivino.com/explore/red-wines, white-wines, sparkling-wines, rose-wines, dessert-wines, fortified-wines, or an /explore link with filters). Filters in a category link (price range, country, grape, food, rating, sort order) are kept. Vivino shows at most 2,000 results per category link — add filters or more links to get more.",
            "items": {
              "type": "string"
            }
          },
          "searchMode": {
            "title": "Vintage year in names",
            "enum": [
              "auto",
              "name_only"
            ],
            "type": "string",
            "description": "How a year written in a wine name is used. Without a year you get the newest vintage on sale in your market (or the newest well-rated vintage).",
            "default": "auto"
          },
          "maxResultsPerQuery": {
            "title": "Wines per name",
            "minimum": 1,
            "type": "integer",
            "description": "For wine names only: 1 = only the best-matching wine for each name. Higher values return several matching wines per name, e.g. 20 different wines for \"Cloudy Bay\" or \"Barolo\".",
            "default": 1
          },
          "includeTasteProfile": {
            "title": "Include taste profile",
            "type": "boolean",
            "description": "Body, acidity, tannins, sweetness, fizziness and the most mentioned flavor notes.",
            "default": true
          },
          "includeReviews": {
            "title": "Include reviews",
            "type": "boolean",
            "description": "Add community reviews of the vintage to each wine: rating, text, language, date and reviewer name.",
            "default": false
          },
          "maxReviewsPerWine": {
            "title": "Max reviews per wine",
            "minimum": 1,
            "type": "integer",
            "description": "How many reviews to add to each wine when reviews are on.",
            "default": 10
          },
          "shipTo": {
            "title": "Market (ship to)",
            "enum": [
              "",
              "AU",
              "AT",
              "BE",
              "BR",
              "CA",
              "CZ",
              "DK",
              "FI",
              "FR",
              "DE",
              "HK",
              "IT",
              "JP",
              "LU",
              "MC",
              "NL",
              "PT",
              "SG",
              "ES",
              "SE",
              "CH",
              "GB",
              "US"
            ],
            "type": "string",
            "description": "Country whose shops and prices are used. Wines not sold there have no price.",
            "default": "US"
          },
          "currencyCode": {
            "title": "Currency",
            "enum": [
              "",
              "USD",
              "EUR",
              "GBP",
              "CAD",
              "AUD",
              "CHF",
              "DKK",
              "SEK",
              "NOK",
              "JPY",
              "HKD",
              "SGD",
              "BRL",
              "CZK",
              "PLN",
              "NZD",
              "ZAR",
              "MXN",
              "CNY",
              "KRW",
              "INR",
              "RUB",
              "HUF",
              "RON",
              "BGN",
              "ILS",
              "TRY"
            ],
            "type": "string",
            "description": "Currency the prices are shown in.",
            "default": "USD"
          },
          "maxItems": {
            "title": "Max wines",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of wines saved in this run, across all lines. Several links and names share it fairly. Free plans are always limited to 2 wines per run.",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Max parallel requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many wines are looked up at the same time. Lower is gentler if you see errors.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy servers. Not needed in normal use; if Vivino starts blocking, a residential proxy helps.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}