IG

FREEMIUM
От Crawler | Обновлено 15 дней назад | Social
Популярность

9.9 / 10

Задержка

3,259ms

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

100%

Health Check

N/A

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

What is next_cursor and how to use it?

Rapid account: Abidzarmuhammad 25
abidzarmuhammad25
4 года назад

What value is needed for using pagination in next_cursor parameter?

Rapid account: Abidzarmuhammad 25
abidzarmuhammad25 Commented 4 года назад

Oh i got it, thank you very much 😄

Rapid account: Yuananf
yuananf Commented 4 года назад

I suppose you are talking about Medias/HashTagMedias, next_cursor are the pagination parameter. For the next page, just replace next_cursor with ‘end_cursor’ from the result.

For example, first time you can ignore the next_cursor parameter, when you get the result, you will find something like

"page_info":{
"has_next_page":true
"end_cursor":"QVFBdEhCb08yNUxLZ0tmRVVPWkJBQ2oyRjN0dmJxTVlkMEhSVllPOFJKWlB3RzY3Z3RsaEFkSlQzM0g4eVVwbS1yRm5SaHVCdnFrNFJfcjFrdkt4MFFENg=="
}

Then in your next request, set the value of next_cursor as this end_cursor value, and so on.

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

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