Recipes API logo
AlimentaçãoMANTIDA1 token / chamada

Recipes API

115 receitas caseiras selecionadas em 21 culinárias, com quantidades, passos, tempos e indicadores alimentares

115 receitas caseiras selecionadas em 21 culinárias — italiana, mexicana, indiana, japonesa, coreana, tailandesa, francesa, do Oriente Médio, espanhola, britânica e mais — cada uma com ingredientes e quantidades, instruções passo a passo originais, tempos de preparo e cozimento, porções, dificuldade e indicadores alimentares (vegetariana, vegana, sem glúten). Pesquise por texto, ingrediente, culinária, tipo de refeição, dificuldade, dieta ou tempo total, navegue por resumos paginados, busque receitas completas por slug ou sorteie um prato que corresponda a qualquer filtro.

Toda chamada precisa do header X-Api-Key. Uma chave gratuita inclui 500 tokens por mês, sem cartão. 1 token por chamada, então o plano gratuito cobre cerca de 500 chamadas por mês.

Sem cartão de créditoAcesso a mais de 125 APIsCancele quando quiser
response.json
{
  "query": "GET /v1/recipes/random?vegan=true&gluten_free=true",
  "name": "Rice and Peas",
  "cuisine": "caribbean",
  "total_minutes": 35,
  "difficulty": "medium",
  "catalog": "115 recipes / 21 cuisines / vegan + gluten-free flags"
}
Pronta para produção
Infraestrutura testada em produção, com SLA de 99,9% de disponibilidade. Os limites de requisições são generosos e as respostas são consistentes.
Integração simples
REST + JSON padrão. Funciona com qualquer cliente HTTP. Trechos de código prontos para copiar em 4 linguagens.
Uma chave, mais de 125 APIs
Sua assinatura do DataAndAPIs libera todas as APIs da plataforma — anime, finanças, esportes e mais.

Casos de uso da Recipes API

  • Sugira o jantar de hoje filtrado por culinária, tempo, dificuldade ou dieta.

  • Crie um planejador de refeições com opções vegetarianas, veganas e sem glúten.

  • Gere listas de compras a partir das quantidades dos ingredientes.

  • Mostre instruções de preparo passo a passo em uma visualização pensada para a cozinha.

Endpoints da Recipes API

Todos os endpoints, com seus parâmetros e um exemplo real de resposta.

GETGet Recipe

https://api-recipes.dataandapis.com/v1/recipes/{slug}

Parâmetros de caminho

ParâmetroExemplo
slugmargherita-pizzaObrigatório

Exemplo de requisição

curl
curl "https://api-recipes.dataandapis.com/v1/recipes/margherita-pizza" \
  -H "X-Api-Key: YOUR_API_KEY"
JavaScript / TypeScript (pacote dataandapis)
// npm install dataandapis
import { DataAndApis } from "dataandapis";

const client = new DataAndApis(); // reads DATAANDAPIS_API_KEY

const data = await client.recipes.getRecipe({ slug: "margherita-pizza" });
Python (pacote dataandapis)
# pip install dataandapis
from dataandapis import DataAndApis

client = DataAndApis()  # reads DATAANDAPIS_API_KEY

data = client.recipes.get_recipe(slug="margherita-pizza")
Exemplo de resposta
{
  "ok": true,
  "name": "Margherita Pizza",
  "slug": "margherita-pizza",
  "cuisine": "italian",
  "meal_type": "dinner",
  "difficulty": "hard",
  "prep_minutes": 90,
  "cook_minutes": 12,
  "total_minutes": 102,
  "servings": 2,
  "vegetarian": true,
  "vegan": false,
  "gluten_free": false,
  "tags": [
    "pizza",
    "baking",
    "classic"
  ],
  "ingredients": [
    {
      "name": "Pizza dough",
      "quantity": "300 g"
    },
    {
      "name": "Crushed tomatoes",
      "quantity": "120 g"
    },
…
Ver resposta completa
{
  "ok": true,
  "name": "Margherita Pizza",
  "slug": "margherita-pizza",
  "cuisine": "italian",
  "meal_type": "dinner",
  "difficulty": "hard",
  "prep_minutes": 90,
  "cook_minutes": 12,
  "total_minutes": 102,
  "servings": 2,
  "vegetarian": true,
  "vegan": false,
  "gluten_free": false,
  "tags": [
    "pizza",
    "baking",
    "classic"
  ],
  "ingredients": [
    {
      "name": "Pizza dough",
      "quantity": "300 g"
    },
    {
      "name": "Crushed tomatoes",
      "quantity": "120 g"
    },
    {
      "name": "Fresh mozzarella",
      "quantity": "125 g"
    },
    {
      "name": "Basil leaves",
      "quantity": "a handful"
    },
    {
      "name": "Olive oil",
      "quantity": "1 tbsp"
    },
    {
      "name": "Salt",
      "quantity": "pinch"
    }
  ],
  "instructions": [
    "Let the dough come to room temperature, then stretch it into a thin 30 cm round.",
    "Spread a thin layer of seasoned crushed tomatoes, leaving a border.",
    "Tear the mozzarella over the top and bake on a preheated stone or tray at the oven's highest setting until blistered, 8–12 minutes.",
    "Finish with basil and a drizzle of olive oil."
  ]
}

GETList Cuisines

https://api-recipes.dataandapis.com/v1/recipes/cuisines

Este endpoint não recebe parâmetros.

Exemplo de requisição

curl
curl "https://api-recipes.dataandapis.com/v1/recipes/cuisines" \
  -H "X-Api-Key: YOUR_API_KEY"
JavaScript / TypeScript (pacote dataandapis)
// npm install dataandapis
import { DataAndApis } from "dataandapis";

const client = new DataAndApis(); // reads DATAANDAPIS_API_KEY

const data = await client.recipes.listCuisines();
Python (pacote dataandapis)
# pip install dataandapis
from dataandapis import DataAndApis

client = DataAndApis()  # reads DATAANDAPIS_API_KEY

data = client.recipes.list_cuisines()
Exemplo de resposta
{
  "ok": true,
  "total_recipes": 115,
  "cuisines": [
    {
      "name": "american",
      "recipes": 19
    },
    {
      "name": "brazilian",
      "recipes": 1
    },
    {
      "name": "british",
      "recipes": 8
    },
    {
      "name": "caribbean",
      "recipes": 2
    },
    {
      "name": "chinese",
      "recipes": 7
    },
    {
      "name": "french",
      "recipes": 9
    },
…
Ver resposta completa
{
  "ok": true,
  "total_recipes": 115,
  "cuisines": [
    {
      "name": "american",
      "recipes": 19
    },
    {
      "name": "brazilian",
      "recipes": 1
    },
    {
      "name": "british",
      "recipes": 8
    },
    {
      "name": "caribbean",
      "recipes": 2
    },
    {
      "name": "chinese",
      "recipes": 7
    },
    {
      "name": "french",
      "recipes": 9
    },
    {
      "name": "fusion",
      "recipes": 1
    },
    {
      "name": "german",
      "recipes": 3
    },
    {
      "name": "indian",
      "recipes": 8
    },
    {
      "name": "italian",
      "recipes": 10
    },
    {
      "name": "japanese",
      "recipes": 6
    },
    {
      "name": "korean",
      "recipes": 4
    },
    {
      "name": "mediterranean",
      "recipes": 7
    },
    {
      "name": "mexican",
      "recipes": 8
    },
    {
      "name": "middle-eastern",
      "recipes": 5
    },
    {
      "name": "moroccan",
      "recipes": 3
    },
    {
      "name": "peruvian",
      "recipes": 1
    },
    {
      "name": "spanish",
      "recipes": 4
    },
    {
      "name": "thai",
      "recipes": 5
    },
    {
      "name": "venezuelan",
      "recipes": 1
    },
    {
      "name": "vietnamese",
      "recipes": 3
    }
  ],
  "meal_types": [
    {
      "name": "breakfast",
      "recipes": 11
    },
    {
      "name": "dessert",
      "recipes": 12
    },
    {
      "name": "dinner",
      "recipes": 55
    },
    {
      "name": "lunch",
      "recipes": 25
    },
    {
      "name": "snack",
      "recipes": 12
    }
  ],
  "dietary": {
    "vegetarian": 67,
    "vegan": 24,
    "gluten_free": 50
  }
}

GETList Recipes

https://api-recipes.dataandapis.com/v1/recipes

Parâmetros de consulta

ParâmetroExemplo
cuisineitalianOpcional
difficultyeasyOpcional
gluten_freetrueOpcional
ingredientchickpeaOpcional
limit10Opcional
max_minutes30Opcional
meal_typedinnerOpcional
page1Opcional
qcoconutOpcional
vegantrueOpcional
vegetariantrueOpcional

Exemplo de requisição

curl
curl "https://api-recipes.dataandapis.com/v1/recipes?cuisine=italian&difficulty=easy&gluten_free=true&ingredient=chickpea&limit=10&max_minutes=30&meal_type=dinner&page=1&q=coconut&vegan=true&vegetarian=true" \
  -H "X-Api-Key: YOUR_API_KEY"
JavaScript / TypeScript (pacote dataandapis)
// npm install dataandapis
import { DataAndApis } from "dataandapis";

const client = new DataAndApis(); // reads DATAANDAPIS_API_KEY

const data = await client.recipes.listRecipes({
  cuisine: "italian",
  difficulty: "easy",
  gluten_free: true,
  ingredient: "chickpea",
  limit: 10,
  max_minutes: 30,
  meal_type: "dinner",
  page: 1,
  q: "coconut",
  vegan: true,
  vegetarian: true,
});
Python (pacote dataandapis)
# pip install dataandapis
from dataandapis import DataAndApis

client = DataAndApis()  # reads DATAANDAPIS_API_KEY

data = client.recipes.list_recipes(
    cuisine="italian",
    difficulty="easy",
    gluten_free=True,
    ingredient="chickpea",
    limit=10,
    max_minutes=30,
    meal_type="dinner",
    page=1,
    q="coconut",
    vegan=True,
    vegetarian=True,
)
Exemplo de resposta
{
  "ok": true,
  "total": 6,
  "page": 1,
  "limit": 3,
  "count": 3,
  "results": [
    {
      "name": "Spaghetti Aglio e Olio",
      "slug": "spaghetti-aglio-e-olio",
      "cuisine": "italian",
      "meal_type": "dinner",
      "difficulty": "easy",
      "prep_minutes": 5,
      "cook_minutes": 15,
      "total_minutes": 20,
      "servings": 2,
      "vegetarian": true,
      "vegan": true,
      "gluten_free": false,
      "tags": [
        "pasta",
        "quick",
        "classic"
      ]
    },
    {
      "name": "Margherita Pizza",
…
Ver resposta completa
{
  "ok": true,
  "total": 6,
  "page": 1,
  "limit": 3,
  "count": 3,
  "results": [
    {
      "name": "Spaghetti Aglio e Olio",
      "slug": "spaghetti-aglio-e-olio",
      "cuisine": "italian",
      "meal_type": "dinner",
      "difficulty": "easy",
      "prep_minutes": 5,
      "cook_minutes": 15,
      "total_minutes": 20,
      "servings": 2,
      "vegetarian": true,
      "vegan": true,
      "gluten_free": false,
      "tags": [
        "pasta",
        "quick",
        "classic"
      ]
    },
    {
      "name": "Margherita Pizza",
      "slug": "margherita-pizza",
      "cuisine": "italian",
      "meal_type": "dinner",
      "difficulty": "hard",
      "prep_minutes": 90,
      "cook_minutes": 12,
      "total_minutes": 102,
      "servings": 2,
      "vegetarian": true,
      "vegan": false,
      "gluten_free": false,
      "tags": [
        "pizza",
        "baking",
        "classic"
      ]
    },
    {
      "name": "Creamy Mushroom Risotto",
      "slug": "mushroom-risotto",
      "cuisine": "italian",
      "meal_type": "dinner",
      "difficulty": "medium",
      "prep_minutes": 10,
      "cook_minutes": 30,
      "total_minutes": 40,
      "servings": 4,
      "vegetarian": true,
      "vegan": false,
      "gluten_free": true,
      "tags": [
        "rice",
        "comfort-food"
      ]
    }
  ]
}

GETRandom Recipe

https://api-recipes.dataandapis.com/v1/recipes/random

Parâmetros de consulta

ParâmetroExemplo
amount1Opcional
gluten_freetrueOpcional
vegantrueOpcional

Exemplo de requisição

curl
curl "https://api-recipes.dataandapis.com/v1/recipes/random?amount=1&gluten_free=true&vegan=true" \
  -H "X-Api-Key: YOUR_API_KEY"
JavaScript / TypeScript (pacote dataandapis)
// npm install dataandapis
import { DataAndApis } from "dataandapis";

const client = new DataAndApis(); // reads DATAANDAPIS_API_KEY

const data = await client.recipes.randomRecipe({
  amount: 1,
  gluten_free: true,
  vegan: true,
});
Python (pacote dataandapis)
# pip install dataandapis
from dataandapis import DataAndApis

client = DataAndApis()  # reads DATAANDAPIS_API_KEY

data = client.recipes.random_recipe(amount=1, gluten_free=True, vegan=True)
Exemplo de resposta
{
  "ok": true,
  "count": 1,
  "results": [
    {
      "name": "Rice and Peas",
      "slug": "rice-and-peas",
      "cuisine": "caribbean",
      "meal_type": "dinner",
      "difficulty": "medium",
      "prep_minutes": 5,
      "cook_minutes": 30,
      "total_minutes": 35,
      "servings": 6,
      "vegetarian": true,
      "vegan": true,
      "gluten_free": true,
      "tags": [
        "rice",
        "vegan",
        "gluten-free"
      ],
      "ingredients": [
        {
          "name": "Long-grain rice",
          "quantity": "400 g"
        },
        {
…
Ver resposta completa
{
  "ok": true,
  "count": 1,
  "results": [
    {
      "name": "Rice and Peas",
      "slug": "rice-and-peas",
      "cuisine": "caribbean",
      "meal_type": "dinner",
      "difficulty": "medium",
      "prep_minutes": 5,
      "cook_minutes": 30,
      "total_minutes": 35,
      "servings": 6,
      "vegetarian": true,
      "vegan": true,
      "gluten_free": true,
      "tags": [
        "rice",
        "vegan",
        "gluten-free"
      ],
      "ingredients": [
        {
          "name": "Long-grain rice",
          "quantity": "400 g"
        },
        {
          "name": "Kidney beans",
          "quantity": "1 can with liquid"
        },
        {
          "name": "Coconut milk",
          "quantity": "400 ml"
        },
        {
          "name": "Scallions",
          "quantity": "2"
        },
        {
          "name": "Thyme",
          "quantity": "2 sprigs"
        },
        {
          "name": "Scotch bonnet",
          "quantity": "1, whole"
        },
        {
          "name": "Garlic",
          "quantity": "2 cloves"
        }
      ],
      "instructions": [
        "Put the beans and their liquid, coconut milk, aromatics and 300 ml water in a pot and bring to a boil.",
        "Stir in the rice and salt, cover and simmer on low for 20 minutes.",
        "Rest off the heat for 10 minutes.",
        "Remove the chile and thyme stems and fluff with a fork."
      ]
    }
  ]
}

De onde vêm os dados

Fonte
Conjunto de receitas selecionadas, embutido no worker.
Atualização
Ampliado com as versões da API.

Uma instalação. Todos os endpoints.

Instale o pacote dataandapis pelo npm ou pelo PyPI e chame esta API com métodos tipados, ou use qualquer cliente HTTP na linguagem que preferir.

4linguagens
4endpoints
RESTarquitetura
1chave para todas as APIs
  • Parâmetros e respostas tipados, com autocompletar no seu editor
  • Para Node.js 18 ou superior e Python 3.9 ou superior, sem dependências
  • Uma chave funciona em mais de 125 APIs da plataforma

Ler o guia do pacote npm →Ler o guia do pacote Python →

// npm install dataandapis
import { DataAndApis } from "dataandapis";

const client = new DataAndApis(); // reads DATAANDAPIS_API_KEY

const data = await client.recipes.getRecipe({ slug: "margherita-pizza" });

Recipes API · X-Api-Key

Explore os endpoints

Veja os parâmetros de requisição e inspecione exemplos reais de resposta.

Endpoints disponíveis

Parâmetros da requisição

URL da API

Cabeçalhos

X-Api-Key

Parâmetros de caminho

slug
// npm install dataandapis
import { DataAndApis } from "dataandapis";

const client = new DataAndApis({ apiKey: "YOUR_API_KEY" });

const data = await client.recipes.getRecipe({ slug: "margherita-pizza" });

Uma assinatura. Todas as APIs.

Os tokens liberam esta API e mais de 125 outras no DataAndAPIs. Troque de API quando quiser.

GRÁTIS

$0/mês

500 tokens / mês

  • Acesso a todas as APIs
  • Tokens renovados todo mês
  • Suporte da comunidade
Começar grátis
Mais popular

STARTER

$6.99/mês

25.000 tokens / mês

  • Acesso a todas as APIs
  • Tokens renovados todo mês
  • Suporte por e-mail
Assinar

PRO

$24.99/mês

100.000 tokens / mês

  • Acesso a todas as APIs
  • Tokens renovados todo mês
  • Suporte prioritário por e-mail
Assinar

ULTRA

$99.99/mês

1.000.000 tokens / mês

  • Acesso a todas as APIs
  • Tokens renovados todo mês
  • Suporte prioritário
Assinar

Precisa de mais volume, infraestrutura dedicada ou um contrato personalizado? Falar com vendas →

Perguntas sobre a Recipes API

Lance Recipes API ainda hoje à tarde.

500 tokens grátis. Sem cartão. E mais de 125 outras APIs com a mesma chave.