can you query the YouTube Standardfeeds with the API v3 and will they be deprecated in the future?
We don't have standard feeds in the YouTube API V3.0 yet but are working on a new mechanism for V3.0.
Related
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
In Youtube Data API v2.0 there is a way to retrieve most_popular videos in standard video feeds by
https://gdata.youtube.com/feeds/api/standardfeeds/most_popular
But after April 20, 2015 after deprecation this kind of feed wont be available.
Is there any work around for this in Youtube Data API v3.0?
There is a #PopularOnYouTube channel. You could grab the videos from that channel with v3.
In V2, I can use: http://gdata.youtube.com/feeds/api/videos/?alt=json&author=XXX
However, V2 has been deprecated and can not be used anymore.
What's the correct replacement in Google API V3?
You should get your API key (for server or for client).
http://code.google.com/apis/console#access
And use https://www.googleapis.com/youtube/v3/search?part=snippet&channelId={CHANNEL_ID}&key={YOUR_API_KEY}
https://developers.google.com/youtube/v3/docs/search/list
But, there are some bug reports about this API now.
https://code.google.com/p/gdata-issues/issues/detail?id=6598
https://code.google.com/p/gdata-issues/issues/detail?id=6599
https://code.google.com/p/gdata-issues/issues/detail?id=6600
How to get captions from a youtube URL using app-script?
It has service in v2 - https://developers.google.com/youtube/2.0/developers_guide_protocol_captions.
It is deprecated officially.
How to do the same in Youtube API v3?
Captions are not currently exposed via the V3 api. The official word from the YouTube API team is that they will get this functionality available before v2 is removed (April 20th, 2015 is the earliest that might happen per the deprecation policy, but it could be later as well).
Here's a blog post that details it more fully:
http://apiblog.youtube.com/2014/03/committing-to-youtube-data-api-v3.html
The new youtube api (2.1 and 3.0) supports creating a channel for youtube if the google account is not linked to youtube
http://apiblog.youtube.com/2011/10/introducing-google-account-support-and.html
i am using C#, can any one hint me about how to do this?
There's no support for adding a YouTube channel to an unlinked Google Account in v3 of the API.
There is a v2.1 API call, but unfortunately the existing .NET GData client library doesn't have built-in support for that call, as you've noticed.
You can make the underlying HTTP PUT yourself using standard .NET HTTPWebRequest calls.
Alternatively, you can ask your users to go through the web-based flow starting with https://www.youtube.com/create_channel (or https://m.youtube.com/create_channel on mobile devices).