...

/

Fetch the List of Available Filters

Fetch the List of Available Filters

Learn how to get the lists of available categories, glasses, ingredients, and alcoholic filters in the database.

TheCocktailDB API provides us an endpoint to get the lists of items that can be used to filter the cocktails. The base URI of this endpoint is https://www.thecocktaildb.com/api/json/v1/1/list.php. This endpoint provides four types of lists:

  1. Categories list
  2. Glasses list
  3. Ingredients list
  4. Alcoholic filters list

Query parameters

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

Parameters

Type

Category

Description

c

string

optional

This parameter is used to get all the available categories.

g

string

optional

This parameter gives us all the available glasses in the database.

i

string

optional

This parameter is used to get all available ingredients from the database.

a

string

optional

This parameter is used to get the list of available alcoholic filters.

We need to use at least one of these parameters with this ...