Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Youtube API returning unlisted videos

In my app I use the YouTube API. I got the "uploads" related playlist of a channel resource, and then list all videos.

This worked fine for some time, but now, this playlist is returning 'unlisted' videos like this:

"status": {
  "privacyStatus": "unlisted"
}

Is there a way to filter these videos? I thought they were 'hidden', but they do show up...

Edit: It is even returning private videos:

"status": {
  "privacyStatus": "private"
}
like image 355
Fabio R Lopes Avatar asked Nov 01 '22 13:11

Fabio R Lopes


1 Answers

Since you are the owner of that channel it returns all the videos available. IF you were trying to see someone else's uploads, it would show only public ones.

Look at my open source project: Android Direct Lite to see, how I show only public ones.

like image 90
Ibrahim Ulukaya Avatar answered Dec 05 '22 23:12

Ibrahim Ulukaya