Yahoo Finance

FREEMIUM
От Api Dojo | Обновлено 21 days ago | Finance
Популярность

9.9 / 10

Задержка

1,768ms

Уровень обслуживания

100%

Health Check

N/A

Назад ко всем обсуждениям

Pagination

Rapid account: Qurazor 1
qurazor1
3 years ago

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 3 years ago

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 3 years ago

So how to fetch more than 8 pages?

Rapid account: Qurazor 1
qurazor1 Commented 3 years ago

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

Rapid account: Apidojo
apidojo Commented 3 years ago

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 3 years ago

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 3 years ago

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.

Присоединяйтесь к обсуждению – добавьте комментарий ниже:

Войдите / Зарегистрируйтесь, чтобы публиковать новые комментарии