Reputation: 845
I am using Youtube search api for my application. I want to allow user to jump to a specific page number. I know there is something called firstPageToken and prevPageToken we get in the response. But how to retrieve the pageToken of specific page at specific count?
Any help will be appreciating.
Thanks in advance.
Upvotes: 1
Views: 2138
Reputation: 783
I've posted a solution for generating your own page tokens. I've only tested it for playlistItems, but it may be of some use.
Youtube Data API v3 pageToken for arbitrary page
Upvotes: 0
Reputation: 96
Youtube API only provides NextPageToken and PreviousPageToken, that's it, sorry: see documentation here: https://developers.google.com/youtube/v3/docs/videos/list
You can still make a pagination item but you will have to implement it by calling multiple times the URL, passing the NextPageToken as pageToken in your requestion every time, and caching results.
Upvotes: 1