← 娱乐

食谱搜索

GET /recipes/search

按名称或食材关键词搜索餐食配方。返回匹配的食谱及名称、缩略图、分类和菜系地区。数据来自 TheMealDB,涵盖来自世界各地的数百种食谱。适用于烹饪应用、膳食规划工具、食谱发现功能和需要结构化食谱数据的美食博客。

参数

q 必填

Query

请求示例

基本用法
curl "https://nordapi.ee/api/v1/recipes/search?q=pasta"
Search for pasta recipes
curl "https://nordapi.ee/api/v1/recipes/search?q=pasta"
Search for chocolate desserts
curl "https://nordapi.ee/api/v1/recipes/search?q=chocolate+cake"
Search for chicken recipes
curl "https://nordapi.ee/api/v1/recipes/search?q=chicken"

实时响应

{
  "count": 1,
  "data": [
    {
      "area": "Italian",
      "category": "Seafood",
      "id": "52777",
      "ingredients": [
        {
          "ingredient": "mozzarella balls",
          "measure": "200 g"
        },
        {
          "ingredient": "baby plum tomatoes",
          "measure": "250 g"
        },
        {
          "ingredient": "fresh basil",
          "measure": "1  bunch"
        },
        {
          "ingredient": "farfalle",
          "measure": "350 g"
        },
        {
          "ingredient": "extra virgin olive oil",
          "measure": "3  tablespoons"
        },
        {
          "ingredient": "Green Olives",
          "measure": "40 g"
        },
        {
          "ingredient": "tuna",
          "measure": "200 g"
        },
        {
          "ingredient": "salt",
          "measure": "to taste"
        },
        {
          "ingredient": "pepper",
          "measure": "to taste"
        }
      ],
      "instructions": "Bring a large saucepan of salted water to the boil\r\nAdd the pasta, stir once and cook for about 10 minutes or as directed on the packet.\r\nMeanwhile, wash the tomatoes and cut into quarters. Slice the olives. Wash the basil.\r\nPut the tomatoes into a salad bowl and tear the basil leaves over them. Add a tablespoon of olive oil and mix.\r\nWhen the pasta is ready, drain into a colander and run cold water over it to cool it quickly.\r\nToss the pasta into the salad bowl with the tomatoes and basil.\r\nAdd the sliced olives, drained mozzarella balls, and chunks of tuna. Mix well and let the salad rest for at least half an hour to allow the flavours to mingle.\r\nSprinkle the pasta with a generous grind of black pepper and drizzle with the remaining olive oil just before serving.",
      "name": "Mediterranean Pasta Salad",
      "source": "https://thelemonsqueezy.com/recipe/mediterranean-pasta-salad/",
      "tags": [
        "Pasta",
        "Baking"
      ],
      "thumbnail": "https://www.themealdb.com/images/media/meals/wvqpwt1468339226.jpg",
      "youtube": "https://www.youtube.com/watch?v=e52IL8zYmaE"
    }
  ],
  "success": true
}