...

/

Search for a Cocktail Recipe or Ingredient

Search for a Cocktail Recipe or Ingredient

Learn how to use TheCocktailDB to search for the recipe of a cocktail or ingredient.

We can search for the recipe of a cocktail or ingredient using the base URI www.thecocktaildb.com/api/json/v1/1/search.php.

Query parameters

We can use these query parameters with this endpoint:

Parameters

Type

Category

Description

s

string

optional

This parameter is used to search for the recipe of a cocktail using its name.

f

char

optional

This parameter is used to get a list of cocktails using the first letter of the name of the cocktails.

i

string

optional

This parameter is used to search for an ingredient using its name.

We need to use at least one of these parameters with this endpoint. Calling it without any query parameters will return an error.

Search for the recipe of a cocktail

We search for the recipe of a cocktail using any of the following criteria:

  • By name
  • By the first
...