{
  "openapi": "3.0.1",
  "info": {
    "title": "Vivino Scraper - Wine Ratings, Prices & Vintages",
    "description": "Extract wine data from Vivino: ratings, reviews, prices, vintages, taste profiles. Filter by region (Burgundy, Bordeaux, Champagne...), grape variety, producer. Perfect for wine merchants, sommeliers, and collectors.",
    "version": "1.0",
    "x-build-id": "6a9z2uzZhiq0bureo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mrbridge~vivino-powerful-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mrbridge-vivino-powerful-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/mrbridge~vivino-powerful-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mrbridge-vivino-powerful-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/mrbridge~vivino-powerful-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mrbridge-vivino-powerful-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": {
          "minRating": {
            "title": "Minimum Rating",
            "minimum": 1,
            "maximum": 5,
            "type": "number",
            "description": "Filter wines by minimum Vivino rating (1-5 stars). Example: 4.0 for highly-rated wines, 4.5 for exceptional wines.",
            "default": 3.5
          },
          "maxRating": {
            "title": "Maximum Rating",
            "minimum": 1,
            "maximum": 5,
            "type": "number",
            "description": "Filter wines by maximum rating. Leave empty for no upper limit.",
            "default": 5
          },
          "region": {
            "title": "Wine Region",
            "enum": [
              "",
              "bourgogne",
              "bordeaux",
              "champagne",
              "rhone",
              "loire",
              "alsace",
              "beaujolais",
              "provence",
              "languedoc",
              "chablis",
              "cote-de-beaune",
              "cote-de-nuits",
              "meursault",
              "puligny-montrachet",
              "chassagne-montrachet",
              "gevrey-chambertin",
              "nuits-saint-georges",
              "pommard",
              "volnay",
              "medoc",
              "haut-medoc",
              "margaux",
              "pauillac",
              "saint-julien",
              "saint-estephe",
              "saint-emilion",
              "pomerol",
              "pessac-leognan",
              "sauternes",
              "graves",
              "cotes-du-rhone",
              "chateauneuf-du-pape",
              "cote-rotie",
              "hermitage",
              "crozes-hermitage",
              "gigondas",
              "condrieu",
              "sancerre",
              "pouilly-fume",
              "muscadet",
              "vouvray",
              "chinon",
              "toscane",
              "piemont",
              "venetie",
              "rioja",
              "ribera-del-duero",
              "priorat"
            ],
            "type": "string",
            "description": "Select a wine region or appellation. Includes French regions (Burgundy, Bordeaux, Champagne, Rhone, Loire), Italian (Tuscany, Piedmont), Spanish (Rioja, Priorat), and sub-appellations.",
            "default": ""
          },
          "wineType": {
            "title": "Wine Type",
            "enum": [
              "",
              "red",
              "white",
              "sparkling",
              "rose",
              "dessert",
              "fortified"
            ],
            "type": "string",
            "description": "Filter by wine style: Red, White, Sparkling, Rose, Dessert, or Fortified wines.",
            "default": ""
          },
          "grape": {
            "title": "Grape Variety",
            "enum": [
              "",
              "pinot-noir",
              "chardonnay",
              "cabernet-sauvignon",
              "merlot",
              "syrah",
              "grenache",
              "gamay",
              "cabernet-franc",
              "sauvignon-blanc",
              "riesling",
              "pinot-gris",
              "gewurztraminer",
              "viognier",
              "chenin-blanc",
              "muscadet",
              "semillon",
              "sangiovese",
              "nebbiolo",
              "tempranillo",
              "malbec",
              "mourvedre"
            ],
            "type": "string",
            "description": "Filter by grape variety (cepage). Popular options: Pinot Noir, Chardonnay, Cabernet Sauvignon, Merlot, Syrah, and more.",
            "default": ""
          },
          "wineryName": {
            "title": "Producer / Winery",
            "type": "string",
            "description": "Search by producer name. Examples: 'Coche-Dury', 'Romanee-Conti', 'Rayas'. Partial match supported.",
            "default": ""
          },
          "priceRangeMin": {
            "title": "Minimum Price",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price filter in selected currency. Leave empty for no minimum.",
            "default": 0
          },
          "priceRangeMax": {
            "title": "Maximum Price",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price filter. Example: 50 for wines under 50 EUR/USD. Leave empty for no maximum.",
            "default": 0
          },
          "countryCode": {
            "title": "Market Country",
            "enum": [
              "fr",
              "us",
              "gb",
              "de",
              "it",
              "es",
              "pt",
              "be",
              "nl",
              "ch",
              "at",
              "au",
              "ca",
              "br",
              "jp"
            ],
            "type": "string",
            "description": "Country for price availability and currency conversion",
            "default": "fr"
          },
          "currencyCode": {
            "title": "Currency",
            "enum": [
              "EUR",
              "USD",
              "GBP",
              "CHF",
              "AUD",
              "CAD",
              "JPY",
              "BRL"
            ],
            "type": "string",
            "description": "Currency for displaying prices",
            "default": "EUR"
          },
          "orderBy": {
            "title": "Sort By",
            "enum": [
              "ratings_average",
              "ratings_count",
              "price",
              "discount"
            ],
            "type": "string",
            "description": "Sort results by rating, popularity, price, or discount",
            "default": "ratings_average"
          },
          "order": {
            "title": "Sort Order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Ascending or descending order",
            "default": "desc"
          },
          "maxWines": {
            "title": "Maximum Wines",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of wines to scrape. Start small (50-100) to test filters, increase for larger datasets.",
            "default": 100
          },
          "includeAllVintages": {
            "title": "Include All Vintages",
            "type": "boolean",
            "description": "Get ratings for ALL vintage years (1970-2026) of each wine. Creates one row per vintage. Perfect for investment analysis and tracking vintage quality. Note: Significantly slower.",
            "default": false
          },
          "debug": {
            "title": "Debug Mode",
            "type": "boolean",
            "description": "Enable verbose logging for troubleshooting",
            "default": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}