Youtube v3

FREEMIUM
Par ytdlfree | Mise à jour לפני חודש | Data
Popularité

9.9 / 10

Latence

391ms

Niveau de service

100%

Health Check

100%

Retour à toutes les discussions

How can I use "nextPageToken"?

Rapid account: Dimitar 09
dimitar09
לפני 3 שנים
Hi I hope you are doing well.
Would you let me know how I can use "nextPageToken" to get the results with pagination?

Thanks!
Rapid account: Ytdlfree
ytdlfree Commented לפני 3 שנים

Hi,

For videos, use the id from the channel endpoint, and use it to get the data from video endpoint.

Rapid account: Dimitar 09
dimitar09 Commented לפני 3 שנים

Thanks, one more question,
I want to get “statistics” data of videos from channel videos api.
https://drive.google.com/file/d/1vIVLB2L8PMuTcuKC5GKF_DyGAvhqzSEY/view?usp=sharing
I tried to add “statistics” but it is not working.
Would you let me know what to do?
Thanks.

Rapid account: Ytdlfree
ytdlfree Commented לפני 3 שנים

Hi,

The data was showing the results in default relevance order.
An input box for order has been added. You may use it with order set to date.

Please note that the API follows Data API v3 standards.

Rapid account: Dimitar 09
dimitar09 Commented לפני 3 שנים

https://drive.google.com/file/d/1KUZV7U8WxLjsSJlIVvLNcsNjPMez6K-N/view

Please see this screenshot, I used “cache bust” feature but I am still not getting the latest order.

Rapid account: Ytdlfree
ytdlfree Commented לפני 3 שנים

As said earlier,
Data is cached, so to check the latest data, use the cache bust feature.

Rapid account: Dimitar 09
dimitar09 Commented לפני 3 שנים

Thanks for updating the nextpageToken issue.
I have one important thing to use this scrapper for my work. I need to get a result in latest order but it seems like the channel videos api is not returning the results in latest order. Can you please let me know about it?

Rapid account: Ytdlfree
ytdlfree Commented לפני 3 שנים

Input box added.

Rapid account: Themindfactory
Themindfactory Commented לפני 3 שנים

So can you add pageToken input box so we can use it?

Thanks!

Rapid account: Ytdlfree
ytdlfree Commented לפני 3 שנים

P.S.

Data is cached, so to check the latest data, use the cache bust feature.

Rapid account: Ytdlfree
ytdlfree Commented לפני 3 שנים

Hi,

I understand your concern. It is assumed that the developers who intend to use the API must be aware of the Data API v3. You need to call the API just as you do in the Data API v3. Please make the API request and send the request to API endpoint like:

for first request:
/search?channelId=UCBVjMGOIkavEAhyqpxJ73Dw&part=snippet%2Cid&maxResults=50

For next page:
/search?channelId=UCBVjMGOIkavEAhyqpxJ73Dw&part=snippet%2Cid&maxResults=50&pageToken=[nextPageToken value from the previous response]

This applies to all endpoints wherever paging is applicable.

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

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