filter_by_ingredient

MealDB.filter_by_ingredient(ingredient)

Retrieves a list of meals that include a specific ingredient from the MealDB API.

Parameters

Name Type Description Default
ingredient str The ingredient to filter by (e.g. Chicken, Salmon, Beef). required

Returns

Name Type Description
list list A list of dictionaries containing the meals that include the specified ingredient.

Raises

Name Type Description
httpx.HTTPError Check httpx’s documentation for all possible exceptions.