Posts

Showing posts from March, 2016

OBSERVE nextPageToken IN YOUTUBE JSON DATA

Image
Understanding the nextPageToken property is necessary in creating program for searching more than 50 youtube videos. Currently we do not have trouble finding "all videos (items) of a playlist, "all videos made by a certain user". But when looking more than 500 videos "by keyword" we have a problem because: 1. We can not immediately know the stop-point after the maximum number of video found. (where typeof next-page-token == 'underfined' ). 2. After the first 450 or 500 videos, will silently appear a number of duplicated videos FROM: https://code.google.com/p/gdata-issues/issues/detail?id=4282 Project Member We can't provide more than ~500 search results for any arbitrary YouTube query via the API without the quality of the search results severely degrading ( duplicates , etc.). The v1/v2 GData API was updated back in November to limit the number of search results returned to 500. If you specify a start-index of 500 or