get_latest_meal
MealDB.get_latest_meal()
Retrieves the latest meal data from the API.
Returns
Name | Type | Description |
---|---|---|
list | list | A list containing the latest meal data, or a message indicating that the user needs to subscribe to access the endpoint. |
Raises
Name | Type | Description |
---|---|---|
httpx.HTTPError | Check httpx’s documentation for all possible exceptions. |
Note
This endpoint is only accessible with a subscription to The MealDB API. If you don’t possess a subscription a message is returned instead.