Hi, as you might know, Youtube deprecated v2 of its data API and plans to shut it down soon. If, like me, you use Tiny Tiny RSS to get updates to interesting Youtube channels you will have a problem soon.
I have written a PHP script that talks to Youtube in the v3 API and returns RSS-compatible output. To use it, you need to register as a developer with Google and get an API key (this is free). I can post the script here but would like a confirmation that I am not breaking any rules. Also, if someone wants me to run that script on a publicly accessible server I could do that too.
Youtube deprecated v2 API
Re: Youtube deprecated v2 API
New API also has RSS feeds. They just changed links. And feed content is different (it shows up in TTRSS as empty article with title linking to video.
-
- Bear Rating Trainee
- Posts: 7
- Joined: 19 Mar 2013, 09:04
Re: Youtube deprecated v2 API
That I missed. I found a FAQ entry here that specifically states that there is no alternative to v2 RSS feeds. Oh well, since I already wrote it, might as well use it and keep the format.
Re: Youtube deprecated v2 API
Well, when they but those announcements into RSS feeds, then it showed how you can export your subscriptions as OPML with new RSS feeds. https://support.google.com/youtube/answer/6098135?p=yt_devicesupport&hl=en&rd=1 under RSS reader. I don't remember seeing that "To subscribe to a single channel’s uploads, paste the channel URL into your feed reader." sentence then though.
Re: Youtube deprecated v2 API
Also, I don't understand, how normal users should get that "channel URL". I mean - I cannot see, how simply pasting channel's main page into feed reader should give RSS feed instead of normal web page.
Re: Youtube deprecated v2 API
Strange thing is, when I checked main page of one channel, it does have link rel="alternate" type="application/rss+xml" title="RSS" href="... in it. But for some reason Firefox does not seem to recognize it. But anyway, it seems, that when pasting webpage link TTRSS actually scans page for RSS link, so it works just fine.
-
- Bear Rating Trainee
- Posts: 7
- Joined: 19 Mar 2013, 09:04
Re: Youtube deprecated v2 API
Yea, the channel page has a link to the RSS feed. I didn't check this, read the faq and assumed that RSS was no longer available.
Re: Youtube deprecated v2 API
For those interested in having youtube, vimeo as RSS :
Replace USERNAME, CHANNELID and PLAYLISTID
YouTube RSS Feed URLs:
For Vimeo :
Use this plugin to have vimeo embed :
https://github.com/tribut/ttrss-videoframes
Replace USERNAME, CHANNELID and PLAYLISTID
YouTube RSS Feed URLs:
Code: Select all
https://www.youtube.com/feeds/videos.xml?user=USERNAME
https://www.youtube.com/feeds/videos.xml?channel_id=CHANNELID
https://www.youtube.com/feeds/videos.xml?playlist_id=PLAYLISTID
For Vimeo :
Code: Select all
https://vimeo.com/channels/CHANNELID/videos/rss
http://vimeo.com/USERNAME/likes/rss
http://vimeo.com/USERNAME/videos/rss
Use this plugin to have vimeo embed :
https://github.com/tribut/ttrss-videoframes
Who is online
Users browsing this forum: No registered users and 1 guest