0

How can I form requests using the youtube api to get the videos from a channel as an rss feed?

I read this question, where a link to the new api (V3) is given, but I couldn't find it there (I have no experience whatsoever with web programming). I tried with the deprecated syntax from api v2:

https://gdata.youtube.com/feeds/users/UCqAEtEr0A0Eo2IVcuWBfB9g/uploads

but it only works sometimes. (I am feeding this url to a yahoo pipes, and I search for a particular video using a keyword. I get an error when the keyword I enter does not match any video).

I also tried:

https://www.googleapis.com/youtube/v3/search?key={your_key_here}&channelId={channel_id_here}&part=snippet,id&order=date&maxResults=20

where I enter the channel id and the search key, but I get a 'bad request' error.

Community
  • 1
  • 1
giulio
  • 649
  • 2
  • 7
  • 20

1 Answers1

3

To answer the question in the headline:

Pre-append https://www.youtube.com/feeds/videos.xml?channel_id= to the channel unique identifier.

For example, lets assume that the channel url is https://www.youtube.com/channel/feed/UCpjNXONNE-JUz74ACsRCgcw. So the rss feed URL would be https://www.youtube.com/feeds/videos.xml?channel_id=UCpjNXONNE-JUz74ACsRCgcw.

Omer Dagan
  • 13,031
  • 15
  • 41
  • 59