filter_by_ingredient

MealDB.filter_by_ingredient(ingredient)

Retrieves meals containing a specific ingredient.

Parameters

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

Returns

Name Type Description
MealList MealList object containing meal summaries that include the specified ingredient.

Raises

Name Type Description
httpx.HTTPError Check httpx’s documentation for all possible exceptions.
httpx.HTTPStatusError If the API returns a non-2xx status code.