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:
- Categories list
- Glasses list
- Ingredients list
- Alcoholic filters list
Query parameters
We can use any of the following query parameters with this endpoint:
Parameters | Type | Category | Description |
| string | optional | This parameter is used to get all the available categories. |
| string | optional | This parameter gives us all the available glasses in the database. |
| string | optional | This parameter is used to get all available ingredients from the database. |
| 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 ...