...

/

Filter Cocktails

Filter Cocktails

Learn how to filter the cocktails to get lists of specific types of cocktail.

The base URI https://www.thecocktaildb.com/api/json/v1/1/filter.php provides us the names, IDs, and the link for the image of cocktails. The information obtained from this endpoint can be used to search for the recipes for various cocktails.

We use any of the following four filters to get this information:

  • Category of cocktail
  • Type of glass
  • Ingredients used
  • Alcohol content

Note: We can use the endpoint discussed in the previous lesson to get the input data for this endpoint. ...