GETGet Recipe
https://api-recipes.dataandapis.com/v1/recipes/{slug}
Parámetros de ruta
| Parámetro | Ejemplo | |
|---|---|---|
| slug | margherita-pizza | Obligatorio |
Petición de ejemplo
curl "https://api-recipes.dataandapis.com/v1/recipes/margherita-pizza" \
-H "X-Api-Key: YOUR_API_KEY"Respuesta de ejemplo{
"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 la respuesta 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"
},
…{
"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."
]
}



