Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

How to paginate all Youtube Data API search results

$
0
0

I am using the Youtube Data API to search for upcoming event by search query.

The specific query is https://www.googleapis.com/youtube/v3/search?part=id%2Csnippet&eventType=upcoming&q=vs&type=video&key={api_key}

The pageInfo.totalResults returned is ~150272

Though when I try to paginate them, I only get through 147 items until the items array is empty in the response, and the nextPageToken is the same on every response, such that I continue to loop trying to get more results (eating up my API quota) and none are returned. Is this a bug?


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>