Mixologist Maestro

Mixologist Maestro · Ações GPT

TheCocktailDB API

Provides various methods to access cocktail and ingredient data.

  • GET /search.phpsearchCocktail

    Search cocktail by name or list all cocktails by first letter

  • GET /lookup.phplookupCocktailOrIngredient

    Lookup full cocktail details by id or ingredient by ID

  • GET /random.phprandomCocktail

    Lookup a random cocktail

  • GET /filter.phpfilterCocktails

    Search or filter cocktails by various criteria

  • GET /list.phplistOptions

    List categories, glasses, ingredients, or alcoholic filters

Esquema API original
{
  "openapi": "3.1.0",
  "info": {
    "title": "TheCocktailDB API",
    "description": "Provides various methods to access cocktail and ingredient data.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://www.thecocktaildb.com/api/json/v1/1"
    }
  ],
  "paths": {
    "/search.php": {
      "get": {
        "description": "Search cocktail by name or list all cocktails by first letter",
        "operationId": "searchCocktail",
        "parameters": [
          {
            "name": "s",
            "in": "query",
            "description": "Cocktail name for search",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "f",
            "in": "query",
            "description": "First letter of cocktail name for listing",
            "schema": {
              "type": "string"
            }
          }
        ],
        "deprecated": false
      }
    },
    "/lookup.php": {
      "get": {
        "description": "Lookup full cocktail details by id or ingredient by ID",
        "operationId": "lookupCocktailOrIngredient",
        "parameters": [
          {
            "name": "i",
            "in": "query",
            "description": "Cocktail ID for lookup",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "iid",
            "in": "query",
            "description": "Ingredient ID for lookup",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "deprecated": false
      }
    },
    "/random.php": {
      "get": {
        "description": "Lookup a random cocktail",
        "operationId": "randomCocktail",
        "deprecated": false
      }
    },
    "/filter.php": {
      "get": {
        "description": "Search or filter cocktails by various criteria",
        "operationId": "filterCocktails",
        "parameters": [
          {
            "name": "i",
            "in": "query",
            "description": "Ingredient name for search",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "a",
            "in": "query",
            "description": "Alcoholic filter",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "c",
            "in": "query",
            "description": "Cocktail category",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "g",
            "in": "query",
            "description": "Glass type",
            "schema": {
              "type": "string"
            }
          }
        ],
        "deprecated": false
      }
    },
    "/list.php": {
      "get": {
        "description": "List categories, glasses, ingredients, or alcoholic filters",
        "operationId": "listOptions",
        "parameters": [
          {
            "name": "c",
            "in": "query",
            "description": "List categories",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "g",
            "in": "query",
            "description": "List glasses",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "i",
            "in": "query",
            "description": "List ingredients",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "a",
            "in": "query",
            "description": "List alcoholic filters",
            "schema": {
              "type": "string"
            }
          }
        ],
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {}
  }
}