Recipe - Food - Nutrition

부분 유료
Verified
분류별 David | 업데이트됨 hace 21 días | Food
인기

9.9 / 10

지연 시간

504ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

filter results with no instructions

Rapid account: Parynaz
parynaz
hace 7 años

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 hace 7 años

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

Rapid account: Spoonacular
spoonacular Commented hace 7 años

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

Rapid account: Cookbookplus
cookbookplus Commented hace 7 años

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 hace 7 años

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 hace 7 años

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

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입