{
  "openapi": "3.0.1",
  "info": {
    "title": "Caskers Scraper",
    "description": "Scrape Caskers (caskers.com) - US craft wine & spirits online retailer. Search by keyword, browse spirit categories, fetch products by ID or URL, and collect product reviews. Includes prices, bottle size, ABV/proof, tasting notes, ratings, images, and availability.",
    "version": "1.0",
    "x-build-id": "1D9yBFpa1uQqjmFud"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~caskers-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-caskers-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/crawlerbros~caskers-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-caskers-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/crawlerbros~caskers-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-caskers-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",
              "byCategory",
              "byProductIds",
              "byUrls",
              "productReviews"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query (mode=search)",
            "type": "string",
            "description": "Free-text keyword, e.g. `whiskey`, `single malt`, `mezcal`, `bourbon`.",
            "default": "whiskey"
          },
          "category": {
            "title": "Category (mode=byCategory)",
            "enum": [
              "spirits",
              "spirits/whiskey",
              "spirits/whiskey/bourbon",
              "spirits/whiskey/scotch",
              "spirits/whiskey/irish",
              "spirits/whiskey/rye",
              "spirits/whiskey/japanese",
              "spirits/whiskey/moonshine",
              "spirits/whiskey/american-single-malts",
              "spirits/vodka",
              "spirits/tequila",
              "spirits/rum",
              "spirits/gin",
              "spirits/brandy",
              "spirits/other",
              "spirits/other/cognac",
              "spirits/other/spirits-other-mezcal",
              "spirits/other/absinthe",
              "spirits/other/liqueur",
              "spirits/other/vermouth",
              "non-alcoholic-drinks",
              "champagne",
              "cocktail-bar",
              "cocktail-bar/ready-made-cocktails",
              "cocktail-bar/essentials",
              "best-sellers",
              "limited-editions",
              "new-arrivals",
              "rare-finds-selection",
              "gift-sets",
              "spirits-under-50",
              "spirits-under-100",
              "spirits-under-200",
              "spirits-above-200"
            ],
            "type": "string",
            "description": "Caskers category path to browse.",
            "default": "spirits"
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "nameAsc",
              "nameDesc",
              "priceAsc",
              "priceDesc"
            ],
            "type": "string",
            "description": "Result ordering (used by mode=search and mode=byCategory).",
            "default": "relevance"
          },
          "priceRange": {
            "title": "Price range (mode=byCategory)",
            "enum": [
              "any",
              "0-50",
              "50-100",
              "100-200",
              "200-500",
              "500-plus"
            ],
            "type": "string",
            "description": "Restrict category results to a price band.",
            "default": "any"
          },
          "brandId": {
            "title": "Brand ID filter (mode=byCategory)",
            "minimum": 1,
            "maximum": 30000,
            "type": "integer",
            "description": "Restrict category results to one brand (Caskers brand_dropdown ID, e.g. 3369 = Hennessy). The actor resolves the ID to the brand name from the site's own brand page and filters records client-side, so it is honored on every category. Optional; leave empty for all brands."
          },
          "productIds": {
            "title": "Product IDs (mode=byProductIds)",
            "type": "array",
            "description": "Caskers numeric product IDs (e.g. `7582`, `1023`). Use the `productId` field from any scraped product record, or the data-product-id of a category card.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product URLs (mode=byUrls)",
            "type": "array",
            "description": "Full Caskers product URLs (e.g. `https://www.caskers.com/bushmills-12-year-old-single-malt-irish-whiskey-750/`).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product (mode=productReviews)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Cap on review records per product. Pass the numeric product ID from any scraped `productId` field (e.g. `1023`). Caskers shows up to 9 reviews per product.",
            "default": 10
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records (products or reviews).",
            "default": 50
          },
          "limit": {
            "title": "Products per page",
            "minimum": 20,
            "maximum": 80,
            "type": "integer",
            "description": "How many products Caskers renders per category/search page.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Caskers serves pages to datacenter IPs without a proxy; enable Apify AUTO proxy only if you hit blocks."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}