Get Youtube Playlist By Title
I'd like to create a private youtube playlist with the title 'my very unique title'. I'm able to create private playlists. But I'd like to create it only if it doesn't exists yet.
Solution 1:
Only way to do a direct word search is with the "search" parameter ( info found HERE).
But this will return for ALL of youtube and has a 100 Quota cost per search.
I would recommend to use the "playlists.list" to do your search.
Then you can look at each one for your "title".
[items] => Array
(
[0] => Array
(
[kind] => youtube#playlist
[etag] => "uQc-MPTsstrHkQcRXL3IWLmeNsM/26W6-xxxxxxxx"
[id] => PLsxxxxxxxxxxxxxxxxxxxxxx
[snippet] => Array
(
[publishedAt] => some date
[channelId] => channelId
[title] => title you are looking for
[description] => Some description
[thumbnails] => Array
First will be [0] node, up to node [49] if that many.
And yes you will need to loop through the results each node at a time.
Post a Comment for "Get Youtube Playlist By Title"