YouTube API: follow or subscribe to Playlist - youtube-api

Given one YouTube playlist ID, I would like to save or subscribe to that playlist and to be added to my library via API.
playlist added from a channel to my library
Already checked the API documentation, wondering if I'm missing something.
Thanks

Related

YouTube Data API returns channel for user without channel

I've got a YouTube user, which doesn't contain a YouTube channel. But the YouTube data API does return a channel, if I query the youtube.channels.list API method by using the "mine=true" attribute like in following example (1).
Example:
(1) Returns a channel (mine=true; by using OAuth):
https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.channels.list?part=snippet%252CcontentDetails%252Cstatistics&mine=true&_h=5&
This query (1) returns a channel which contains a channelId. Now I'm trying to query for the playlists of this channel by using the previously returned channelId.
(2) Returns a 404 "channel not found" error
https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.playlists.list?part=snippet&channelId=UCIReEy02ibumfYhQP3-0drQ&_h=4&
As described here it's possible to use a YouTube account without a channel but with limited functionality like using playlists:
With a Google Account, you can watch and like videos and subscribe to channels. However, without a YouTube channel, you have no public presence on YouTube. Even if you have a Google Account, you need to create a YouTube channel to upload videos, comment, or make playlists. You can use a computer or the YouTube mobile site to create a new channel.
What's the reason query (1) is returning a channel even if a YouTube account doesn't contain a channel?
BR
ninsky
[1] Returns a channel (mine=true; by using OAuth):
Because of every account on youtube itself a channel. They can do all the things they want like any channel can do e.g. upload videos. Also, we can make multiple channels under the same account.
[2] Doesn't return a channel (forUsername=UCIReEy02ibumfYhQP3-0drQ; by/without using OAuth):
Please make sure UCIReEy02ibumfYhQP3-0drQ is a valid username
I'm building something with the YouTube API. I've found a few oddities so far. The first thing is that a channel can have a title of 'blah blah - Topic' so you probably want to screen those out if you want to retrieve channels with their own content. If I'm right in my thinking, these are just channels with Playlists. Example: https://www.youtube.com/channel/UC6tQSWkTxbPNaJ_LQ-Ia6jQ/
Also be aware that channels don't have to have a unique title.
Finally there are many channels that return nothing from the API Channels.List method, even though they are channels. I'm still figuring these out. I don't think they are returned from searching through the API, but if you get your Channel IDs from another source then this could be an issue.

Youtube playlist api returns partial data

I've been trying to get tags for youtube videos using playlists/playlistItems api.
I've seen other questions about this and saw there's a possibility to do it with more than one call (make a call to get the videos, which has the tags).
For example: How to retrieve a YouTube video's tags with YouTube v3 API?, YouTube API - get tags for all videos with playlist query
BUT I see in their api documentation that the snippet in playlists api is supposed to include tags:
But it doesn't!
The url I'm using: https://www.googleapis.com/youtube/v3/playlists?part=snippet&channelIdz=&key=

YouTube API - Fetching playlistItems do not return unlisted items

Using the instructions here, I was able to get a list of all videos on a channel on except videos which are unlisted:
Youtube Api to fetch all videos on a Channel
The YouTube API documentation is not clear on whether I was able to retrieve unlisted channel using the playlistItems request, and this post seems to indicate that the behavior has changed multiple times:
Youtube API returning unlisted videos
Is there any solution on being able to retrieve a full list unlisted videos from the API from the channel? Also, for this specific channel, this API account is connected to the YouTube brand account as a Manager, and I'm not sure whether that changes the behavior of the API.

Upload video to specific channel

is there a way to upload videos through the Youtube API to a specific channel that I'm administrating.
https://developers.google.com/youtube/v3/docs/videos/insert
From what I see in the documentation the parameters onBehalfOfContentOwnerChannel is reserved to Youtube partners. Does this mean that I can only upload videos to my personal channel and not to one of my pages?
Thanks
As per documentation, you are correct. onBehalfOfContentOwnerChannel is only available for Youtube Partner only. If there is a way to be authorized that is when you do a transfer of ownership of the account but this should be done by the owner himself.
Reference related SO questions:
YouTube API - how to specify which channel to upload to
YouTube v3 API upload to channel
Hope this helps.

Version 3.0 alternative for YouTube 2.0 API playlist

We did have this playlist. It is great because using this info we can show a latest video on YouTube.
https://gdata.youtube.com/feeds/base/users/africawoodgrow/uploads?alt=rss&v=2&orderby=published
How do we receive the same information from the new 3.0 API?
The first thing you'll need to do is register for an API key -- you can do this by creating a project at console.developers.google.com, setting the YouTube data API to "on," and creating a public access key.
Once you have your API key, you'll need to get the channel ID you're interested in (rather than the username). If you don't know the channel ID, you can get it this way:
https://www.googleapis.com/youtube/v3/channels?part=snippet&forUsername={username}&key={YOUR_API_KEY}
Once you have the channel ID, you can get those videos with the search endpoint, like this:
https://www.googleapis.com/youtube/v3/search?order=date&part=snippet&channelId={channel id here}&maxResults=25&key={YOUR_API_KEY}
There are also a lot of other parameters you can use to retrieve videos; see https://developers.google.com/youtube/v3/docs/search/list for more details.

Resources