Yahoo Finance

부분 유료
분류별 Api Dojo | 업데이트됨 4 घंटे पहले | Finance
인기

9.9 / 10

지연 시간

1,827ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

Pagination

Rapid account: Qurazor 1
qurazor1
4 वर्ष पहले

I have never seen a worse pagination interface realisation, but after about an hour of randomly trying different things, i finally figured out, how to use it:

  1. use content-type: text/plain
  2. send first request without payload
  3. json decode the response and extract data[‘data’][‘main’][‘pagination’][‘uuids’]
  4. replace all double quotes (") with escaped double qoutes (")
  5. send the resulting string as a payload to get the next page.
Rapid account: Apidojo
apidojo Commented 4 वर्ष पहले

Hello,

Please check the official site and experience whether or not there are limited pages for news, and how far you may scroll the page down. The behavior should be as same as each other.

Regards.

Rapid account: Qurazor 1
qurazor1 Commented 4 वर्ष पहले

So how to fetch more than 8 pages?

Rapid account: Qurazor 1
qurazor1 Commented 4 वर्ष पहले

The issue is that I can’t fetch more than 8 pages.

Rapid account: Apidojo
apidojo Commented 4 वर्ष पहले

Hello,

The data provider always limit the number of items per response to protect their servers from heavy load. We have nothing to deal with it.

Regards.

Rapid account: Qurazor 1
qurazor1 Commented 4 वर्ष पहले

Now when I got it working I can only fetch news for the past 24h and they are not sorted in any order:
2020-12-04T05:29:17Z
2020-12-03T19:53:19Z
2020-12-02T18:42:31Z
2020-12-02T20:40:38Z
2020-12-04T09:30:00Z
2020-12-04T05:25:03Z
2020-12-03T15:42:00Z
2020-12-03T17:40:31Z

these are the dates of first item in the resulting array. Why isn’t it sorted and why am I only able to parse 8 pages?

Rapid account: Apidojo
apidojo Commented 4 वर्ष पहले

Hello,

Thank you for the information. There is issue with UI rendering of RapidAPI website that make the parameter description text not being displayed correctly. I have reported the issue to them but it has not been fixed yet.

Regards.

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

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