Inferensys

Glossary

Video Sitemap

An extension of the XML sitemap protocol that provides metadata about video content on a page, including duration, thumbnail location, and family-friendliness status.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
CRAWLER DIRECTIVE

What is a Video Sitemap?

A Video Sitemap is an extension of the XML Sitemap protocol that provides search engines with structured metadata about video content embedded on a webpage, enabling richer indexing and enhanced presentation in search results.

A Video Sitemap is a specialized XML file or a set of <video:video> tags embedded within a standard XML Sitemap, designed to expose video-specific metadata to crawlers. It explicitly declares the location of a video's thumbnail, its raw file URL or player location, duration, and family-friendliness status, ensuring search engines can discover and understand video content that might otherwise be opaque to traditional HTML parsing.

By implementing a Video Sitemap, developers provide precise signals for video indexing, including expiration dates, live-stream status, and geographic restrictions. This structured data feed is critical for programmatic content infrastructure, allowing massive video libraries to be efficiently crawled without relying on bots to execute complex JavaScript players or guess the og:video tags, directly improving rich snippet eligibility in search results.

PROTOCOL EXTENSIONS

Key Features of Video Sitemaps

Video sitemaps extend the standard XML sitemap protocol with a dedicated namespace to provide search engines with rich metadata about video content embedded on a page, enabling enhanced rich results and indexing.

01

Core Video Metadata Tags

The video sitemap protocol introduces a suite of required and optional tags within the <video:video> element. Required tags include <video:thumbnail_loc> (a URL pointing to a representative image), <video:title>, and <video:description>. Optional but critical tags include <video:content_loc> (the actual video file URL) or <video:player_loc> (an embeddable player URL). Providing the raw file location via content_loc is preferred for direct indexing.

02

Thumbnail Specification

The <video:thumbnail_loc> tag is mandatory and must point to a static image file representing the video. Search engines use this thumbnail in rich results. The URL must be crawlable and not blocked by robots.txt. Supported formats typically include .jpg, .png, and .gif. The image should be at least 160x90 pixels to meet minimum resolution requirements for display in search results.

03

Duration and Family-Friendliness

Two critical optional tags provide context for indexing. <video:duration> specifies the runtime in seconds (e.g., 305 for a 5-minute video). <video:family_friendly> accepts a boolean yes or no value. Marking content as no prevents it from appearing in filtered search results. Accurate duration data helps search engines cluster content by format (short-form vs. long-form).

04

Platform and Restriction Attributes

The <video:platform> tag allows specification of the hosting platform (e.g., web, mobile, tv). The <video:restriction> tag enables geo-fencing by defining countries where the video can or cannot be played, using ISO 3166 country codes and a relationship attribute set to allow or deny. This prevents serving restricted content to users in blocked regions.

05

Live Streaming Broadcast Metadata

For live content, the <video:live> tag signals that the video is a broadcast rather than on-demand. This tag accepts a boolean value. When set to yes, search engines may display a 'LIVE' badge in rich results. This tag should be removed or updated to no once the broadcast concludes to prevent stale live indicators.

06

Namespace Declaration and Validation

To be valid, the sitemap must declare the video namespace in the root <urlset> element: xmlns:video="http://www.google.com/schemas/sitemap-video/1.1". Each <url> entry can contain one <video:video> block, which itself can describe multiple videos on that page. Validation against the official XSD schema ensures parsers can process the file without errors.

PROTOCOL COMPARISON

Video Sitemap vs. Standard XML Sitemap

A feature-level comparison between the standard XML sitemap protocol and its video-specific extension, detailing the metadata capabilities each provides to search engine crawlers.

FeatureStandard XML SitemapVideo Sitemap

Primary Purpose

Lists URLs for crawling and indexing

Provides rich video metadata for each URL

Required Namespace

Video Thumbnail URL

Video Title and Description

Content Duration

Content Rating (Family-Friendly)

Video Embed URL or Player Location

Publication and Expiration Dates

VIDEO SITEMAP ESSENTIALS

Frequently Asked Questions

Clear answers to the most common technical questions about implementing, validating, and optimizing video sitemaps for search engine discovery.

A video sitemap is an extension of the XML sitemap protocol that provides search engines with structured metadata about video content embedded on a webpage. It works by wrapping video-specific tags—such as <video:title>, <video:description>, <video:thumbnail_loc>, and <video:content_loc>—within a standard <url> entry. This explicit declaration helps crawlers discover and index video content that might otherwise be invisible to them, especially when videos are loaded via JavaScript or hosted on a third-party platform. The sitemap communicates critical attributes including duration, upload date, family-friendliness status, and whether a subscription is required, enabling rich video snippets in search results.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.