MealDB
MealDB(api_key)Client for interacting with TheMealDB API.
Attributes
| Name | Type | Description |
|---|---|---|
| api_key | The API key for authentication. | |
| base_url | The base URL for API requests. |
Methods
| Name | Description |
|---|---|
| filter_by_area | Retrieves meals from a specific geographical area/cuisine. |
| filter_by_category | Retrieves meals belonging to a specific category. |
| filter_by_ingredient | Retrieves meals containing a specific ingredient. |
| get_ingredient_image | Fetches and saves a full-size ingredient image locally. |
| get_ingredient_image_small | Fetches and saves a small-size ingredient image locally. |
| get_latest_meal | Retrieves the latest meal data from the API. |
| get_meal_by_name | Retrieves detailed meal information by searching for a meal name. |
| list_all | Retrieves all categories, areas, and ingredients in a single call. |
| list_all_areas | Retrieves all available geographical areas/cuisines. |
| list_all_categories | Retrieves a simple list of all category names. |
| list_all_ingredients | Retrieves all available ingredients. |
| list_all_meals | Retrieves meals starting with a specific letter. |
| list_meal_categories | Retrieves detailed information about all meal categories. |
| meal_details_by_id | Retrieves detailed meal information by meal ID. |
| single_random_meal | Retrieves a single random meal from the MealDB API. |