get_latest_meal

MealDB.get_latest_meal()

Retrieves the latest meal data from the API.

Returns

Name Type Description
Union[str, list] String message if subscription is required, otherwise MealDetails object containing the latest meal data.

Raises

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

Note

This endpoint requires a subscription to The MealDB API. Without a subscription, a message is returned instead of meal data.