You are on page 1of 13

Spoonacular Api

Search Recipes:

URL:
https://api.spoonacular.com/recipes/search?query=cheese&number=2&apiKey=1ace6de432cc4
2f0bb84f80bd40aff8f
Request Perameters:
method name : search
query : Name of search item Ex Cheese
number : number of quantity on per request
apiKey: 1ace6de432cc42f0bb84f80bd40aff8f (Developer Api Key)
Response :

"results": [

"id": 215435,

"title": "Three-Cheese Pizza (For Cheese Lovers)",

"readyInMinutes": 45,

"servings": 8,

"image": "three-cheese-pizza-for-cheese-lovers-215435.jpg",

"imageUrls": [

"three-cheese-pizza-for-cheese-lovers-215435.jpg"

},

"id": 116679,

"title": "Leek & Cheese Pie",

"readyInMinutes": 75,

"servings": 4,

"image": "leek-amp-cheese-pie-2-116679.jpg",
"imageUrls": [

"leek-amp-cheese-pie-2-116679.jpg",

"leek_amp_cheese_pie-116679.jpg"

],

"baseUri": "https://spoonacular.com/recipeImages/",

"offset": 0,

"number": 2,

"totalResults": 321,

"processingTimeMs": 468,

"expires": 1578164309590,

"isStale": false

Search Recipes by Nutrients:


URL:
https://api.spoonacular.com/recipes/findByNutrients?minCarbs=10&maxCarbs=50&number=2
&apiKey=1ace6de432cc42f0bb84f80bd40aff8f
Request Perameters:
method name : findByNutrients
minCarbs : Min Carbs value ex. 10
maxCarbs : Max Carbs value ex. 50
number : number of quantity on per request
apiKey: 1ace6de432cc42f0bb84f80bd40aff8f (Developer Api Key)
Response :

"id": 90629,

"title": "Baked Apples in White Wine",


"image": "https://spoonacular.com/recipeImages/90629-312x231.jpg",

"imageType": "jpg",

"calories": 210,

"protein": "1g",

"fat": "3g",

"carbs": "43g"

},

"id": 284420,

"title": "Chocolate Silk Pie with Marshmallow Meringue",

"image": "https://spoonacular.com/recipeImages/284420-312x231.jpg",

"imageType": "jpg",

"calories": 226,

"protein": "2g",

"fat": "10g",

"carbs": "33g"

Search Recipes by Ingredients:


URL:
https://api.spoonacular.com/recipes/findByIngredients?ingredients=apples,+flour,+sugar&numb
er=2&apiKey=1ace6de432cc42f0bb84f80bd40aff8f
Request Perameters:
method name : findByIngredients
ingredients : Name of Ingredients Ex. Apples you can serch multiple Ingredients
Ex : ingredients=apples,+flour,+sugar
number : number of quantity on per request
apiKey: 1ace6de432cc42f0bb84f80bd40aff8f (Developer Api Key)
Response:

[
{
"id": 534573,
"title": "Brown Butter Apple Crumble",
"image": "https://spoonacular.com/recipeImages/534573-312x231.jpg",
"imageType": "jpg",
"usedIngredientCount": 1,
"missedIngredientCount": 2,
"missedIngredients": [
{
"id": 2010,
"amount": 0.5,
"unit": "tsp",
"unitLong": "teaspoons",
"unitShort": "tsp",
"aisle": "Spices and Seasonings",
"name": "cinnamon",
"original": "1/2 tsp cinnamon",
"originalString": "1/2 tsp cinnamon",
"originalName": "cinnamon",
"metaInformation": [

],
"image": "https://spoonacular.com/cdn/ingredients_100x100/cinnamon.jpg"
},
{
"id": 8120,
"amount": 0.5,
"unit": "cup",
"unitLong": "cups",
"unitShort": "cup",
"aisle": "Cereal",
"name": "oats",
"original": "1/2 cup uncooked oats (not instant)",
"originalString": "1/2 cup uncooked oats (not instant)",
"originalName": "uncooked oats (not instant)",
"metaInformation": [
"uncooked",
"(not instant)"
],
"image": "https://spoonacular.com/cdn/ingredients_100x100/rolled-oats.jpg"
}
],
"usedIngredients": [
{
"id": 9003,
"amount": 4.0,
"unit": "",
"unitLong": "",
"unitShort": "",
"aisle": "Produce",
"name": "apples",
"original": "4 apples, peeled, cored and sliced",
"originalString": "4 apples, peeled, cored and sliced",
"originalName": "apples, peeled, cored and sliced",
"metaInformation": [
"cored",
"peeled",
"sliced"
],
"image": "https://spoonacular.com/cdn/ingredients_100x100/apple.jpg"
}
],
"unusedIngredients": [

],
"likes": 7
},
{
"id": 556470,
"title": "Apple fritters",
"image": "https://spoonacular.com/recipeImages/556470-312x231.jpg",
"imageType": "jpg",
"usedIngredientCount": 0,
"missedIngredientCount": 3,
"missedIngredients": [
{
"id": 14003,
"amount": 2.0,
"unit": "tablespoons",
"unitLong": "tablespoons",
"unitShort": "Tbsp",
"aisle": "Alcoholic Beverages",
"name": "beer",
"original": "2 tablespoons of lager beer",
"originalString": "2 tablespoons of lager beer",
"originalName": "lager beer",
"metaInformation": [

],
"image": "https://spoonacular.com/cdn/ingredients_100x100/beer.jpg"
},
{
"id": 1123,
"amount": 1.0,
"unit": "",
"unitLong": "",
"unitShort": "",
"aisle": "Milk, Eggs, Other Dairy",
"name": "egg",
"original": "1 egg",
"originalString": "1 egg",
"originalName": "egg",
"metaInformation": [

],
"image": "https://spoonacular.com/cdn/ingredients_100x100/egg.png"
},
{
"id": 1059003,
"amount": 2.0,
"unit": "",
"unitLong": "",
"unitShort": "",
"aisle": "Produce",
"name": "red delicious apples",
"original": "2 Golden Delicious apples",
"originalString": "2 Golden Delicious apples",
"originalName": "Golden Delicious apples",
"metaInformation": [

],
"image": "https://spoonacular.com/cdn/ingredients_100x100/red-delicious-apples.png"
}
],
"usedIngredients": [

],
"unusedIngredients": [
{
"id": 9003,
"amount": 1.0,
"unit": "serving",
"unitLong": "serving",
"unitShort": "serving",
"aisle": "Produce",
"name": "apples",
"original": "apples",
"originalString": "apples",
"originalName": "apples",
"metaInformation": [

],
"image": "https://spoonacular.com/cdn/ingredients_100x100/apple.jpg"
}
],
"likes": 243
}
]

Search Recipes by complexSearch:


URL:
https://api.spoonacular.com/recipes/complexSearch?query=pasta&maxFat=25&number=2&api
Key=1ace6de432cc42f0bb84f80bd40aff8f
Request Perameters:
method name : complexSearch
maxFat : Max Fat value ex. 25
number : number of quantity on per request
apiKey: 1ace6de432cc42f0bb84f80bd40aff8f (Developer Api Key)
Response :

{
"results": [
{
"id": 749013,
"title": "Pasta",
"image": "https://spoonacular.com/recipeImages/749013-312x231.jpeg",
"imageType": "jpeg",
"nutrition": [
{
"title": "Fat",
"amount": 23.4934,
"unit": "g"
}
]
},
{
"id": 602638,
"title": "Pasta Nest",
"image": "https://spoonacular.com/recipeImages/602638-312x231.jpg",
"imageType": "jpg",
"nutrition": [
{
"title": "Fat",
"amount": 3.77297,
"unit": "g"
}
]
}
],
"offset": 0,
"number": 2,
"totalResults": 6789
}

Get Recipe Information:


URL:
https://api.spoonacular.com/recipes/602638/information?includeNutrition=false&apiKey=1ace6
de432cc42f0bb84f80bd40aff8f
Request Perameters:
method name : item_id:/information
includeNutrition : True or False
apiKey: 1ace6de432cc42f0bb84f80bd40aff8f (Developer Api Key)
Response :

{
"vegetarian": false,
"vegan": false,
"glutenFree": false,
"dairyFree": false,
"veryHealthy": false,
"cheap": false,
"veryPopular": false,
"sustainable": false,
"weightWatcherSmartPoints": 2,
"gaps": "no",
"lowFodmap": false,
"ketogenic": false,
"whole30": false,
"preparationMinutes": 10,
"cookingMinutes": 25,
"sourceUrl": "http://www.steamykitchen.com/29086-pasta-nests-recipe-video.html",
"spoonacularSourceUrl": "https://spoonacular.com/pasta-nest-602638",
"aggregateLikes": 48,
"spoonacularScore": 14.0,
"healthScore": 0.0,
"creditsText": "Steamy Kitchen",
"sourceName": "Steamy Kitchen",
"pricePerServing": 22.82,
"extendedIngredients": [
{
"id": 10020420,
"aisle": "Pasta and Rice",
"image": "angelhair.jpg",
"consitency": "solid",
"name": "angel hair pasta",
"original": "8 ounces dried thin spaghetti or angel hair pasta",
"originalString": "8 ounces dried thin spaghetti or angel hair pasta",
"originalName": "dried thin spaghetti or angel hair pasta",
"amount": 8.0,
"unit": "ounces",
"meta": [
"dried",
"thin"
],
"metaInformation": [
"dried",
"thin"
],
"measures": {
"us": {
"amount": 8.0,
"unitShort": "oz",
"unitLong": "ounces"
},
"metric": {
"amount": 226.796,
"unitShort": "g",
"unitLong": "grams"
}
}
},
{
"id": 1001,
"aisle": "Milk, Eggs, Other Dairy",
"image": "butter-sliced.jpg",
"consitency": "solid",
"name": "butter",
"original": "3 tablespoons butter, melted",
"originalString": "3 tablespoons butter, melted",
"originalName": "butter, melted",
"amount": 3.0,
"unit": "tablespoons",
"meta": [
"melted"
],
"metaInformation": [
"melted"
],
"measures": {
"us": {
"amount": 3.0,
"unitShort": "Tbsps",
"unitLong": "Tbsps"
},
"metric": {
"amount": 3.0,
"unitShort": "Tbsps",
"unitLong": "Tbsps"
}
}
},
{
"id": 1033,
"aisle": "Cheese",
"image": "parmesan.jpg",
"consitency": "solid",
"name": "parmesan cheese",
"original": "1 cup parmesan cheese, grated",
"originalString": "1 cup parmesan cheese, grated",
"originalName": "parmesan cheese, grated",
"amount": 1.0,
"unit": "cup",
"meta": [
"grated"
],
"metaInformation": [
"grated"
],
"measures": {
"us": {
"amount": 1.0,
"unitShort": "cup",
"unitLong": "cup"
},
"metric": {
"amount": 236.588,
"unitShort": "ml",
"unitLong": "milliliters"
}
}
},
{
"id": 16161,
"aisle": "Refrigerated;Produce;Ethnic Foods",
"image": "tofu.png",
"consitency": "solid",
"name": "silken tofu",
"original": "6 ounces soft silken tofu (I prefer Mori-Nu brand)",
"originalString": "6 ounces soft silken tofu (I prefer Mori-Nu brand)",
"originalName": "soft silken tofu (I prefer Mori-Nu brand)",
"amount": 6.0,
"unit": "ounces",
"meta": [
"soft",
"(I prefer Mori-Nu brand)"
],
"metaInformation": [
"soft",
"(I prefer Mori-Nu brand)"
],
"measures": {
"us": {
"amount": 6.0,
"unitShort": "oz",
"unitLong": "ounces"
},
"metric": {
"amount": 170.097,
"unitShort": "g",
"unitLong": "grams"
}
}
}
],
"id": 602638,
"title": "Pasta Nest",
"readyInMinutes": 35,
"servings": 18,
"image": "https://spoonacular.com/recipeImages/602638-556x370.jpg",
"imageType": "jpg",
"cuisines": [

],
"dishTypes": [
"antipasti",
"starter",
"snack",
"appetizer",
"antipasto",
"hor d'oeuvre"
],
"diets": [

],
"occasions": [
],
"winePairing": {
"pairedWines": [

],
"pairingText": "No one wine will suit every pasta dish. Pasta in a tomato-based sauce will usually work well with a medium-bodied
red, such as a montepulciano or chianti. Pasta with seafood or pesto will fare better with a light-bodied white, such as a pinot grigio.
Cheese-heavy pasta can pair well with red or white - you might try a sangiovese wine for hard cheeses and a chardonnay for soft
cheeses. We may be able to make a better recommendation if you ask again with a specific pasta dish.",
"productMatches": [

]
},
"instructions": "Preheat the oven to 375F.Cook the pasta according to package instructions, drain.In a large bowl, whisk together the
tofu, butter and cheese until combined. Add the cooked spaghetti and stir well to coat. In a muffin tin, divide the pasta for each cup.
Form into a \"nest\" shape with your fingers. Don't overload - you should be able to make 18 nests (the less pasta you use, the crisper the
nests will be).Bake for 20-25 minutes or until pasta nests are golden brown.",
"analyzedInstructions": [
{
"name": "",
"steps": [
{
"number": 1,
"step": "Preheat the oven to 375F.Cook the pasta according to package instructions, drain.In a large bowl, whisk together the tofu,
butter and cheese until combined.",
"ingredients": [
{
"id": 1001,
"name": "butter",
"image": "butter-sliced.jpg"
},
{
"id": 20420,
"name": "pasta",
"image": "fusilli.jpg"
}
],
"equipment": [
{
"id": 404661,
"name": "whisk",
"image": "whisk.png"
},
{
"id": 404783,
"name": "bowl",
"image": "bowl.jpg"
},
{
"id": 404784,
"name": "oven",
"image": "oven.jpg",
"temperature": {
"number": 375.0,
"unit": "Fahrenheit"
}
}
]
},
{
"number": 2,
"step": "Add the cooked spaghetti and stir well to coat. In a muffin tin, divide the pasta for each cup. Form into a \"nest\" shape
with your fingers. Don't overload - you should be able to make 18 nests (the less pasta you use, the crisper the nests will be).",
"ingredients": [
{
"id": 20420,
"name": "pasta",
"image": "fusilli.jpg"
}
],
"equipment": [
{
"id": 404671,
"name": "muffin tray",
"image": "muffin-tray.jpg"
}
]
},
{
"number": 3,
"step": "Bake for 20-25 minutes or until pasta nests are golden brown.",
"ingredients": [
{
"id": 20420,
"name": "pasta",
"image": "fusilli.jpg"
}
],
"equipment": [

],
"length": {
"number": 25,
"unit": "minutes"
}
}
]
}
]
}

Supported Api

Recipes
 Search Recipes
 Search Recipes by Nutrients
 Search Recipes by Ingredients
 Search Recipes Complex
 Get Recipe Information
 Get Recipe Information Bulk
 Get Similar Recipes
 Get Random Recipes
 Autocomplete Recipe Search
 Get Recipe Equipment by ID
 Get Recipe Price Breakdown by ID
 Get Recipe Ingredients by ID
 Get Recipe Nutrition Widget by ID
 Get Analyzed Recipe Instructions
 Extract Recipe from Website
 Summarize Recipe
 Analyze Recipe Instructions
 Classify Cuisine
 Analyze a Recipe Search Query
 Guess Nutrition by Dish Name
Ingredients
 Get Ingredient Information
 Convert Amounts
 Parse Ingredients
 Autocomplete Ingredient Search
 Get Ingredient Substitutes
 Get Ingredient Substitutes by ID
Products
 Search Grocery Products
 Search Grocery Products by UPC
 Get Product Information
 Get Comparable Products
 Autocomplete Product Search
 Classify Grocery Product
 Classify Grocery Product Bulk
 Map Ingredients to Grocery Products
Menu Items
 Search Menu Items
 Get Menu Item Information
 Autocomplete Menu Item Search

You might also like