← Развлечения

Поиск рецептов

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
}