I'm trying to get all the videos from a channel, that has over 48,000 videos over a span of 12 years, whose title adhere to certain criteria.
I've set up a do while loop that runs as long as the API returns a "nextPageToken", but after retrieving the 20,000 most recent videos, the API response does not contain a "nextPageToken" field.
I'm using the following endpoint to get the data: https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=50&fields=nextPageToken,items(snippet(title,resourceId/videoId))&playlistId=PLAYLIST_ID&key=API_KEY&pageToken=PAGE_TOKEN