# TheCocktailDB

> Look up cocktails in TheCocktailDB, the open, crowd-sourced drinks database. Search by name or first letter, pull a drink's full recipe with its ingredients, measures, glassware, photos and instructions in seven languages, and browse by ingredient, category, glass or alcoholic status (including a 'what can I make with these' search across several ingredients at once). Also lists every category, glass, ingredient and alcoholic classification, and serves random, latest and popular drink picks.

App · Food & Drink · 19 actions. Web page: https://docs.lodol.com/docs/integrations/thecocktaildb

## Actions

### Get a cocktail

Get one drink's complete recipe by its id: category, glass, IBA class, tags, every ingredient paired with its measure, instructions in seven languages, and photo URLs in three sizes. This is the step to run after a filter or search, which return summaries only.

**Inputs**

- Cocktail ID (`drink_id`, text, required): TheCocktailDB's id for the drink, as returned by any search or filter step, for example 11007.

**Outputs**

- `alcoholic` (text): Alcoholic classification: Alcoholic, Non alcoholic or Optional alcohol.
- `alternate_name` (text): Another name the drink goes by. Null for most drinks.
- `category` (text): The category it is filed under, e.g. Ordinary Drink.
- `creative_commons_confirmed` (text): Whether the photo's Creative Commons licence is confirmed: Yes or No.
- `date_modified` (text): When the record last changed, YYYY-MM-DD HH:MM:SS.
- `glass` (text): The glass it is served in, e.g. Cocktail glass.
- `iba_category` (text): Its class on the IBA's official cocktail list, e.g. Contemporary Classics. Null for drinks the IBA does not list.
- `id` (text): TheCocktailDB's id for the drink, e.g. 11007. Get a cocktail takes it.
- `image_attribution` (text): Who to credit for the photo. Null when unrecorded.
- `image_source` (text): Where the photo came from. Null when unrecorded.
- `ingredients` (list): The recipe, in the order it is poured. A measure can be empty while the ingredient is real (the salt on a Margarita's rim has no measure).
- `instructions` (text): How to make it, in English.
- `instructions_by_language` (object): The same instructions in every language TheCocktailDB has them in, keyed en, es, de, fr, it, zh_hans, zh_hant. Only the languages this drink carries are present.
- `name` (text): Drink name, e.g. Margarita.
- `tags` (list): Tags such as IBA or ContemporaryClassic.
- `thumbnail` (text): Full-size drink photo. Null when there is no photo.
- `thumbnail_large` (text): 500x500 photo.
- `thumbnail_medium` (text): 350x350 photo.
- `thumbnail_small` (text): 200x200 photo.
- `url` (text): The drink's page on TheCocktailDB. Link to it when you show the recipe.
- `video_url` (text): A video of the drink being made. Null for most drinks.

**Example output**

```json
{
  "alcoholic": "Alcoholic",
  "alternate_name": null,
  "category": "Ordinary Drink",
  "creative_commons_confirmed": "Yes",
  "date_modified": "2015-08-18 14:42:59",
  "glass": "Cocktail glass",
  "iba_category": "Contemporary Classics",
  "id": "11007",
  "image_attribution": "Cocktailmarler",
  "image_source": "https://commons.wikimedia.org/wiki/File:Klassiche_Margarita.jpg",
  "ingredients": [
    {
      "measure": "1 1/2 oz",
      "name": "Tequila"
    },
    {
      "measure": "1/2 oz",
      "name": "Triple sec"
    },
    {
      "measure": "1 oz",
      "name": "Lime juice"
    },
    {
      "measure": null,
      "name": "Salt"
    }
  ],
  "instructions": "Rub the rim of the glass with the lime slice to make the salt stick to it. Shake the other ingredients with ice, then carefully pour into the glass.",
  "instructions_by_language": {
    "en": "Rub the rim of the glass with the lime slice to make the salt stick to it. Shake the other ingredients with ice, then carefully pour into the glass.",
    "es": "Frota el borde del vaso con la rodaja de lima para que la sal se adhiera a el. Agite los demas ingredientes con hielo y viertalos con cuidado en el vaso."
  },
  "name": "Margarita",
  "tags": [
    "IBA",
    "ContemporaryClassic"
  ],
  "thumbnail": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg",
  "thumbnail_large": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/large",
  "thumbnail_medium": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/medium",
  "thumbnail_small": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/small",
  "url": "https://www.thecocktaildb.com/drink/11007",
  "video_url": null
}
```

### Get a random cocktail

Get one randomly chosen drink in full: a ready-made 'cocktail of the day' pick, complete with ingredients, measures and instructions.

**Inputs**: None.

**Outputs**

- `alcoholic` (text): Alcoholic classification: Alcoholic, Non alcoholic or Optional alcohol.
- `alternate_name` (text): Another name the drink goes by. Null for most drinks.
- `category` (text): The category it is filed under, e.g. Ordinary Drink.
- `creative_commons_confirmed` (text): Whether the photo's Creative Commons licence is confirmed: Yes or No.
- `date_modified` (text): When the record last changed, YYYY-MM-DD HH:MM:SS.
- `glass` (text): The glass it is served in, e.g. Cocktail glass.
- `iba_category` (text): Its class on the IBA's official cocktail list, e.g. Contemporary Classics. Null for drinks the IBA does not list.
- `id` (text): TheCocktailDB's id for the drink, e.g. 11007. Get a cocktail takes it.
- `image_attribution` (text): Who to credit for the photo. Null when unrecorded.
- `image_source` (text): Where the photo came from. Null when unrecorded.
- `ingredients` (list): The recipe, in the order it is poured. A measure can be empty while the ingredient is real (the salt on a Margarita's rim has no measure).
- `instructions` (text): How to make it, in English.
- `instructions_by_language` (object): The same instructions in every language TheCocktailDB has them in, keyed en, es, de, fr, it, zh_hans, zh_hant. Only the languages this drink carries are present.
- `name` (text): Drink name, e.g. Margarita.
- `tags` (list): Tags such as IBA or ContemporaryClassic.
- `thumbnail` (text): Full-size drink photo. Null when there is no photo.
- `thumbnail_large` (text): 500x500 photo.
- `thumbnail_medium` (text): 350x350 photo.
- `thumbnail_small` (text): 200x200 photo.
- `url` (text): The drink's page on TheCocktailDB. Link to it when you show the recipe.
- `video_url` (text): A video of the drink being made. Null for most drinks.

**Example output**

```json
{
  "alcoholic": "Alcoholic",
  "alternate_name": null,
  "category": "Ordinary Drink",
  "creative_commons_confirmed": "Yes",
  "date_modified": "2015-08-18 14:42:59",
  "glass": "Cocktail glass",
  "iba_category": "Contemporary Classics",
  "id": "11007",
  "image_attribution": "Cocktailmarler",
  "image_source": "https://commons.wikimedia.org/wiki/File:Klassiche_Margarita.jpg",
  "ingredients": [
    {
      "measure": "1 1/2 oz",
      "name": "Tequila"
    },
    {
      "measure": "1/2 oz",
      "name": "Triple sec"
    },
    {
      "measure": "1 oz",
      "name": "Lime juice"
    },
    {
      "measure": null,
      "name": "Salt"
    }
  ],
  "instructions": "Rub the rim of the glass with the lime slice to make the salt stick to it. Shake the other ingredients with ice, then carefully pour into the glass.",
  "instructions_by_language": {
    "en": "Rub the rim of the glass with the lime slice to make the salt stick to it. Shake the other ingredients with ice, then carefully pour into the glass.",
    "es": "Frota el borde del vaso con la rodaja de lima para que la sal se adhiera a el. Agite los demas ingredientes con hielo y viertalos con cuidado en el vaso."
  },
  "name": "Margarita",
  "tags": [
    "IBA",
    "ContemporaryClassic"
  ],
  "thumbnail": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg",
  "thumbnail_large": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/large",
  "thumbnail_medium": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/medium",
  "thumbnail_small": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/small",
  "url": "https://www.thecocktaildb.com/drink/11007",
  "video_url": null
}
```

### Get a random selection of cocktails

Get a handful of randomly chosen drinks in full, for a weekly 'try these' round-up. A Premium API key returns ten; the free test key returns one.

**Inputs**: None.

**Outputs**

- `count` (number): How many records were returned.
- `drinks` (list): The drinks drawn, each with its full recipe.

**Example output**

```json
{
  "count": 1,
  "drinks": [
    {
      "alcoholic": "Alcoholic",
      "alternate_name": null,
      "category": "Ordinary Drink",
      "creative_commons_confirmed": "Yes",
      "date_modified": "2015-08-18 14:42:59",
      "glass": "Cocktail glass",
      "iba_category": "Contemporary Classics",
      "id": "11007",
      "image_attribution": "Cocktailmarler",
      "image_source": "https://commons.wikimedia.org/wiki/File:Klassiche_Margarita.jpg",
      "ingredients": [
        {
          "measure": "1 1/2 oz",
          "name": "Tequila"
        },
        {
          "measure": "1/2 oz",
          "name": "Triple sec"
        },
        {
          "measure": "1 oz",
          "name": "Lime juice"
        },
        {
          "measure": null,
          "name": "Salt"
        }
      ],
      "instructions": "Rub the rim of the glass with the lime slice to make the salt stick to it. Shake the other ingredients with ice, then carefully pour into the glass.",
      "instructions_by_language": {
        "en": "Rub the rim of the glass with the lime slice to make the salt stick to it. Shake the other ingredients with ice, then carefully pour into the glass.",
        "es": "Frota el borde del vaso con la rodaja de lima para que la sal se adhiera a el. Agite los demas ingredientes con hielo y viertalos con cuidado en el vaso."
      },
      "name": "Margarita",
      "tags": [
        "IBA",
        "ContemporaryClassic"
      ],
      "thumbnail": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg",
      "thumbnail_large": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/large",
      "thumbnail_medium": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/medium",
      "thumbnail_small": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/small",
      "url": "https://www.thecocktaildb.com/drink/11007",
      "video_url": null
    }
  ]
}
```

### Get an ingredient

Get one ingredient by its id: what it is, its type, whether it is alcoholic, its ABV and its artwork in four sizes.

**Inputs**

- Ingredient ID (`ingredient_id`, text, required): TheCocktailDB's id for the ingredient, as returned by Search ingredients, for example 552.

**Outputs**

- `abv` (number): Alcohol by volume, as a percentage. Null when unrecorded or not alcoholic.
- `description` (text): What it is, in a paragraph or two. Null for many ingredients.
- `id` (text): TheCocktailDB's id for the ingredient, e.g. 552. Get an ingredient takes it.
- `is_alcoholic` (true/false): Whether it contains alcohol. Null when unrecorded.
- `name` (text): Ingredient name, e.g. Vodka.
- `thumbnail` (text): 700x700 ingredient photo.
- `thumbnail_large` (text): 700x700 photo.
- `thumbnail_medium` (text): 350x350 photo.
- `thumbnail_small` (text): 100x100 photo.
- `type` (text): What kind of ingredient it is, e.g. Vodka or Cordial.
- `url` (text): The ingredient's page on TheCocktailDB.

**Example output**

```json
{
  "abv": 40.0,
  "description": "Vodka is a distilled beverage composed primarily of water and ethanol, sometimes with traces of impurities and flavorings.",
  "id": "1",
  "is_alcoholic": true,
  "name": "Vodka",
  "thumbnail": "https://www.thecocktaildb.com/images/ingredients/Vodka.png",
  "thumbnail_large": "https://www.thecocktaildb.com/images/ingredients/Vodka.png/large",
  "thumbnail_medium": "https://www.thecocktaildb.com/images/ingredients/Vodka.png/medium",
  "thumbnail_small": "https://www.thecocktaildb.com/images/ingredients/Vodka.png/small",
  "type": "Vodka",
  "url": "https://www.thecocktaildb.com/ingredient/1"
}
```

### List alcoholic classifications

List the alcoholic classifications drinks are filed under (Alcoholic, Non alcoholic, Optional alcohol), ready to feed into the by-alcoholic-status filter.

**Inputs**: None.

**Outputs**

- `alcoholic_filters` (list): The classifications. List cocktails by alcoholic status takes one of these.
- `count` (number): How many records were returned.

**Example output**

```json
{
  "alcoholic_filters": [
    "Alcoholic",
    "Non alcoholic",
    "Optional alcohol"
  ],
  "count": 3
}
```

### List categories

List the categories TheCocktailDB files drinks under, ready to loop over or feed straight into the by-category filter.

**Inputs**: None.

**Outputs**

- `categories` (list): The category names. List cocktails by category takes one of these.
- `count` (number): How many records were returned.

**Example output**

```json
{
  "categories": [
    "Cocktail",
    "Ordinary Drink",
    "Shot"
  ],
  "count": 3
}
```

### List cocktails by alcoholic status

List the drinks in one alcoholic class: Alcoholic, Non alcoholic or Optional alcohol. The way to pull a mocktail list for an event.

**Inputs**

- Alcoholic status (`alcoholic`, text, required): Which class of drinks to list. The list comes from TheCocktailDB, so the spelling always matches.

**Outputs**

- `alcoholic` (text): The classification that was filtered on.
- `count` (number): How many records were returned.
- `drinks` (list): The matching drinks as name/id/photo summaries. Feed an id into Get a cocktail for the recipe.

**Example output**

```json
{
  "alcoholic": "Non alcoholic",
  "count": 1,
  "drinks": [
    {
      "id": "11007",
      "name": "Margarita",
      "thumbnail": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg",
      "thumbnail_large": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/large",
      "thumbnail_medium": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/medium",
      "thumbnail_small": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/small",
      "url": "https://www.thecocktaildb.com/drink/11007"
    }
  ]
}
```

### List cocktails by category

List every drink in one category, such as Ordinary Drink, Cocktail, Shot or Punch / Party Drink, as summaries you can chain into Get a cocktail.

**Inputs**

- Category (`category`, text, required): The category to list. The list comes from TheCocktailDB, so the spelling always matches.

**Outputs**

- `category` (text): The category that was filtered on.
- `count` (number): How many records were returned.
- `drinks` (list): The matching drinks as name/id/photo summaries. Feed an id into Get a cocktail for the recipe.

**Example output**

```json
{
  "category": "Ordinary Drink",
  "count": 1,
  "drinks": [
    {
      "id": "11007",
      "name": "Margarita",
      "thumbnail": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg",
      "thumbnail_large": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/large",
      "thumbnail_medium": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/medium",
      "thumbnail_small": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/small",
      "url": "https://www.thecocktaildb.com/drink/11007"
    }
  ]
}
```

### List cocktails by first letter

List every cocktail whose name begins with one letter or digit, each with its full recipe. Useful for walking the whole database a letter at a time.

**Inputs**

- First character (`letter`, text, required): The letter or digit drink names must start with. One of: `A`, `B`, `C`, `D`, `E`, `F`, `G`, `H`, `I`, `J`, and 26 more.

**Outputs**

- `count` (number): How many records were returned.
- `drinks` (list): The matching drinks, each with its full recipe.
- `letter` (text): The character that was listed, upper-cased.

**Example output**

```json
{
  "count": 1,
  "drinks": [
    {
      "alcoholic": "Alcoholic",
      "alternate_name": null,
      "category": "Ordinary Drink",
      "creative_commons_confirmed": "Yes",
      "date_modified": "2015-08-18 14:42:59",
      "glass": "Cocktail glass",
      "iba_category": "Contemporary Classics",
      "id": "11007",
      "image_attribution": "Cocktailmarler",
      "image_source": "https://commons.wikimedia.org/wiki/File:Klassiche_Margarita.jpg",
      "ingredients": [
        {
          "measure": "1 1/2 oz",
          "name": "Tequila"
        },
        {
          "measure": "1/2 oz",
          "name": "Triple sec"
        },
        {
          "measure": "1 oz",
          "name": "Lime juice"
        },
        {
          "measure": null,
          "name": "Salt"
        }
      ],
      "instructions": "Rub the rim of the glass with the lime slice to make the salt stick to it. Shake the other ingredients with ice, then carefully pour into the glass.",
      "instructions_by_language": {
        "en": "Rub the rim of the glass with the lime slice to make the salt stick to it. Shake the other ingredients with ice, then carefully pour into the glass.",
        "es": "Frota el borde del vaso con la rodaja de lima para que la sal se adhiera a el. Agite los demas ingredientes con hielo y viertalos con cuidado en el vaso."
      },
      "name": "Margarita",
      "tags": [
        "IBA",
        "ContemporaryClassic"
      ],
      "thumbnail": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg",
      "thumbnail_large": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/large",
      "thumbnail_medium": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/medium",
      "thumbnail_small": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/small",
      "url": "https://www.thecocktaildb.com/drink/11007",
      "video_url": null
    }
  ],
  "letter": "M"
}
```

### List cocktails by glass

List every drink served in one glass, such as a Cocktail glass, Highball glass or Champagne flute: the way to build a menu around the glassware you actually own.

**Inputs**

- Glass (`glass`, text, required): The glass to list drinks for. The list comes from TheCocktailDB, so the spelling always matches.

**Outputs**

- `count` (number): How many records were returned.
- `drinks` (list): The matching drinks as name/id/photo summaries. Feed an id into Get a cocktail for the recipe.
- `glass` (text): The glass that was filtered on.

**Example output**

```json
{
  "count": 1,
  "drinks": [
    {
      "id": "11007",
      "name": "Margarita",
      "thumbnail": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg",
      "thumbnail_large": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/large",
      "thumbnail_medium": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/medium",
      "thumbnail_small": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/small",
      "url": "https://www.thecocktaildb.com/drink/11007"
    }
  ],
  "glass": "Cocktail glass"
}
```

### List cocktails by ingredient

List every cocktail made with one ingredient, as summaries you can chain into Get a cocktail for the recipe. Connected with the free test key TheCocktailDB returns a single sample drink here; a Premium API key returns them all.

**Inputs**

- Ingredient (`ingredient`, text, required): The ingredient the drink must contain. The list comes from TheCocktailDB, so the spelling always matches.

**Outputs**

- `count` (number): How many records were returned.
- `drinks` (list): The matching drinks as name/id/photo summaries. Feed an id into Get a cocktail for the recipe.
- `ingredient` (text): The ingredient that was filtered on.

**Example output**

```json
{
  "count": 1,
  "drinks": [
    {
      "id": "11007",
      "name": "Margarita",
      "thumbnail": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg",
      "thumbnail_large": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/large",
      "thumbnail_medium": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/medium",
      "thumbnail_small": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/small",
      "url": "https://www.thecocktaildb.com/drink/11007"
    }
  ],
  "ingredient": "Gin"
}
```

### List cocktails by several ingredients

List the cocktails that contain every one of the ingredients you pick: the 'what can I make with what's on the shelf' search. Needs a Premium API key to return the full set; the free test key returns a sample.

**Inputs**

- Ingredients (`ingredients`, list, required): Every ingredient a drink must contain. Pick at least one; the more you add, the fewer drinks match.

**Outputs**

- `count` (number): How many records were returned.
- `drinks` (list): The matching drinks as name/id/photo summaries. Feed an id into Get a cocktail for the recipe.
- `ingredients` (list): The ingredients that were filtered on.

**Example output**

```json
{
  "count": 1,
  "drinks": [
    {
      "id": "12418",
      "name": "Turf Cocktail",
      "thumbnail": "https://www.thecocktaildb.com/images/media/drink/utypqq1441554367.jpg",
      "thumbnail_large": "https://www.thecocktaildb.com/images/media/drink/utypqq1441554367.jpg/large",
      "thumbnail_medium": "https://www.thecocktaildb.com/images/media/drink/utypqq1441554367.jpg/medium",
      "thumbnail_small": "https://www.thecocktaildb.com/images/media/drink/utypqq1441554367.jpg/small",
      "url": "https://www.thecocktaildb.com/drink/12418"
    }
  ],
  "ingredients": [
    "Dry Vermouth",
    "Gin",
    "Anis"
  ]
}
```

### List glasses

List every glass TheCocktailDB serves drinks in, ready to loop over or feed straight into the by-glass filter.

**Inputs**: None.

**Outputs**

- `count` (number): How many records were returned.
- `glasses` (list): The glass names. List cocktails by glass takes one of these.

**Example output**

```json
{
  "count": 3,
  "glasses": [
    "Cocktail glass",
    "Collins glass",
    "Highball glass"
  ]
}
```

### List ingredients

List every ingredient TheCocktailDB knows, each with its artwork URLs in four sizes: the bar inventory the by-ingredient filters draw on. The free test key returns the first 100; a Premium API key returns them all.

**Inputs**: None.

**Outputs**

- `count` (number): How many records were returned.
- `ingredients` (list): The ingredients, each with its artwork. List cocktails by ingredient takes one of these names.

**Example output**

```json
{
  "count": 1,
  "ingredients": [
    {
      "name": "Vodka",
      "thumbnail": "https://www.thecocktaildb.com/images/ingredients/Vodka.png",
      "thumbnail_large": "https://www.thecocktaildb.com/images/ingredients/Vodka.png/large",
      "thumbnail_medium": "https://www.thecocktaildb.com/images/ingredients/Vodka.png/medium",
      "thumbnail_small": "https://www.thecocktaildb.com/images/ingredients/Vodka.png/small"
    }
  ]
}
```

### List popular cocktails

Get the drinks TheCocktailDB currently features as popular, in full: a ready-made 'trending cocktails' list.

**Inputs**: None.

**Outputs**

- `count` (number): How many records were returned.
- `drinks` (list): The popular drinks, each with its full recipe.

**Example output**

```json
{
  "count": 1,
  "drinks": [
    {
      "alcoholic": "Alcoholic",
      "alternate_name": null,
      "category": "Ordinary Drink",
      "creative_commons_confirmed": "Yes",
      "date_modified": "2015-08-18 14:42:59",
      "glass": "Cocktail glass",
      "iba_category": "Contemporary Classics",
      "id": "11007",
      "image_attribution": "Cocktailmarler",
      "image_source": "https://commons.wikimedia.org/wiki/File:Klassiche_Margarita.jpg",
      "ingredients": [
        {
          "measure": "1 1/2 oz",
          "name": "Tequila"
        },
        {
          "measure": "1/2 oz",
          "name": "Triple sec"
        },
        {
          "measure": "1 oz",
          "name": "Lime juice"
        },
        {
          "measure": null,
          "name": "Salt"
        }
      ],
      "instructions": "Rub the rim of the glass with the lime slice to make the salt stick to it. Shake the other ingredients with ice, then carefully pour into the glass.",
      "instructions_by_language": {
        "en": "Rub the rim of the glass with the lime slice to make the salt stick to it. Shake the other ingredients with ice, then carefully pour into the glass.",
        "es": "Frota el borde del vaso con la rodaja de lima para que la sal se adhiera a el. Agite los demas ingredientes con hielo y viertalos con cuidado en el vaso."
      },
      "name": "Margarita",
      "tags": [
        "IBA",
        "ContemporaryClassic"
      ],
      "thumbnail": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg",
      "thumbnail_large": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/large",
      "thumbnail_medium": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/medium",
      "thumbnail_small": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/small",
      "url": "https://www.thecocktaildb.com/drink/11007",
      "video_url": null
    }
  ]
}
```

### List recently added cocktails

Get the recently added drinks from TheCocktailDB's V2 feed, in full. It is a separate endpoint from 'the latest cocktails' and currently serves the same drinks.

**Inputs**: None.

**Outputs**

- `count` (number): How many records were returned.
- `drinks` (list): The recently added drinks, each with its full recipe.

**Example output**

```json
{
  "count": 1,
  "drinks": [
    {
      "alcoholic": "Alcoholic",
      "alternate_name": null,
      "category": "Ordinary Drink",
      "creative_commons_confirmed": "Yes",
      "date_modified": "2015-08-18 14:42:59",
      "glass": "Cocktail glass",
      "iba_category": "Contemporary Classics",
      "id": "11007",
      "image_attribution": "Cocktailmarler",
      "image_source": "https://commons.wikimedia.org/wiki/File:Klassiche_Margarita.jpg",
      "ingredients": [
        {
          "measure": "1 1/2 oz",
          "name": "Tequila"
        },
        {
          "measure": "1/2 oz",
          "name": "Triple sec"
        },
        {
          "measure": "1 oz",
          "name": "Lime juice"
        },
        {
          "measure": null,
          "name": "Salt"
        }
      ],
      "instructions": "Rub the rim of the glass with the lime slice to make the salt stick to it. Shake the other ingredients with ice, then carefully pour into the glass.",
      "instructions_by_language": {
        "en": "Rub the rim of the glass with the lime slice to make the salt stick to it. Shake the other ingredients with ice, then carefully pour into the glass.",
        "es": "Frota el borde del vaso con la rodaja de lima para que la sal se adhiera a el. Agite los demas ingredientes con hielo y viertalos con cuidado en el vaso."
      },
      "name": "Margarita",
      "tags": [
        "IBA",
        "ContemporaryClassic"
      ],
      "thumbnail": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg",
      "thumbnail_large": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/large",
      "thumbnail_medium": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/medium",
      "thumbnail_small": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/small",
      "url": "https://www.thecocktaildb.com/drink/11007",
      "video_url": null
    }
  ]
}
```

### List the latest cocktails

Get the drinks most recently added to TheCocktailDB, in full. Run it on a schedule to post whatever is new.

**Inputs**: None.

**Outputs**

- `count` (number): How many records were returned.
- `drinks` (list): The newest drinks, each with its full recipe.

**Example output**

```json
{
  "count": 1,
  "drinks": [
    {
      "alcoholic": "Alcoholic",
      "alternate_name": null,
      "category": "Ordinary Drink",
      "creative_commons_confirmed": "Yes",
      "date_modified": "2015-08-18 14:42:59",
      "glass": "Cocktail glass",
      "iba_category": "Contemporary Classics",
      "id": "11007",
      "image_attribution": "Cocktailmarler",
      "image_source": "https://commons.wikimedia.org/wiki/File:Klassiche_Margarita.jpg",
      "ingredients": [
        {
          "measure": "1 1/2 oz",
          "name": "Tequila"
        },
        {
          "measure": "1/2 oz",
          "name": "Triple sec"
        },
        {
          "measure": "1 oz",
          "name": "Lime juice"
        },
        {
          "measure": null,
          "name": "Salt"
        }
      ],
      "instructions": "Rub the rim of the glass with the lime slice to make the salt stick to it. Shake the other ingredients with ice, then carefully pour into the glass.",
      "instructions_by_language": {
        "en": "Rub the rim of the glass with the lime slice to make the salt stick to it. Shake the other ingredients with ice, then carefully pour into the glass.",
        "es": "Frota el borde del vaso con la rodaja de lima para que la sal se adhiera a el. Agite los demas ingredientes con hielo y viertalos con cuidado en el vaso."
      },
      "name": "Margarita",
      "tags": [
        "IBA",
        "ContemporaryClassic"
      ],
      "thumbnail": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg",
      "thumbnail_large": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/large",
      "thumbnail_medium": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/medium",
      "thumbnail_small": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/small",
      "url": "https://www.thecocktaildb.com/drink/11007",
      "video_url": null
    }
  ]
}
```

### Search cocktails

Search TheCocktailDB for drinks whose name contains your search text, and get each match in full: category, glass, the ingredient list with measures, instructions in seven languages, and photos in three sizes.

**Inputs**

- Cocktail name (`name`, text, required): Full or partial drink name, for example 'Margarita' or 'mojito'.

**Outputs**

- `count` (number): How many records were returned.
- `drinks` (list): The matching drinks, each with its full recipe.
- `query` (text): The text that was searched for.

**Example output**

```json
{
  "count": 1,
  "drinks": [
    {
      "alcoholic": "Alcoholic",
      "alternate_name": null,
      "category": "Ordinary Drink",
      "creative_commons_confirmed": "Yes",
      "date_modified": "2015-08-18 14:42:59",
      "glass": "Cocktail glass",
      "iba_category": "Contemporary Classics",
      "id": "11007",
      "image_attribution": "Cocktailmarler",
      "image_source": "https://commons.wikimedia.org/wiki/File:Klassiche_Margarita.jpg",
      "ingredients": [
        {
          "measure": "1 1/2 oz",
          "name": "Tequila"
        },
        {
          "measure": "1/2 oz",
          "name": "Triple sec"
        },
        {
          "measure": "1 oz",
          "name": "Lime juice"
        },
        {
          "measure": null,
          "name": "Salt"
        }
      ],
      "instructions": "Rub the rim of the glass with the lime slice to make the salt stick to it. Shake the other ingredients with ice, then carefully pour into the glass.",
      "instructions_by_language": {
        "en": "Rub the rim of the glass with the lime slice to make the salt stick to it. Shake the other ingredients with ice, then carefully pour into the glass.",
        "es": "Frota el borde del vaso con la rodaja de lima para que la sal se adhiera a el. Agite los demas ingredientes con hielo y viertalos con cuidado en el vaso."
      },
      "name": "Margarita",
      "tags": [
        "IBA",
        "ContemporaryClassic"
      ],
      "thumbnail": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg",
      "thumbnail_large": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/large",
      "thumbnail_medium": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/medium",
      "thumbnail_small": "https://www.thecocktaildb.com/images/media/drink/5noda61589575158.jpg/small",
      "url": "https://www.thecocktaildb.com/drink/11007",
      "video_url": null
    }
  ],
  "query": "margarita"
}
```

### Search ingredients

Search the ingredient database by name and get what each one is: its description, its type, whether it contains alcohol, its ABV and its artwork in four sizes.

**Inputs**

- Ingredient name (`ingredient`, text, required): Full or partial ingredient name, for example 'vodka' or 'vermouth'.

**Outputs**

- `count` (number): How many records were returned.
- `ingredients` (list): The matching ingredients.
- `query` (text): The text that was searched for.

**Example output**

```json
{
  "count": 1,
  "ingredients": [
    {
      "abv": 40.0,
      "description": "Vodka is a distilled beverage composed primarily of water and ethanol, sometimes with traces of impurities and flavorings.",
      "id": "1",
      "is_alcoholic": true,
      "name": "Vodka",
      "thumbnail": "https://www.thecocktaildb.com/images/ingredients/Vodka.png",
      "thumbnail_large": "https://www.thecocktaildb.com/images/ingredients/Vodka.png/large",
      "thumbnail_medium": "https://www.thecocktaildb.com/images/ingredients/Vodka.png/medium",
      "thumbnail_small": "https://www.thecocktaildb.com/images/ingredients/Vodka.png/small",
      "type": "Vodka",
      "url": "https://www.thecocktaildb.com/ingredient/1"
    }
  ],
  "query": "vodka"
}
```
