Search and look up meal recipes with ingredients and preparation instructions.
searchpassing, 0.8slookuppassing, 0.2s/v1/food:themealdb/search5m cache1 paramchecking key…// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";
const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });
const data = await client.run("food:themealdb", "search", {
"query": "chicken"
});
console.log(data);curl -X GET "https://api.zpi.web.id/v1/food:themealdb/search?query=chicken" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"/v1/food:themealdb/searchSearch meals by name.querystringrequiredcurl -X GET "https://api.zpi.web.id/v1/food:themealdb/search?query=chicken" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"ok": true,
"count": 25,
"meals": [
{
"idMeal": "52795",
"strArea": "India",
"strMeal": "Chicken Handi",
"strTags": null,
"strSource": "",
"strYoutube": "https://www.youtube.com/watch?v=IO0issT0Rmc",
"ingredients": [
{
"name": "Chicken",
"measure": "1.2 kg"
},
{
"name": "Onion",
"measure": "5 thinly sliced"
},
{
"name": "Tomatoes",
"measure": "2 finely chopped"
}
],
"strCategory": "Chicken",
"strMealThumb": "https://www.themealdb.com/images/media/meals/wyxwsp1486979827.jpg",
"strInstructions": "Take a large pot or wok, big enough to cook all the chicken, and heat the oil in it. Once the oil is hot, add sliced onion and fry them until deep golden brown. Then take them out …"
},
{
"idMeal": "53358",
"strArea": "India",
"strMeal": "Chicken Mandi",
"strTags": null,
"strSource": "",
"strYoutube": "",
"ingredients": [
{
"name": "Chicken",
"measure": "1"
},
{
"name": "Basmati Rice",
"measure": "2 cups"
},
{
"name": "Water",
"measure": "4 cups"
}
],
"strCategory": "Chicken",
"strMealThumb": "https://www.themealdb.com/images/media/meals/er4d081765186828.jpg",
"strInstructions": "1. Clean and cut the chicken; marinate briefly with salt, turmeric and a little oil.\r\n2. Rinse and soak basmati rice 20–30 minutes.\r\n3. In a large pot, heat ghee/oil. Fry chopped o…"
},
{
"idMeal": "53110",
"strArea": "Australian",
"strMeal": "Sticky Chicken",
"strTags": null,
"strSource": "https://www.bbcgoodfood.com/recipes/sticky-chicken",
"strYoutube": "https://www.youtube.com/watch?v=o8tz2BOltTg",
"ingredients": [
{
"name": "Chicken drumsticks",
"measure": "8"
},
{
"name": "Soy Sauce",
"measure": "2 tblsp"
},
{
"name": "Honey",
"measure": "1 tablespoon"
}
],
"strCategory": "Chicken",
"strMealThumb": "https://www.themealdb.com/images/media/meals/cj56fs1762340001.jpg",
"strInstructions": "step 1\r\nMake 3 slashes on each of the drumsticks. Mix together the soy, honey, oil, tomato purée and mustard. Pour this mixture over the chicken and coat thoroughly. Leave to marin…"
}
]
}/v1/food:themealdb/lookupLook up a meal by its ID.mealIdstringrequiredcurl -X GET "https://api.zpi.web.id/v1/food:themealdb/lookup?mealId=52772" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"ok": true,
"meal": {
"idMeal": "52772",
"strArea": "Japanese",
"strMeal": "Teriyaki Chicken Casserole",
"strTags": "Meat,Casserole",
"strSource": null,
"strYoutube": "https://www.youtube.com/watch?v=4aZr5hZXP_s",
"ingredients": [
{
"name": "soy sauce",
"measure": "3/4 cup"
},
{
"name": "water",
"measure": "1/2 cup"
},
{
"name": "brown sugar",
"measure": "1/4 cup"
},
{
"name": "ground ginger",
"measure": "1/2 teaspoon"
},
{
"name": "minced garlic",
"measure": "1/2 teaspoon"
},
{
"name": "cornstarch",
"measure": "4 Tablespoons"
},
{
"name": "chicken breasts",
"measure": "2"
},
{
"name": "stir-fry vegetables",
"measure": "1 (12 oz.)"
},
{
"name": "brown rice",
"measure": "3 cups"
}
],
"strCategory": "Chicken",
"strMealThumb": "https://www.themealdb.com/images/media/meals/wvpsxx1468256321.jpg",
"strInstructions": "Preheat oven to 350° F. Spray a 9x13-inch baking pan with non-stick spray.\r\nCombine soy sauce, ½ cup water, brown sugar, ginger and garlic in a small saucepan and cover. Bring to a boil over medium heat. Remove lid and cook for one minute once boiling.\r\nMeanwhile, stir together the corn starch and 2 tablespoons of water in a separate dish until smooth. Once sauce is boiling, add mixture to the saucepan and stir to combine. Cook until the sauce starts to thicken then remove from heat.\r\nPlace the chicken breasts in the prepared pan. Pour one cup of the sauce over top of chicken. Place chicken in oven and bake 35 minutes or until cooked through. Remove from oven and shred chicken in the dish using two forks.\r\n*Meanwhile, steam or cook the vegetables according to package directions.\r\nAdd the cooked vegetables and rice to the casserole dish with the chicken. Add most of the remaining sauce, reserving a bit to drizzle over the top when serving. Gently toss everything together in the casserole dish until combined. Return to oven and cook 15 minutes. Remove from oven and let stand 5 minutes before serving. Drizzle each serving with remaining sauce. Enjoy!"
}
}