Recipe - Food - Nutrition

免费增值
Verified
通过 David | 已更新 il y a 21 jours | Food
人气

9.9 / 10

延迟

504ms

服务等级

100%

Health Check

N/A

返回所有讨论

get recipes with using only part of recipe title

Rapid account: Oehqoehfo
oehqoehfo
il y a 4 ans

when user searches for example “chocolate” in form tag, I want to send a request and get all recipes with “chocolate” included in title.

I tried both
"https://api.spoonacular.com/recipes/cuisine?title=chocolate"; and
"https://api.spoonacular.com/recipes/cuisine?title=“chocolate”";

but they both show
{“status”:405,“code”:0,“message”:“We’re so sorry, something went wrong. If this error persists, please contact us.”,“link”:“https://www.mashape.com/webknox/”}

what is wrong with my url?

Rapid account: Spoonacular
spoonacular Commented il y a 4 ans

You try to send a GET request to a POST endpoint: https://spoonacular.com/food-api/docs#Classify-Cuisine

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论