0

I can't find the answer to this one anywhere:

with the YouTube API V3, is it also possible to only list the videos from a channel that are not listed in playlists?

I am using this jsonUrl

https://www.googleapis.com/youtube/v3/search?channelId=....

hope someone has the answer!

KJS
  • 1,176
  • 1
  • 13
  • 29

2 Answers2

1

No, not from the API.

If you had specific playlists in mind, you could extract those videoIDs from the playlists and then check that list of IDs when fetching videoIDs from the channel. That's about all I can think of.

johnh10
  • 4,047
  • 1
  • 18
  • 30
0

To retrieve all videos from you channel, go to search.list and use the following parameters (choose list my videos):

type - video
q - LEAVE_THIS_BLANK
forMine - true
maxResults - 50
part - snippet

then Execute. It should return all vidoes. If there's more than 50, just use nextPageToken.

See related SO post.

ReyAnthonyRenacia
  • 17,219
  • 5
  • 37
  • 56
  • Thanks, but I would like to get the videos that are NOT listed in playlists of that channel. Is that possible you think? – KJS May 22 '18 at 12:59
  • 1
    Maybe, if you tried using [PlaylistItems](https://developers.google.com/youtube/v3/docs/playlistItems/list) get the videos, compare to the results of overall videos and find out which is not included in the playlist. – ReyAnthonyRenacia May 23 '18 at 02:11
  • Thanks again! We are actually doing that, but I was looking for an easier way :) – KJS May 24 '18 at 11:51