v1

latestOpenAPI 3.0.3raw.githubusercontent.com2024-10-2916802.4 MB
📢 Public APIs

Get a random meal

The API endpoint returns a random meal object from a given list of meals.

When accessing this endpoint, you will receive a response containing a randomly selected meal.

get/public/meals/meal/random

Response

Get a random meal

messagestring
statusCodenumber
successboolean

Example response

{
  "data": {
    "id": 210,
    "idMeal": "52995",
    "strArea": "American",
    "strCategory": "Pork",
    "strIngredient1": "Potatoes",
    "strIngredient10": "Sugar",
    "strIngredient11": "Vegetable Oil",
    "strIngredient12": "Salt",
    "strIngredient13": "Pepper",
    "strIngredient2": "Red Onions",
    "strIngredient3": "Garlic",
    "strIngredient4": "Lime",
    "strIngredient5": "Bread",
    "strIngredient6": "Pork",
    "strIngredient7": "Barbeque Sauce",
    "strIngredient8": "Hotsauce",
    "strIngredient9": "Tomato Ketchup",
    "strInstructions": "1\r\n\r\nPreheat oven to 450 degrees. Wash and dry all produce. Cut sweet potatoes into ½-inch-thick wedges. Toss on a baking sheet with a drizzle of oil, salt, and pepper. Roast until browned and tender, 20-25 minutes.\r\n\r\n2\r\n\r\nMeanwhile, halve and peel onion. Slice as thinly as possible until you have ¼ cup (½ cup for 4 servings); finely chop remaining onion. Peel and finely chop garlic. Halve lime; squeeze juice into a small bowl. Halve buns. Add 1 TBSP butter (2 TBSP for 4) to a separate small microwave-safe bowl; microwave until melted, 30 seconds. Brush onto cut sides of buns.\r\n\r\n3\r\n\r\nTo bowl with lime juice, add sliced onion, ¼ tsp sugar (½ tsp for 4 servings), and a pinch of salt. Stir to combine; set aside to quick-pickle.\r\n\r\n4\r\n\r\nHeat a drizzle of oil in a large pan over medium-high heat. Add chopped onion and season with salt and pepper. Cook, stirring, until softened, 4-5 minutes. Add garlic and cook until fragrant, 30 seconds more. Add pork and season with salt and pepper. Cook, breaking up meat into pieces, until browned and cooked through, 4-6 minutes.\r\n\r\n5\r\n\r\nWhile pork cooks, in a third small bowl, combine BBQ sauce, pickling liquid from onion, 3 TBSP ketchup (6 TBSP for 4 servings), ½ tsp sugar (1 tsp for 4), and ¼ cup water (⅓ cup for 4). Once pork is cooked through, add BBQ sauce mixture to pan. Cook, stirring, until sauce is thickened, 2-3 minutes. Taste and season with salt and pepper.\r\n\r\n6\r\n\r\nMeanwhile, toast buns in oven or toaster oven until golden, 3-5 minutes. Divide toasted buns between plates and fill with as much BBQ pork as you’d like. Top with pickled onion and hot sauce. Serve with sweet potato wedges on the side.",
    "strMeal": "BBQ Pork Sloppy Joes",
    "strMealThumb": "https://www.themealdb.com/images/media/meals/atd5sh1583188467.jpg",
    "strMeasure1": "2",
    "strMeasure10": " ",
    "strMeasure11": " ",
    "strMeasure12": " ",
    "strMeasure13": " ",
    "strMeasure14": " ",
    "strMeasure15": " ",
    "strMeasure16": " ",
    "strMeasure17": " ",
    "strMeasure18": " ",
    "strMeasure19": " ",
    "strMeasure2": "1",
    "strMeasure20": " ",
    "strMeasure3": "2 cloves",
    "strMeasure4": "1",
    "strMeasure5": "2",
    "strMeasure6": "1 lb",
    "strMeasure7": " ",
    "strMeasure8": " ",
    "strMeasure9": " "
  },
  "message": "Meal fetched successfully",
  "statusCode": 200,
  "success": true
}