TrailAPI

부분 유료
분류별 trailapi | 업데이트됨 לפני 14 ימים | Travel
인기

9.3 / 10

지연 시간

1,222ms

서비스 수준

99%

Health Check

N/A

모든 토론으로 돌아가기

API not returning results correct results for cooking directions - "text": null

Rapid account: Rodrigopuravida
rodrigopuravida
לפני 9 שנים
  1. Under - https://www.mashape.com/webknox/recipe#
  2. Extract Recipe Data
  3. Enter this url (http://www.food.com/recipe/uncle-bills-sushi-rice-and-california-rolls-456629) and click Test Endpoint -

Actual Result: Dictionary returns “text”: null
In this case text is supposed to return cooking directions. But if you actually go the the site - http://www.food.com/recipe/uncle-bills-sushi-rice-and-california-rolls-456629
IT DOES contain directions.

This API sometimes returns results and sometimes it does not but what I noticed is that the actual website ALWAYS has directions.

Rapid account: Webknox
webknox Commented לפני 9 שנים

Glad it worked 😃

Rapid account: Rodrigopuravida
rodrigopuravida Commented לפני 9 שנים

Thanks. Let me try it today and will let you know.
This worked. Thank you very much !!!

Rapid account: Webknox
webknox Commented לפני 9 שנים

Hi,

you are right. The reason is that I serve the data from the db if I know the recipe already. And apparently the instructions were not correctly extracted back then. I built a workaround for you: I added the query parameter “forceExtraction=true” that you can add to the request. This way the page is extracted again whether I have it already or not. Please only set forceExtraction to true when information is missing.

Let me know whether that helps, best,
David

Rapid account: Rodrigopuravida
rodrigopuravida Commented לפני 9 שנים

In my last comment I meant to say "this API sometimes returns “text” results and sometimes it does not. Did not mean to make this a general statement.

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

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