youtube.search.list does not return any items after 9 pages

▼魔方 西西 提交于 2019-12-08 04:46:30

问题


I want to get a list of many youtube Channels.

After i got around 400 results (8 pages x 50 results/page), i call the 8th oder 9th page via:

GET https://www.googleapis.com/youtube/v3/search?part=id&maxResults=50&pageToken=CJADEAE&type=channel&key={YOUR_API_KEY}

i get only 16 results and from this point on the next 10 (or something) nextPageTokens return no items at all and after the 19th nextPageToken there is not even a nextPageToken in the response.

Nevertheless the query says "totalResults": 1000000, "resultsPerPage": 50.

Is this a bug or am I doing something wrong?


回答1:


The serch call is restricted. As it will start to return duplicates after a while, and it is almost an infinite number of possible results. So they have chosen to cap that search term.



来源:https://stackoverflow.com/questions/43294586/youtube-search-list-does-not-return-any-items-after-9-pages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!