XML Sitemap for Videos – Why They’re Important

January 15, 2025

As discussed in previous posts, XML Sitemaps are essential and provide search engines like Google with the information they need to index your website content appropriately. But, what we haven’t discussed before are XML sitemaps for videos. Did you know that Google and other search engines also want you to create sitemaps for your video content? Like sitemaps for different types of web content, an XML sitemap for videos tells search engines like Google how you’d like your video content indexed. However, they are a little bit different. So, let’s break down video XML sitemaps a little further.

The Benefits of Providing Google with an XML Sitemap for Videos

There are several benefits to using XML sitemaps for video content on any webpage. Some of these benefits include things like:

  • Indexing of your video content on search engines like Google
  • A better chance of ranking on video. google.search searches
  • You will get an opportunity to provide more details about your content through the use of structured data schema
  • An aesthetically pleasing thumbnail for your video content on the SERP (Search Engine Results Page)

Getting Your Video Embed Content Ready for an XML Sitemap

Before you reap the rewards of an XML sitemap for videos, you must prepare your video content and embed code for indexing. Two commonly used methods for embedding and tagging video content with the necessary structured data schema object embed HTML and iFrame HTML. However, only the thing embed the process of coding a video embed in HTML will be crawled and indexed by Google. People have found a way to cheat this system by using object embedding HTML within an iFrame, no good research shows this is a viable solution. So, for simplicity (and to ensure you don’t do anything potentially risky with your sitemap), we will only explain the object embed method.

Tagging an Object Video Embed for an XML Sitemap

Object embed HTML for videos (and other content) is a way to tell a browser (or search engine) where to find the original video file (RAW file) for your video content. To tag an object video embed for indexing/ranking on search engines and your XML Sitemap, your code should look like this:

Object Embed HTML code example image

Once your embed code is situated and working as it should, it’s time to tag it up with the necessary structured data schema for indexing. For example, Google requires that your video content includes tags for the following information:

  • Title – The title of your video (should be identical to the title of your video wherever it is hosted).
  • Description – This should be identical to the meta description of the page where the video is being embedded.
  • Raw Video Host Location – The “src” link is shown in the embed code pictured above.
  • Thumbnail URL – The URL where the thumbnail for your video is stored (Google recommends you use a high-resolution image for this, up to 1920×1080).
  • URL of Video Play Page – This is the URL for the page where your video is hosted and played (like the YouTube URL for your video, for example).

Now that you know what information is required in your sitemap, it’s time to show you how to create an adequately tagged video XML sitemap document. To do this, start by creating a new record on your site and name it something like this:

sitemap-videos.xml

Move that document to the root of your site. This will give it a URL of something like this:

https://www.yourdomain.com/sitemaps-video.xml

Once you’ve created your sitemap file and moved it to the root of your website, it’s time to tag it up. Your finished file should have code that looks something like this:

Video XML Sitemap example image of code

Update Google Search Console with Your New Video XML Sitemap

After you’ve finished creating your video XML sitemap and placed it at the root of your website, you will need to inform Google where to find your new sitemap. To do this, load Google Search Console (if you haven’t set this up yet, refer to our post about GSC) and submit the URL of your video XML sitemap under the “Sitemaps” tab. After that, Google will crawl your new sitemap and index your videos (it can take over a week for Google actually to crawl your site, so be patient)!

This is the Tip of the Iceberg

The aforementioned structured data schema markup for video XML sitemaps is just the tip of the iceberg when tagging a video for search indexing on Google. There are several other possibilities for structured data, including categories and authors. But those things aren’t required by Google for indexing your videos, so they weren’t included in our examples above. If you’d like to learn more about the extensive possibilities with video XML sitemap structured data, then feel free to contact the SEO experts at Contractor Advertising. Our experts know all about XML sitemap creation and maintenance and can handle every aspect for you. Just fill out the form below, and we’ll reach out to you ASAP!

Looking for help in Colorado? Check out our friends over at Smith Plumbing, Heating, Cooling & Electrical at one of their locations below:

Contractor Advertising Insights
Thanksgiving Travel Tips to Survive the Holiday November 25, 2025 Thanksgiving is almost here! While it’s easy to get wrapped up in the festivities surrounding the day, remember that Thanksgiving is one of the biggest... Read more »
Why Doesn’t My Business Show Up In Local Search? September 12, 2025 Why doesn’t your business appear in local searches on Google and other search engines? Well, the answers might surprise you! Learn all about local search... Read more »
Intent-Based Keywords – The Basics July 2, 2025 We all know that keywords are the foundation of SEO (Search Engine Optimization) and search in general. However, many of us fail to realize that... Read more »
Not Advertising on Social Media? Don’t Miss the Boat June 4, 2025 Let’s assume you run a plumbing business and that you’re wondering how to reach more customers in the 21st century. Well, it’s a whole lot... Read more »
OK Google, How Do I Optimize for Voice Search? May 14, 2025 Voice searches are starting to dominate the marketplace seriously. 40% of adults use voice search at least once a day! In other words, if you’re... Read more »
Do You Need SEO? April 16, 2025 If your business has a website, you’ve most likely asked: “Do I need SEO?” Before we can answer that, we should first explain what SEO... Read more »
See How We Can Boost Your Business. Get Your Free Analysis Now!