...

/

Request and Response Structure

Request and Response Structure

Learn about the request and response structure of TheCocktailDB API.

Request structure

The request for TheCocktailDB API contains the endpoint the user wants to call. Each endpoint serves a different function. Here is a list of the base URLs which can be used:

Function

Base URI

Search cocktails by ingredient, first letter, or name

www.thecocktaildb.com/api/json/v1/1/search.php

Lookup cocktails or ingredients by database IDs

www.thecocktaildb.com/api/json/v1/1/lookup.php

Get a random cocktail recipe

www.thecocktaildb.com/api/json/v1/1/random.php

Filter cocktails by ingredients, alcoholic filters, categories, or glass type

www.thecocktaildb.com/api/json/v1/1/filter.php

List the available categories, glasses, ingredients, or alcoholic filters

www.thecocktaildb.com/api/json/v1/1/list.php

Note: ...