Skip to main content
Question

How do I replace YouTube media URLs in an RSS feed with CDN-hosted files?

  • 24 July 2024
  • 1 reply
  • 10 views

RSS flow I would like to explore:
 

  1. Pull RSS feed from a YouTube channel
  2. Replace the media:content URL from the YouTube Video Source to a CDN hosted file (DigitalOcean Spaces, AWS S3, or other?)
  3. Post the XML with the newly added URL in the media:content data field to a custom domain
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 7
Badge +5

Hi @punch,

 

Welcome to the community. To replace YouTube media URLs in an RSS feed with CDN-hosted files via Zapier, follow these steps:

 

Get the Channel ID: First, obtain the URL for the YouTube channel you want to follow. You can either:

 

 

Create the CDN URL: Set up a CDN (Content Delivery Network) to host your media files. For example, you can use DigitalOcean Spaces, AWS S3, or another service. Make sure you have the CDN URL for your hosted files.

 

Modify the RSS Feed: Replace the media content URL with your CDN-hosted file URL in the YouTube RSS feed. You can do this programmatically by parsing the XML feed and updating the relevant field.

 

Integrate with Your Custom Domain: Post the modified XML feed with the new media URLs to your custom domain.

 

Remember to set up a Zap in Zapier that triggers when new videos are published on the YouTube channel. You can use the “RSS by Zapier” app to fetch the modified feed and take further actions based on your requirements. If you have additional questions, feel free to ask. Thanks!