Filter Meals
Learn how to filter the meals to get lists of specific types of meals.
We'll cover the following
Filtering allows us to group resources using different conditions. This makes it easier for the user to get a specific type of resource. In this lesson, we’ll look at how to use the filters provided by TheMealDB to fetch information about specific types of meals.
Use available filters
The base URI, https://www.themealdb.com/api/json/v1/1/filter.php
, provides us with the names, IDs, and the link for the images of meals. We can use the information obtained from this endpoint to search for the recipes for the meals.
We use these criteria to filter the meals:
- Categories
- Cuisines
- Ingredients
Request parameters
We can use the following query parameters with this endpoint:
Get hands-on with 1200+ tech skills courses.