Recipe - Food - Nutrition

FREEMIUM
Verified
By David | Updated 5 days ago | Food
Popularity

9.9 / 10

Latency

536ms

Service Level

100%

Health Check

N/A

Back to All Discussions

Api help

Rapid account: Bantter
Bantter
8 years ago

I want to integrate Visualize Nutrition api in my web.
please help me how to add ingredients per line . (send me demo example to suraj@prismatric.com if possible)
https://market.mashape.com/spoonacular/recipe-food-nutrition

Rapid account: Bantter
Bantter Commented 8 years ago

Thank you for support.
I need response in json so how do i do ?

Rapid account: Spoonacular
spoonacular Commented 8 years ago

Hey, just put a \n between each ingredient like so:

curl -X POST --include ‘https://spoonacular-recipe-food-nutrition-v1.p.mashape.com/recipes/visualizeNutrition
-H ‘X-Mashape-Key: YOUR-KEY’
-H ‘Content-Type: application/x-www-form-urlencoded’
-d ‘defaultCss=checked’
-d ‘ingredientList=3 oz flour\2 cups water’
-d ‘servings=2’

Best,
David

Join in the discussion - add comment below:

Login / Signup to post new comments