{
  "openapi": "3.0.1",
  "info": {
    "title": "Vivino Wine Ratings & Tasting Profile Scraper",
    "description": "Search Vivino wines by name, browse by type and country, look up specific vintages by ID, or pull a winery's full catalogue. Get ratings, prices, grapes, tasting notes, and food pairings for each wine.",
    "version": "1.0",
    "x-build-id": "EKzBGehbk29hlDAtj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataspryva~vivino-wine-ratings-and-tasting-profile-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataspryva-vivino-wine-ratings-and-tasting-profile-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/dataspryva~vivino-wine-ratings-and-tasting-profile-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dataspryva-vivino-wine-ratings-and-tasting-profile-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/dataspryva~vivino-wine-ratings-and-tasting-profile-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dataspryva-vivino-wine-ratings-and-tasting-profile-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",
              "explore",
              "byWineId",
              "winery"
            ],
            "type": "string",
            "description": "What to fetch. `search` runs one or more free-text queries; `explore` browses with filters; `byWineId` resolves wine/vintage URLs or IDs; `winery` pages through a producer's catalogue.",
            "default": "search"
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "One or more free-text wine searches (mode=search). Searches match wine, winery, region and grape names. Example: `barolo`, `chateau petrus`, `napa valley cabernet`.",
            "default": [
              "barolo"
            ],
            "items": {
              "type": "string"
            }
          },
          "wineIds": {
            "title": "Wine IDs or URLs",
            "type": "array",
            "description": "Vivino wine/vintage IDs or URLs (mode=byWineId). Accepts 171525306, https://www.vivino.com/w/1167880?year=2022, /vintages/171525306 and /wines/171525306.",
            "default": [
              "171525306"
            ],
            "items": {
              "type": "string"
            }
          },
          "winery": {
            "title": "Winery ID, slug or URL",
            "type": "string",
            "description": "Winery to scrape (mode=winery). Accepts 1945, michele-chiarlo, or a Vivino winery URL."
          },
          "wineType": {
            "title": "Wine type",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "7",
              "24"
            ],
            "type": "string",
            "description": "Filter by wine type. Applies to search, explore and winery.",
            "default": ""
          },
          "country": {
            "title": "Country of origin",
            "enum": [
              "",
              "fr",
              "it",
              "us",
              "de",
              "es",
              "au",
              "at",
              "pt",
              "cl",
              "ar",
              "ch",
              "za",
              "cz",
              "ca",
              "hu",
              "nz",
              "br",
              "ge",
              "gr",
              "jp",
              "ru",
              "ro",
              "sk",
              "hr",
              "si",
              "mx",
              "il",
              "bg",
              "md",
              "ua",
              "gb",
              "uy",
              "pl",
              "tr",
              "rs",
              "lu",
              "cn",
              "nl",
              "be",
              "am",
              "mk",
              "dk",
              "cy",
              "lb",
              "az",
              "pe",
              "in",
              "se",
              "ba",
              "bo",
              "al",
              "mt",
              "ma",
              "tn",
              "me",
              "xk",
              "th",
              "uz",
              "kz",
              "by",
              "lt",
              "vn",
              "lv",
              "jo",
              "tw",
              "li",
              "co",
              "kr",
              "sm",
              "fi",
              "eg",
              "ec",
              "mu",
              "dz",
              "id",
              "na",
              "et",
              "ee",
              "ps",
              "tz",
              "no",
              "mm",
              "ve",
              "mg",
              "pr",
              "ie",
              "hk",
              "kg",
              "ad",
              "cr",
              "cv",
              "af",
              "py",
              "zm",
              "kp",
              "np",
              "cu",
              "gt",
              "ph",
              "we",
              "zw",
              "do",
              "ke",
              "pf",
              "bs",
              "nf",
              "sy",
              "vi",
              "tj",
              "aw",
              "bt",
              "im",
              "re",
              "ir",
              "my",
              "pa",
              "cw",
              "mn",
              "sn",
              "an",
              "ao",
              "hn",
              "is",
              "kh",
              "rw",
              "tt",
              "ls",
              "ae",
              "bb",
              "gh",
              "iq",
              "lk",
              "sg",
              "sr",
              "tm",
              "ug",
              "bz",
              "fk",
              "ga",
              "jm",
              "la",
              "lr",
              "mw",
              "ng",
              "pg",
              "sz"
            ],
            "type": "string",
            "description": "Filter wines by country of origin (ISO 2-letter code). Leave empty for all countries.",
            "default": ""
          },
          "region": {
            "title": "Region or appellation",
            "type": "string",
            "description": "Optional region filter, e.g. `Barolo`, `napa-valley`, or a Vivino region URL. Combine with Country when a name is ambiguous."
          },
          "grape": {
            "title": "Grape variety",
            "type": "string",
            "description": "Optional grape filter, e.g. `Nebbiolo`, `pinot-noir`, or a Vivino grape URL."
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only wines whose displayed rating is at or above this value (0-5)."
          },
          "maxRating": {
            "title": "Maximum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only wines whose displayed rating is at or below this value (0-5). Applied after fetching."
          },
          "minPrice": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Only wines with a current offer at or above this price."
          },
          "maxPrice": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Only wines with a current offer at or below this price. Leave empty for no cap."
          },
          "orderBy": {
            "title": "Sort by",
            "enum": [
              "ratings_count",
              "ratings_average",
              "price",
              "relevance"
            ],
            "type": "string",
            "description": "How Vivino orders search and explore results.",
            "default": "ratings_count"
          },
          "order": {
            "title": "Sort order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Descending (highest first) or ascending (lowest first).",
            "default": "desc"
          },
          "includeReviews": {
            "title": "Include reviews",
            "type": "boolean",
            "description": "Attach the latest wine-level Vivino reviews to each record. Reviews span all vintages; each review keeps its own year.",
            "default": false
          },
          "maxReviewsPerWine": {
            "title": "Max reviews per wine",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many latest reviews to attach when Include reviews is on (1-50).",
            "default": 10
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 2500,
            "type": "integer",
            "description": "Maximum wine records to emit. Vivino exposes at most 2,500 rows per search/explore query; split broad queries into narrower filters for more.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}