# Cocktail Recipe API

> Cocktail Recipe retrieves cocktail recipes by drink name or ingredient, providing measured ingredients, preparation instructions, and recommended glassware. Responses include serving categories and ingredient counts, with support for pulling random drinks.

**Endpoint:** `GET https://api.apiverve.com/v1/cocktail`  
**Category:** Food  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/cocktail

## Overview

A cocktail recipe API for looking up drinks by name, finding cocktails by ingredient, or pulling a random drink. Each match comes back in a structured format: the glass, the category such as before-dinner or after-dinner, every ingredient with its amount and unit, the garnish where there is one, and short preparation steps.

It suits bar and restaurant apps, home bartending and mixology tools, party planners, smart-speaker skills and recipe sites. Search "martini" to get every martini variation in the collection, search "gin" to see what you can make from one bottle, or use the random option for a drink-of-the-day feature.

The Free plan returns the full recipe for every match, including measurements, glassware, garnish, preparation and an ingredient count. Paid plans add an estimated strength for each cocktail, labelled strong, medium, light or mocktail, so you can filter a menu by how boozy a drink is without working it out from the ingredient list yourself.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/cocktail?name=martini" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | Yes | The name of the cocktail for which you want to get the recipe (e.g., martini). Spelling variants match: mai tai, old-fashioned, whisky sour, piña colada, aperol spritz. length 0-100 |

## Response fields

- `count` — number · Number of cocktails returned
- `filteredOn` — string · Which parameter the results were filtered by
  - `cocktails.0.name` — string · Name of the cocktail
  - `cocktails.0.glass` — string · Glass the cocktail is traditionally served in
  - `cocktails.0.category` — string · Category the cocktail belongs to, such as after dinner or pre-dinner
    - `cocktails.0.ingredients.0.unit` — string · Unit the measure is given in, such as cl or dash
    - `cocktails.0.ingredients.0.amount` — number · How much of the ingredient to use
    - `cocktails.0.ingredients.0.ingredient` — string · Name of the ingredient
  - `cocktails.0.ingredientCount` — number · Number of ingredients in the cocktail
  - `cocktails.0.estimatedStrength` — string · Alcohol strength estimate: strong, medium, light, or mocktail · (premium)
  - `cocktails.0.preparation` — string · How to make the cocktail

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "count": 5,
    "filteredOn": "name",
    "cocktails": [
      {
        "name": "Espresso Martini",
        "glass": "martini",
        "category": "After Dinner Cocktail",
        "ingredients": [
          {
            "unit": "cl",
            "amount": 5,
            "ingredient": "Vodka"
          },
          {
            "unit": "cl",
            "amount": 1,
            "ingredient": "Coffee liqueur",
            "label": "Kahlúa"
          },
          {
            "special": "Sugar syrup (according to individual preference of sweetness)"
          },
          {
            "special": "1 short strong Espresso"
          }
        ],
        "ingredientCount": 4,
        "estimatedStrength": "medium",
        "preparation": "Shake and strain into a chilled cocktail glass."
      },
      {
        "name": "Lemon Drop Martini",
        "glass": "martini",
        "category": "All Day Cocktail",
        "ingredients": [
          {
            "unit": "cl",
            "amount": 2.5,
            "ingredient": "Vodka",
            "label": "Citron Vodka"
          },
          {
            "unit": "cl",
            "amount": 2,
            "ingredient": "Triple Sec"
          },
          {
            "unit": "cl",
            "amount": 1.5,
            "ingredient": "Lemon juice"
          }
        ],
        "garnish": "Lemon slice",
        "preparation": "Shake and strain into a chilled cocktail glass rimmed with sugar."
      },
      {
        "name": "French Martini",
        "glass": "martini",
        "category": "Before Dinner Cocktail",
        "ingredients": [
          {
            "unit": "cl",
            "amount": 4.5,
            "ingredient": "Vodka"
          },
          {
            "unit": "cl",
            "amount": 1.5,
            "ingredient": "Raspberry liqueur"
          },
          {
            "unit": "cl",
            "amount": 1.5,
            "ingredient": "Pineapple juice"
          }
        ],
        "preparation": "Stir in mixing glass with ice cubes. Strain into chilled cocktail glass. Squeeze oil from lemon peel onto the drink."
      },
      {
        "name": "Dirty Martini",
        "glass": "martini",
        "category": "Before Dinner Cocktail",
        "ingredients": [
          {
            "unit": "cl",
            "amount": 6,
            "ingredient": "Vodka"
          },
          {
            "unit": "cl",
            "amount": 1,
            "ingredient": "Vermouth",
            "label": "Dry vermouth"
          },
          {
            "unit": "cl",
            "amount": 1,
            "ingredient": "Olive juice"
          }
        ],
        "garnish": "Green olive",
        "preparation": "Stir in mixing glass with ice cubes. Strain into chilled martini glass."
      },
      {
        "name": "Dry Martini",
        "glass": "martini",
        "category": "Before Dinner Cocktail",
        "ingredients": [
          {
            "unit": "cl",
            "amount": 6,
            "ingredient": "Gin"
          },
          {
            "unit": "cl",
            "amount": 1,
            "ingredient": "Vermouth",
            "label": "Dry vermouth"
          }
        ],
        "preparation": "Stir in mixing glass with ice cubes. Strain into chilled martini glass. Squeeze oil from lemon peel onto the drink, or garnish with olive."
      }
    ]
  }
}
```

## Use cases

- **Bar Inventory Matching** — Match available spirits against the ingredient search to show bartenders which drinks they can prepare with current bar stock.
- **Digital Drink Menus** — Hospitality venues display drink preparation instructions and specific glassware recommendations directly on contactless tablet menus for guests.
- **Drink of the Day** — To drive customer engagement, lifestyle apps fetch a random cocktail recipe each morning to feature on their home screen.
- **Event Menu Planning** — Catering planners look up cocktail categories and measured ingredients to calculate supply quantities needed for upcoming wedding receptions.

## SDKs

- **npm** — `npm install @apiverve/cocktail` (https://www.npmjs.com/package/@apiverve/cocktail)
- **PyPI** — `pip install apiverve-cocktail` (https://pypi.org/project/apiverve-cocktail/)
- **NuGet** — `dotnet add package APIVerve.API.CocktailRecipe` (https://www.nuget.org/packages/APIVerve.API.CocktailRecipe)
- **Source** — https://github.com/apiverve/cocktail-api

## More

- Full reference: https://docs.apiverve.com/ref/cocktail
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
