Lookup Cocktails or Ingredients Using IDs

Learn how we can use the database IDs to look up cocktails or ingredients.

TheCocktailDB API provides us with an endpoint with which we can search for the cocktails or ingredients using the database IDs. The base URI for this endpoint is https://www.thecocktaildb.com/api/json/v1/1/lookup.php.

Note: We can obtain these IDs using the endpoints discussed in the previous lesson.

Query parameter

We can use any one of the following query parameters with this endpoint:

Get hands-on with 1200+ tech skills courses.