Was User Watch History removed in YouTube Data API v3? - youtube

If you look at YouTube V3 Docs it will say
YouTube uses playlists to identify special collections of videos for a channel, such as: (...) watch history (...).
Now, if you go to Channels List API and make a call for part=contentDetails&mine=true it will list your information but watchHistory will appear as HL and watchLater as WL.
It makes me wonder, and so far I couldn't find any explicit mention, from Google/YouTube, were those playlists removed from API? IS there any way to actually get that information from an authenticated user?

For quite some time I observed the same values you mentioned on various channels. According to the docs, watch history and watch later playlists are deprecated.

Related

How to retrieve video including paid promotion by YouTube API

We want to retrieve video data including promotions.
Is there a way to get it with the YouTube Data API or the YouTube Analytics API?
Is there any other way?
A video that includes a promotion is a video that displays something like the image below.
Click to move to the following page.
https://support.google.com/youtube/answer/154235
Since you are only interested in knowing whether or not a video (based on its id) includes paid promotion, as far as I know there isn't any official YouTube Data API v3 endpoint answering your question.
However you can check if the video includes paid promotion by checking whether or not the YouTube webpage contains paidContentOverlayRenderer. You can proceed this way for instance:
curl -s https://www.youtube.com/watch?v=VIDEO_ID | grep "paidContentOverlayRenderer"
If something is returned it means that the video includes paid promotion otherwise it doesn't.

Does YouTube Data API V3 work with YouTube Music?

I would like to extract playlist data from Youtube Music, as well as metadata related to the songs in the said playlist. Is this possible with the Youtube Data V3 API, or YouTube Analytics API?
If so, where can I find documentation about calls and available metadata; I am not finding what I need on the YouTube Data API page. I am currently referencing PlaylistItems and Playlists in the reference Docs, but it seems that is geared to videos. Is that by design because you can toggle between video and audio in YT Music?
If possible is there an official Rust Crate?
Thank you in advance for the help.
Indeed, this feature is missing from YouTube Data API and quite a few other API users expressed the same need as yours.
The official Google staff account says the following:
This type of information is not available in the API. We have already raised a feature request for this but I can't guarantee that this feature will be implemented.
That is it: they may well implement this feature at some point, but, unfortunately, cannot tell when that'll happen.

Is there a way to use the Youtube API v3 to grab past subscriber counts?

From everything I have researched I have not been able to find a way to grab past subscriber count on a certain date. If I can't do it through Youtube API is there any other site that would have this kind of data I could grab for a bunch of different channels?
I'm not sure if this is possible with all of the updates to YouTube showing rounded subscriber counts. I would recommend checking out the YouTube Analytics & Reporting APIs at https://developers.google.com/youtube/analytics. Other than that, I would say not.

How to know if a video has been seen/hidden?

Using the YouTube Data API v3, is there a way to know if a video has been seen or hidden?
Reading through the docs, I didn't see anything on the Video resource that could match what I'm looking for.
Logically, “Watched” videos are just videos which have entries on your “Watch History” on Youtube.
You can get your “Watched” videos list through the API by getting your Watch History list from your channel. You can do that by using obtaining your Watch History ID which at the same time is also treated as playlistId.
Referring through the Channel API, make a GET HTTP request to
https://www.googleapis.com/youtube/v3/channels?part=contentDetails&mine=true&key={YOUR_API_KEY}
This should return a JSON which should contain an object with “watchHistory” key. The value paired with it is your playlistId which you can now use to make a request using the PlaylistItems API
https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId={YOUR_WATCHED_PLAYLIST_ID}&key={YOUR_API_KEY}
This should return a list of videos that your account has already watched.
As for getting the list of “Hidden” videos on your subscription feed. I think it's not achievable through the API. Checked on different responses of subscription and video resources but to no avail. No responses containing "watched" or "hidden" related.

youtube api differences between usr, channel and videos

I am starting to research the youtube api and trying to understand the hierarchy in objects within the api. I see that there was a version (v2) deprecated in 2014 that maybe adding to the confusion. When I think of channel, I think of an author/user that has many videos under his / her account. But when one looks at an example, what is a playlist vs channel vs user?
eg. these seem to be the same https://www.youtube.com/user/BlueXephos vs https://www.youtube.com/BlueXephos
From what I understand:
Channel - a group of videos and playlists from a user that can be searched and filtered. A user account can have different channels.
User - Alias for main channel. https://www.youtube.com/user/BohemianEagle/ same as https://www.youtube.com/channel/UCpnjlvS2zxhbNJuGNo_TxkQ
Playlist - a group of videos from a user that is meant to be played in a certain order. Cannot be searched/filtered.

Resources