filter_by_category

MealDB.filter_by_category(category)

Retrieves a list of meals that belong to a specific category from the MealDB API.

Parameters

Name Type Description Default
category str The category to filter by. (e.g. Seafood) required

Returns

Name Type Description
list list A list of dictionaries containing the meals that belong to the specified category.

Raises

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