I am wondering is there a way to manager annotations and cards via Youtube data API V3.0
There is no official support for YouTube annotations. You can updates a channel's metadata.
To see how to update InVideo programming annotations, you can see this video
Related
I am using youtube api and some videos, which I am fetching are for YouTube premium. How can I filter them from not fetching these videos?
As always YouTube Data API v3 doesn't provide a basic feature: is a given video a premium one?
I would recommend you to use my open-source YouTube operational API. Indeed by requesting https://yt.lemnoslife.com/videos?part=isPremium&id=VIDEO_ID you'll receive a JSON where item['isPremium'] is a boolean stating whether or not the given video is a premium one.
With that you will be able to filter premium videos in search results with an additional call to my API.
I have a Spotify API key and a YouTube Data V3 API key that I use in a software program. My software is free to use and open source, and I do not charge for usage. My application/program interacts with users in this way:
a user provides a Spotify url, playlist, or code
the item is looked up through Spotify's API service and returns the title and the author, or in the case of a playlist, returns the title and author for each song in the playlist
the software takes the list of title-artist pairs and uses the YouTube Data V3 API to search for the appropriate YouTube links for each title-artist pair
the YouTube url for those songs are provided to the user via the software
Is this a valid, legal use of the YouTube Data V3 API?
I have looked through the YouTube API Services Developer Policies at https://developers.google.com/youtube/terms/developer-policies and I have not seen anything that indicates that this usage would be against the policies but wanted to make sure.
I have an application where we would like to display YouTube video comments. In the YouTube API 2 there was support for retrieving video comments - this functionality is no longer available in API 3.
As stated in the docs:
You can continue using the v2 API for comments and uploading video
captions for now, and we'll be adding this functionality into the v3
API soon. While we don’t have specific dates yet, we will release that
functionality so that developers have as much time as possible to
migrate to v3.
...there
will not be 100% feature parity between the v2 and v3 APIs. Please see
the v3 API documentation for more details as to what functionality is
supported in v3.
As I understand it, you need to register your app through the Google Developer console for the API you wish to use first, and there is no longer an option to add YouTube API 2. I tried sending a request to the old endpoint
https://gdata.youtube.com/feeds/api/videos/VideoIdHere/comments
but got the following response
No longer available
Is there a way I can still use the API 2 to retrieve video comments? How can I accomplish this?
Edit:
YouTube video comments are now available at the following endpoint
https://www.googleapis.com/youtube/v3/commentThreads
See the docs here
Nope, API v2 is completely deprecated and no longer available. You will need to use API v3.
Example call: https://www.googleapis.com/youtube/v3/commentThreads?part=snippet%2C+replies&maxResults=50&videoId=VIDEO_ID&order=time&textFormat=plainText&key=API_KEY
I have a C# program I wrote using the Youtube API V3 that manages my channel's videos.
I already have all the OAuth 2.0 stuff sorted out and I'm looking for a way to tell Youtube that the authenticated account watched the video.
The reason being that I use the "watched" feature to determine which of the videos in my feed is the last one I actually watched.
Is there a way to do that?
Or is it purposefully not in the API because it messes with the view count?
Of course I checked Google and Google's API reference first, didn't find anything.
I would like to display a list of videos from a YouTube playlist in an intranet application.
Is it possible to get the list of videos from a YouTube playlist using the Data api (or any other way) without requiring the user to login?
Everything that I have read so far in the YouTube data api requires the user to be signed in to authenticate.
unfortunately, you can't access youtube data API with anonymously user.
Your application must have authorization credentials to be able to use the YouTube Data API.
The Developers Console associates your credentials with the APIs that you indicate that your application will use. Note that the Developers Console does not allow you to select the YouTube Data API (v2). However, authorization credentials for the v3 API will also work for the v2 API.
If possible, you should actually use YouTube Data API (v3) rather than the v2 API in your application. The YouTube API blog explains some of the benefits that the newer API offers, and we have added a year's worth of additional functionality to the API since that blog post!
related link : https://developers.google.com/youtube/2.0/developers_guide_protocol_oauth2#OAuth2_Client_Side_Web_Applications_Flow