get_ingredients

models.MealDetails.get_ingredients(meal_index=0)

Extract ingredients and measurements from a specific meal.

Parameters

Name Type Description Default
meal_index int Index of the meal to extract ingredients from. Defaults to 0. 0

Returns

Name Type Description
List[Dict[str, str]] List of ingredient dictionaries with ‘name’ and ‘measure’ keys.
List[Dict[str, str]] Empty list if index is invalid.