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.
Join in the discussion - add comment below:
My bad! I typed
instructionRequired
and notinstructionsRequired
. Works great!How did you build this request string? The correct parameter is “instructionsRequired” (with an “s” after instruction).
Is this parameter on the GET
https://spoonacular-recipe-food-nutrition-v1.p.mashape.com/recipes/search
endpoint because when I request this URLhttps://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.Search endpoints now have the parameter “instructionRequired”. If you set this to true, only recipes with instructions will be returned.
I will get back to you end of this week regarding this.