single_random_meal
MealDB.single_random_meal()Retrieves a single random meal from the MealDB API.
Returns
| Name | Type | Description |
|---|---|---|
| MealDetails | MealDetails object containing a random meal’s complete information. |
Raises
| Name | Type | Description |
|---|---|---|
| httpx.HTTPError | Check httpx’s documentation for all possible exceptions. | |
| httpx.HTTPStatusError | If the API returns a non-2xx status code. |