{
  "openapi": "3.0.1",
  "info": {
    "title": "CocktailDB Drink Recipe Scraper",
    "description": "Scrape cocktail recipes from TheCocktailDB — 636+ cocktails with ingredients, measurements, instructions, and images. Free API, no key needed.",
    "version": "0.0",
    "x-build-id": "1hYTaIJsbetQrrch9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moving_beacon-owner1~my-actor-84/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moving_beacon-owner1-my-actor-84",
        "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/moving_beacon-owner1~my-actor-84/runs": {
      "post": {
        "operationId": "runs-sync-moving_beacon-owner1-my-actor-84",
        "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/moving_beacon-owner1~my-actor-84/run-sync": {
      "post": {
        "operationId": "run-sync-moving_beacon-owner1-my-actor-84",
        "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": [
          "scrape_mode"
        ],
        "properties": {
          "scrape_mode": {
            "title": "Scrape Mode",
            "enum": [
              "search",
              "by_ingredient",
              "by_category",
              "by_glass",
              "by_alcoholic",
              "random",
              "lookup",
              "browse_all",
              "list_filters"
            ],
            "type": "string",
            "description": "How the scraper finds cocktails. Each mode reads from a different field below — the others are ignored.",
            "default": "search"
          },
          "search_term": {
            "title": "Search Term",
            "type": "string",
            "description": "Cocktail name to search for. Used only when Scrape Mode is 'Search by Name'. Examples: 'margarita', 'mojito', 'old fashioned'.",
            "default": ""
          },
          "ingredient": {
            "title": "Ingredient",
            "type": "string",
            "description": "Ingredient to filter cocktails by. Used only when Scrape Mode is 'Filter by Ingredient'. Examples: 'Gin', 'Vodka', 'Rum', 'Tequila', 'Whiskey', 'Lemon'.",
            "default": ""
          },
          "category": {
            "title": "Category",
            "enum": [
              "",
              "Ordinary_Drink",
              "Cocktail",
              "Shake",
              "Shot",
              "Coffee_/_Tea",
              "Homemade_Liqueur",
              "Punch_/_Party_Drink",
              "Beer",
              "Soft_Drink"
            ],
            "type": "string",
            "description": "Category to filter cocktails by. Used only when Scrape Mode is 'Filter by Category'. Leave as '(none)' for other modes.",
            "default": ""
          },
          "glass": {
            "title": "Glass Type",
            "type": "string",
            "description": "Glass type to filter cocktails by. Used only when Scrape Mode is 'Filter by Glass Type'. Use underscores instead of spaces. Examples: 'Cocktail_glass', 'Highball_glass', 'Martini_Glass', 'Shot_glass', 'Wine_Glass'.",
            "default": ""
          },
          "alcoholic_filter": {
            "title": "Alcoholic Filter",
            "enum": [
              "Alcoholic",
              "Non_Alcoholic",
              "Optional_Alcohol"
            ],
            "type": "string",
            "description": "Alcohol content to filter by. Used only when Scrape Mode is 'Filter by Alcoholic / Non-Alcoholic'.",
            "default": "Alcoholic"
          },
          "cocktail_ids": {
            "title": "Cocktail IDs",
            "pattern": "^\\s*$|^\\s*\\d+(\\s*,\\s*\\d+)*\\s*$",
            "type": "string",
            "description": "Comma-separated list of numeric cocktail IDs. Used only when Scrape Mode is 'Lookup by Cocktail ID'. Example: '11007,11000,17222'.",
            "default": ""
          },
          "random_count": {
            "title": "Random Count",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many random cocktails to fetch. Used only when Scrape Mode is 'Random Cocktails'.",
            "default": 10
          },
          "include_full_details": {
            "title": "Include Full Details",
            "type": "boolean",
            "description": "For filter modes (ingredient, category, glass, alcoholic), also fetch the full recipe for each matched cocktail. Slower, but adds ingredients, measurements, and instructions instead of just name + thumbnail. Has no effect on other modes.",
            "default": true
          },
          "max_results": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Hard cap on the number of cocktails saved to the dataset. Applies to every mode that can return more than one item.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}