{
  "openapi": "3.0.1",
  "info": {
    "title": "Wine-Searcher Region Scraper: popularity, scores & prices",
    "description": "Scrape Wine-Searcher region and appellation pages, from Bordeaux to Napa Valley. Get each wine's popularity rank, critic score, average price with auto-detected currency, country, and label image. Export data, run via API, schedule runs, or integrate with other tools and AI workflows.",
    "version": "0.1",
    "x-build-id": "5E885eqffjdUWEJJb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mrbridge~wine-searcher-region-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mrbridge-wine-searcher-region-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~wine-searcher-region-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mrbridge-wine-searcher-region-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~wine-searcher-region-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mrbridge-wine-searcher-region-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": {
          "region": {
            "title": "Wine Region",
            "enum": [
              "https://www.wine-searcher.com/regions-alentejo",
              "https://www.wine-searcher.com/regions-alsace",
              "https://www.wine-searcher.com/regions-baden",
              "https://www.wine-searcher.com/regions-barbaresco",
              "https://www.wine-searcher.com/regions-barolo",
              "https://www.wine-searcher.com/regions-barossa+valley",
              "https://www.wine-searcher.com/regions-beaujolais",
              "https://www.wine-searcher.com/regions-bordeaux",
              "https://www.wine-searcher.com/regions-brunello+di+montalcino",
              "https://www.wine-searcher.com/regions-burgundy",
              "https://www.wine-searcher.com/regions-casablanca+valley",
              "https://www.wine-searcher.com/regions-central+otago",
              "https://www.wine-searcher.com/regions-chablis",
              "https://www.wine-searcher.com/regions-champagne",
              "https://www.wine-searcher.com/regions-chateauneuf-du-pape",
              "https://www.wine-searcher.com/regions-chianti",
              "https://www.wine-searcher.com/regions-colchagua+valley",
              "https://www.wine-searcher.com/regions-coonawarra",
              "https://www.wine-searcher.com/regions-douro",
              "https://www.wine-searcher.com/regions-etna",
              "https://www.wine-searcher.com/regions-hawkes+bay",
              "https://www.wine-searcher.com/regions-hunter+valley",
              "https://www.wine-searcher.com/regions-jerez+-+xeres+-+sherry",
              "https://www.wine-searcher.com/regions-loire",
              "https://www.wine-searcher.com/regions-madeira",
              "https://www.wine-searcher.com/regions-maipo+valley",
              "https://www.wine-searcher.com/regions-margaret+river",
              "https://www.wine-searcher.com/regions-margaux",
              "https://www.wine-searcher.com/regions-marlborough",
              "https://www.wine-searcher.com/regions-mclaren+vale",
              "https://www.wine-searcher.com/regions-medoc",
              "https://www.wine-searcher.com/regions-mendoza",
              "https://www.wine-searcher.com/regions-mosel",
              "https://www.wine-searcher.com/regions-nahe",
              "https://www.wine-searcher.com/regions-napa+valley",
              "https://www.wine-searcher.com/regions-nemea",
              "https://www.wine-searcher.com/regions-paso+robles",
              "https://www.wine-searcher.com/regions-pauillac",
              "https://www.wine-searcher.com/regions-pfalz",
              "https://www.wine-searcher.com/regions-piedmont",
              "https://www.wine-searcher.com/regions-pomerol",
              "https://www.wine-searcher.com/regions-priorat",
              "https://www.wine-searcher.com/regions-prosecco",
              "https://www.wine-searcher.com/regions-provence",
              "https://www.wine-searcher.com/regions-rheingau",
              "https://www.wine-searcher.com/regions-rhone",
              "https://www.wine-searcher.com/regions-rias+baixas",
              "https://www.wine-searcher.com/regions-ribera+del+duero",
              "https://www.wine-searcher.com/regions-rioja",
              "https://www.wine-searcher.com/regions-russian+river+valley",
              "https://www.wine-searcher.com/regions-saint-emilion",
              "https://www.wine-searcher.com/regions-sancerre",
              "https://www.wine-searcher.com/regions-santorini",
              "https://www.wine-searcher.com/regions-sauternes",
              "https://www.wine-searcher.com/regions-sicily",
              "https://www.wine-searcher.com/regions-sonoma+county",
              "https://www.wine-searcher.com/regions-stellenbosch",
              "https://www.wine-searcher.com/regions-swartland",
              "https://www.wine-searcher.com/regions-tokaj",
              "https://www.wine-searcher.com/regions-tuscany",
              "https://www.wine-searcher.com/regions-uco+valley",
              "https://www.wine-searcher.com/regions-veneto",
              "https://www.wine-searcher.com/regions-vinho+verde",
              "https://www.wine-searcher.com/regions-wachau",
              "https://www.wine-searcher.com/regions-willamette+valley",
              "https://www.wine-searcher.com/regions-yarra+valley"
            ],
            "type": "string",
            "description": "Choose a region or appellation from the list. Burgundy by default. For regions not listed, use the 'Custom Region URL' field below.",
            "default": "https://www.wine-searcher.com/regions-burgundy"
          },
          "customUrl": {
            "title": "Custom Region URL",
            "type": "string",
            "description": "Paste any Wine-Searcher region URL to scrape a region not in the dropdown. Takes priority over the dropdown selection. Must match https://www.wine-searcher.com/regions-{slug}."
          },
          "maxPagesPerRegion": {
            "title": "Pages per Region",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Set how many result pages to scrape (about 25 wines per page, roughly $0.075 each at $0.003 per wine). Range 1 to 50. Defaults to 3 in Console, 5 via API.",
            "default": 5
          },
          "tabFilter": {
            "title": "Ranking Tab",
            "enum": [
              "mostpopular",
              "best",
              "bestvalue",
              "mostexpensive",
              "cheapest"
            ],
            "type": "string",
            "description": "Choose which Wine-Searcher ranking to scrape. Defaults to Most Popular.",
            "default": "mostpopular"
          },
          "targetCurrency": {
            "title": "Target Currency",
            "enum": [
              "",
              "USD",
              "EUR",
              "GBP",
              "CHF",
              "JPY",
              "AUD",
              "CAD",
              "NZD",
              "SEK",
              "NOK",
              "DKK",
              "ISK",
              "PLN",
              "CZK",
              "HUF",
              "RON",
              "TRY",
              "ILS",
              "ZAR",
              "BRL",
              "MXN",
              "CNY",
              "HKD",
              "SGD",
              "INR",
              "KRW",
              "PHP",
              "THB",
              "IDR",
              "MYR"
            ],
            "type": "string",
            "description": "Optionally convert every price to one ISO currency using live exchange rates. Leave empty to keep the original per-country currency."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}