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
Related
I want to incease youtube data API V3 quota but their form "YouTube Data API Quota Extension Application" can not submit beacause it use captchar V1 (it needs using V2 but they didn't upgrade its in this form)
Pls help me, show me the way to send its. I found Youtube data API support but seem they are not existting.
The only way to ask for the quota increase is through the said form.
To deal with the recaptcha v2 upgrade, follow the instructions here.
If your site still uses reCAPTCHA v1, please upgrade to reCAPTCHA v2
immediately. We no longer support reCAPTCHA v1. Any calls to the v1
API will not work after March 31, 2018. Please register a new
key and upgrade to v2.
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
These days I noticed that Youtube API which I'm using on my project is no longer available, e.g.
https://gdata.youtube.com/feeds/api/videos/dLEk9yiXVQs?v=2
returns HTTP 410 response code which means that requested resource is no longer available and will not be available again.
What should I use instead?
If I'm understanding your question correctly then you should be using https://www.googleapis.com/youtube/v3/videos?id=<video_id>&key=<YOUR_API_KEY>&part=snippet from now on.
Google shutdown the old API effective April 20th, 2015.
Take a look at the newest v3 API getting started.
You can use this link with your Youtube channel id after the = and it should work.
https://www.youtube.com/feeds/videos.xml?channel_id= your youtube channel id number
I have problem with YouTube Direct project...
Made all as it is here: YouTube Direct: Getting Started Guide
When I click on "Authenticate" here:
Screenshot
I have a problem with authentication:
Deprecated APIs were discontinued on April 20th, 2015. To restore service, update to the replacement API."
I was on stackoverflow, yt g+ etc... but cant find solution.
Any advice?
That video is from Dec 18, 2009 and refers to a version of the YouTube API that is out of date and no longer works.
You will need to find a tutorial for the current version of the youtube API 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