Is there any reason why after 19 search requests for videos with the topicId /m/019_rr, the API sends an undefined nextPageToken?
As it can be seen in the screenshot, the nextPageToken for the last request is undefined and the result for that request is also logged showing that it has an empty list of items.
The first request's pageInfo property says:
"pageInfo": {
"totalResults": 1000000,
"resultsPerPage": 50
},
So this means there surely must be more than 20 requests to be made.
The requests options I use are:
{
part: 'snippet',
maxResults: 50,
topicId: '/m/019_rr',
pageToken: nextPageToken || '',
regionCode: 'US',
key: config.googleApiKey
}
I am also sure this is not a quota issue.
Any help would be much appreciated.
