What is the maximum results returned for YouTube Data API v3 call

后端 未结 2 1938
半阙折子戏
半阙折子戏 2021-01-06 21:07

Context

I am in the process of providing some consultancy on doing a HTTP GET using YouTube Data API V3; in order to develop a Windows based application to GET a l

2条回答
  •  Happy的楠姐
    2021-01-06 21:39

    The API won't provide more than ~500 search results for any arbitrary query. It's by design. Technically, it means that the nextPageToken field won't be returned once you hit ~500 results. No additional parameter can change that.

    If you want more than ~500 results for a query, you have to split it into more specific sub-queries. I'd suggest using the publishedAfter and publishedBefore parameters to achieve that, but feel free to experiment with the other ones here.

提交回复
热议问题