Yahoo Finance

FREEMIUM
Par Api Dojo | Mise à jour 7時間前 | Finance
Popularité

9.9 / 10

Latence

1,827ms

Niveau de service

100%

Health Check

N/A

Retour à toutes les discussions

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.

Participez à la discussion - ajoutez un commentaire ci-dessous:

Connectez-vous / Inscrivez-vous pour publier de nouveaux commentaires