YouTube API v3 totalResults field is returning 1 0

2019-02-20 04:11发布

1) I'm using YouTube API v3 and when i send this request:

https://www.googleapis.com/youtube/v3/search?part=id&type=video&key=MY_KEY&maxResults=50&publishedAfter=2013-09-02T17:00:01Z

It's returing me "totalResults": 1000000

I don't think that from 17:00:00 was added 1 000 000 movies. Also when i jump to page #2 using pageToken i'm getting:

"totalResults": 46269

What's going on?

2) Let's say that my search request has returned 1 000 000 totalResults. How far i can travel using pageToken?

1条回答
贪生不怕死
2楼-- · 2019-02-20 04:56

"totalResults" is an estimation and its value can change on the next page call. The limit for searches with version 2 is 1000. I suppose the limit will be the same with version 3.

查看更多
登录 后发表回答