Recipe - Food - Nutrition

ÜCRETSİZ PREMIUM
Verified
Taraf David | Güncelleyen 21 days ago | Food
Popülerlik

9.9 / 10

Gecikme

504ms

Hizmet Düzeyi

100%

Health Check

N/A

Tüm Tartışmalara Dön

filter results with no instructions

Rapid account: Parynaz
parynaz
7 years ago

Hi is there a way to filter out recipes without instructions? At this point I would have to make a function that gets the recipe details and then filters through them to find the ones without instructions but that is another individual API call for each returned recipe so that it not practical. Thanks

EDIT: Some of the recipes with no instructions should have them. For example : http://www.eatingwell.com/recipes/raw_kale_salad_roasted_garlic_dressing.html
returns null for instructions when I do a get request search but when I do an import from any website or blog, your API is able to get the instructions for it. So the API has the functionality to not have instruction be null because it works when it’s imported but not always when searched.

Rapid account: Cookbookplus
cookbookplus Commented 7 years ago

My bad! I typed instructionRequired and not instructionsRequired. Works great!

Rapid account: Spoonacular
spoonacular Commented 7 years ago

How did you build this request string? The correct parameter is “instructionsRequired” (with an “s” after instruction).

Rapid account: Cookbookplus
cookbookplus Commented 7 years ago

Is this parameter on the GET https://spoonacular-recipe-food-nutrition-v1.p.mashape.com/recipes/search endpoint because when I request this URL https://spoonacular-recipe-food-nutrition-v1.p.mashape.com/recipes/search?instructionRequired=true&limitLicense=false&number=100&offset=0&query=apple I still have search results (eg. Caramel Apple Pie #70001) whose instructions are empty even after I request analyzedInstructions.

Rapid account: Spoonacular
spoonacular Commented 7 years ago

Search endpoints now have the parameter “instructionRequired”. If you set this to true, only recipes with instructions will be returned.

Rapid account: Spoonacular
spoonacular Commented 7 years ago

I will get back to you end of this week regarding this.

Aşağıya yorum ekleyerek tartışmaya katılın:

Yeni yorumlar göndermek için giriş yapın / kaydolun