DIY Video Sitemaps using The Viddler API (Ruby)

A simple way to create your own video sitemap files for your site. A PHP version of this (without a cli) exists at


$ gem install viddler-sitemaps

Run from CLI

$ viddler-sitemaps -k myapikey -u myviddlerusername -p myvidlerpass /folder/to/save/xml/files
  #=> Indexed 105 videos to /folder/to/save/xml/files

Run from your ruby code

require 'rubygems'
require 'viddler-sitemaps'

sitemap =, username, password)
indexed_videos = sitemap.generate!(folder)
puts "Indexed #{indexed_videos} videos to #{folder}"

Code Docs