# 视频 Sitemap

> 来源：Google Search Central

---

* Ranking and search appearance
  ** Visual Elements gallery  **
  ** Title links  **
  ** Snippets  **
  ** Images  **
  ** Videos  **
  ** Structured data  **
  ** Favicons  **

  * Site-specific guides
  ** Ecommerce  **
  ** International and multilingual sites  **

  * Data analysis
  ** Get started with Search Console  **
  ** Debug traffic drops  **
  ** Using Search Console and Google Analytics data for SEO  **
  ** Get started with Google Trends  **

[ Support ](https://developers.google.com/search/help) [ Blog ](https://developers.google.com/search/blog) [ What's new ](https://developers.google.com/search/news)

  ** All updates  **
  ** Documentation updates  **
  ** Ranking updates  **
  ** New YouTube videos  **
  ** Recent podcast episodes  **

[ Events ](https://developers.google.com/search/events) [ Case studies ](https://developers.google.com/search/case-studies)

`/`

  * English
  * Deutsch
  * Español
  * Español – América Latina
  * Français
  * Indonesia
  * Italiano
  * Polski
  * Português – Brasil
  * Tiếng Việt
  * Türkçe
  * Русский
  * العربيّة
  * हिंदी
  * ภาษาไทย
  * 中文 – 简体
  * 中文 – 繁體
  * 日本語
  * 한국어

Sign in

  ** Documentation **

[Search Console](https://goo.gle/searchconsole)

[ ](https://developers.google.com/search)

  ** Google Search Central **

  ** Documentation  **
    * More 
  ** Support  **
  ** Blog  **
  ** What's new  **
    * More 
  ** Events  **
  ** Case studies  **

  **Introduction**
  * Search Essentials

    **Overview**
    **Technical requirements**
    **Spam policies**

  * SEO fundamentals

    **SEO Starter Guide**
    **How Google Search works**
    **Creating helpful, reliable, people-first content**
    **Do you need an SEO?**
    **Maintaining your site's SEO**
    **Developer's guide to Search**
    **Get your website on Google**
    **Guidance on using generative AI**

  * Crawling and indexing

    **Overview**
    **File types Google can index**
    **URL structure**
    **Links**
    * Sitemaps

      **Learn about sitemaps**
      **Build and submit a sitemap**
      **Manage sitemaps with sitemap index file**
      * Sitemap extensions

        **Image sitemaps**
        **News sitemaps**
        **Video sitemaps and alternatives**
        **Combining sitemap extensions**

    * Crawler management

      **Ask Google to recrawl your URLs**
      **Troubleshoot crawl errors**
      * Google crawlers

        **List of Google crawlers**
        **Googlebot**
        **Reduce the Google crawl rate**
        **Verifying Googlebot and other Google crawlers**

    * robots.txt

      **Introduction to robots.txt**
      **How Google interprets the robots.txt specification**

    * Canonicalization

      **What is URL canonicalization**
      **How to specify a canonical URL with rel="canonical" and other methods**
      **Fix canonicalization issues**

    **Mobile site and mobile-first indexing**
    * AMP

      **AMP on Google Search guidelines**
      **Understand how AMP works in search results**
      **Enhance AMP content**
      **Validate AMP content**
      **Remove AMP content**

    * JavaScript

      **Understand the JavaScript SEO basics**
      **Fix search-related JavaScript problems**
      **Fix lazy-loaded content**
      **Dynamic rendering as a workaround**

    * Page and content metadata

      **Page metadata**
      * Meta tags

        **Meta tags and HTML attributes that Google supports**
        **Robots meta tag, data-nosnippet, and X-Robots-Tag**
        **noindex**

      **rel attributes**

    * Removals

      **Control what you share with Google**
      **Page removals**
      **Image removals**
      **Redacted information**

    * Site moves and changes

      **Redirects and Google Search**
      * Site moves

        **Changing your hosting**
        **Move a site with URL changes**

      **A/B testing**
      **Temporarily pause or disable a website**

  * Ranking and search appearance

    **Overview**
    **AI features**
    **Byline dates**
    **Favicons**
    **Featured snippets**
    **Flexible Sampling**
    **Google Discover**
    **Images**
    * Local features

      **Business details**
      **Top Places List**
      **Opting out of local search results**

    * Page experience

      **Understanding page experience**
      **Core Web Vitals**
      **Interstitials and dialogs**
      **Get started with signed exchanges on Google Search**

    **Preferred sources**
    * Ranking systems

      **A guide to Google Search ranking systems**
      **Reviews system**

    * Ranking updates

      **List of ranking updates**
      **Core updates**
      **Spam updates**

    **Site names**
    **Sitelinks**
    **Snippets**
    * Structured data

      **Understand how structured data works**
      **Structured data general guidelines**
      **Enriched search results**
      **Generate structured data with JavaScript**
      * Feature guides

        **All structured data features**
        **Article**
        **Book actions**
        **Breadcrumb**
        **Carousel**
        **Course list**
        **Dataset**
        **Discussion forum**
        **Education Q&A**
        **Employer aggregate rating**
        **Fact check**
        **Event**
        **FAQ**
        **Image metadata**
        **Job posting**
        **Local business**
        **Math solver**
        **Movie carousel**
        **Organization**
        * Shopping

          **Overview**
          **Product snippet**
          **Merchant listing**
          **Variants**
          **Loyalty program**
          **Merchant return policy**
          **Merchant shipping policy**

        **Profile page**
        **Q&A**
        **Recipe**
        **Review snippet**
        **Software app**
        **Speakable**
        **Subscription and paywalled content**
        **Vacation rental**
        **Video**

    **Title links**
    * Translated features

      **Translated results**
      **Ad networks and translation-related Google Search features**

    **Videos**
    **Visual Elements gallery**
    * Web Stories

      **Enable Web Stories on Google**
      **Best practices for creating Web Stories**
      **Web Story content policy**

    * Early Adopters Program

      **Package tracking**
      **Structured data carousels (beta)**

  * Monitoring and debugging

    **Debug drops in Search traffic**
    * Monitor with Search Console

      **Get started with Search Console**
      **Improve SEO with a bubble chart**
      **Using Search Console and Google Analytics data for SEO**

    * Debug with search operators

      **Overview**
      **site: search operator**
      **Google Images search operators**

    * Preventing and monitoring abuse

      **Overview**
      **Prevent user-generated spam**
      **Malware and unwanted software**
      **Prevent a malware infection**
      **Social engineering (phishing and deceptive sites)**
      **Google Safe Browsing Repeat Offenders Policy**

    **Get started with Google Trends**

  * Site-specific guides

    * Ecommerce

      **Overview**
      **Where content can appear**
      **Share product data**
      **Include structured data**
      **Launch a new website**
      **Write high quality reviews**
      **Design a URL structure**
      **Ecommerce site structure**
      **Pagination, incremental page loading, and Search**

    * International and multilingual

      **Overview**
      **Managing multi-regional and multilingual sites**
      **Tell Google about localized versions of your page**
      **How Google crawls locale-adaptive pages**

    * Explicit content

      **Guidelines for sites with explicit content**
      **What to do if your site is incorrectly flagged as explicit**

  * SEO fundamentals 
  ** Introduction  **
  ** Search Essentials  **
  ** SEO Starter Guide  **
  ** How Google Search Works  **
  ** Do you need an SEO?  **
  * Crawling and indexing 
  ** Sitemaps  **
  ** robots.txt  **
  ** Meta tags  **
  ** Crawler management  **
  ** Removals  **
  ** Canonicalization  **
  ** Redirects  **
  ** JavaScript SEO  **
  * Ranking and search appearance 
  ** Visual Elements gallery  **
  ** Title links  **
  ** Snippets  **
  ** Images  **
  ** Videos  **
  ** Structured data  **
  ** Favicons  **
  * Site-specific guides 
  ** Ecommerce  **
  ** International and multilingual sites  **
  * Data analysis 
  ** Get started with Search Console  **
  ** Debug traffic drops  **
  ** Using Search Console and Google Analytics data for SEO  **
  ** Get started with Google Trends  **

  ** All updates  **
  ** Documentation updates  **
  ** Ranking updates  **
  ** New YouTube videos  **
  ** Recent podcast episodes  **

  ** Home **
  ** Search Central **
  ** Documentation **

Send feedback 

# Video sitemaps and alternatives

A video sitemap is a [sitemap](/search/docs/crawling-indexing/sitemaps/overview) with additional information about videos hosted on your pages. Creating a video sitemap is a good way to help Google find and understand the video content on your site, especially content that was recently added or that we might not otherwise discover with our usual crawling mechanisms. 

Google recommends using video sitemaps, however we also support mRSS feeds. 

## Video sitemap best practices

Video sitemaps are based on generic sitemaps, so the [general sitemap best practices](/search/docs/crawling-indexing/sitemaps/build-sitemap#general-guidelines) also apply to video sitemaps. You can create a separate sitemap or mRSS feed just for video, or you can add video sitemap tags within an existing [sitemap](/search/docs/crawling-indexing/sitemaps/build-sitemap#xml), whichever is more convenient for you. 

Additionally, the following requirements apply to video sitemaps specifically:

  * Don't list videos that are unrelated to the content of the host page. For example, a video that is a small addendum to the page, or unrelated to the main text content. 
  * All files referenced in the video sitemap must be accessible to Googlebot. This means that all URLs in the video sitemap: 
    * must not be disallowed for crawling by [robots.txt](/search/docs/crawling-indexing/robots/intro) rules, 
    * must be accessible without metafiles and without logging in, 
    * must not be blocked by firewalls or similar mechanism, 
    * and must be accessible on a supported protocol: HTTP and FTP (streaming protocols are not supported). 

If you want to prevent spammers from accessing your video content at the `<player_loc>` or `<content_loc>` URLs, [verify that any bots accessing your server are really Googlebot](/search/docs/crawling-indexing/verifying-googlebot). 

For more tips about videos in Google Search, see our [video best practices](/search/docs/appearance/video). 

## Example video sitemap

The following example shows a regular sitemap with video extension. It includes two video entries nested in the single `<url>` tag. The first `<video>` entry includes all the tags that Google can use while the second only the required tags. 
    
    
    <?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
      <url>
        <loc>https://www.example.com/videos/some_video_landing_page.html</loc>
        <video:video>
          <video:thumbnail_loc>https://www.example.com/thumbs/123.jpg</video:thumbnail_loc>
          <video:title>Grilling steaks for summer</video:title>
          <video:description>
            Alkis shows you how to get perfectly done steaks every time
          </video:description>
          <video:content_loc>
            http://streamserver.example.com/video123.mp4
          </video:content_loc>
          <video:player_loc>
            https://www.example.com/videoplayer.php?video=123
          </video:player_loc>
          <video:duration>600</video:duration>
          <video:expiration_date>2021-11-05T19:20:30+08:00</video:expiration_date>
          <video:rating>4.2</video:rating>
          <video:view_count>12345</video:view_count>
          <video:publication_date>2007-11-05T19:20:30+08:00</video:publication_date>
          <video:family_friendly>yes</video:family_friendly>
          <video:restriction relationship="allow">IE GB US CA</video:restriction>
          <video:price currency="EUR">1.99</video:price>
          <video:requires_subscription>yes</video:requires_subscription>
          <video:uploader
            info="https://www.example.com/users/grillymcgrillerson">GrillyMcGrillerson
          </video:uploader>
          <video:live>no</video:live>
        </video:video>
        <video:video>
          <video:thumbnail_loc>https://www.example.com/thumbs/345.jpg</video:thumbnail_loc>
          <video:title>Grilling steaks for winter</video:title>
          <video:description>
            In the freezing cold, Roman shows you how to get perfectly done steaks every time.
          </video:description>
          <video:content_loc>
            http://streamserver.example.com/video345.mp4
          </video:content_loc>
          <video:player_loc>
            https://www.example.com/videoplayer.php?video=345
          </video:player_loc>
        </video:video>
      </url>
    </urlset>

#### More examples

The following example demonstrates how to add a Vimeo video embed to a video sitemap: 
    
    
    <?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
      <url>
        <loc>https://www.example.com/videos/some_video_landing_page.html</loc>
        <video:video>
          <video:thumbnail_loc>https://www.example.com/thumbs/123.jpg</video:thumbnail_loc>
          <video:title>Lizzi is painting the wall</video:title>
          <video:description>
            Gary is watching the paint dry on the wall Lizzi painted.
          </video:description>
          <video:player_loc>
            https://player.vimeo.com/video/987654321
          </video:player_loc>
        </video:video>
      </url>
    </urlset>

The following example demonstrates how to add a YouTube video embed to a video sitemap: 
    
    
    <?xml version="1.0" encoding="UTF-8"?>
    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
      <url>
        <loc>https://www.example.com/videos/some_video_landing_page.html</loc>
        <video:video>
          <video:thumbnail_loc>https://www.example.com/thumbs/345.jpg</video:thumbnail_loc>
          <video:title>John teaches cheese</video:title>
          <video:description>
            John explains the differences between a banana and cheese.
          </video:description>
          <video:player_loc>
            https://www.youtube.com/embed/1a2b3c4d
          </video:player_loc>
        </video:video>
      </url>
    </urlset>

## Video sitemap reference

The `video` tags are defined in the video sitemaps namespace: [`http://www.google.com/schemas/sitemap-video/1.1`](http://www.google.com/schemas/sitemap-video/1.1). Each tag can only be added one time per video, unless otherwise specified. 

To make sure Google can use your video sitemap, you must use the following required tags: 

Required tags  
---  
`<video:video>` |  The parent element for all information about a single video on the page specified by the `<loc>` tag. You can include multiple `<video:video>` tags nested in the `<loc>` tag, one for each video on the hosting page.   
`<video:thumbnail_loc>` |  A URL pointing to the video thumbnail image file. Follow the [video thumbnail requirements.](/search/docs/appearance/video#thumbnails)  
`<video:title>` |  The title of the video. All HTML entities must be escaped or wrapped in a [`CDATA` block](http://wikipedia.org/wiki/CDATA). We recommend that this match the video title displayed on the web page where the video is embedded.   
`<video:description>` |  A description of the video. Maximum 2048 characters. All HTML entities must be escaped or wrapped in a [`CDATA` block](http://wikipedia.org/wiki/CDATA). It must match the description displayed on the web page where the video is embedded, but it doesn't need to be a word-for-word match.   
`<video:content_loc>` |  A URL pointing to the actual video media file. The file must be one of the [supported formats.](/search/docs/appearance/video#file-types) It's required to provide either a `<video:content_loc>` or `<video:player_loc>` tag. We recommend that your provide the `<video:content_loc>` tag, if possible. This is the most effective way for Google to fetch your video content files. If `<video:content_loc>` isn't available, provide `<video:player_loc>` as an alternative.  Additional guidelines

  * HTML and Flash aren't supported formats.
  * Must not be the same as the URL in the parent `<loc>` tag.
  * This is the equivalent of `[VideoObject.contentUrl](/search/docs/appearance/structured-data/video)` in structured data. 
  * Best practice: If you want to restrict access to your content but still have it crawled, ensure that Googlebot can access your content by using [verifying Googlebot](/search/docs/crawling-indexing/verifying-googlebot). 

  
`<video:player_loc>` |  A URL pointing to a player for a specific video. Usually this is the information in the `src` attribute of an `<embed>` tag.  It's required to provide either a `<video:content_loc>` or `<video:player_loc>` tag. We recommend that your provide the `<video:content_loc>` tag, if possible. This is the most effective way for Google to fetch your video content files. If `<video:content_loc>` isn't available, provide `<video:player_loc>` as an alternative.  Additional guidelines

  * Must not be the same as the `<loc>` URL.
  * For Vimeo, YouTube, and other video hosting platforms that allow embedding videos through `iframe` videos, this value is used rather than `video:content_loc`. This is the equivalent of `[VideoObject.embedUrl](/search/docs/appearance/structured-data/video)` in structured data. 
  * Best practice: If you want to restrict access to your content but still have it crawled, ensure that Googlebot can access your content by using [verifying Googlebot](/search/docs/crawling-indexing/verifying-googlebot). 

  
  
Additionally, the following optional tags may help Google better understand your videos and its properties: 

Optional tags  
---  
`<video:duration>` |  The duration of the video, in seconds. Value must be from `1` to `28800` (8 hours).   
`<video:expiration_date>` |  The date after which the video is no longer be available, in [W3C format](http://www.w3.org/TR/NOTE-datetime). Omit this tag if your video doesn't expire. If present, Google Search won't show your video after this date. For recurring videos at the same URL, update the expiration date to the new expiration date.  Supported values are complete date (`YYYY-MM-DD`), or complete date plus hours, minutes and seconds, and timezone (`YYYY-MM-DDThh:mm:ss+TZD`).  Example: `2012-07-16T19:20:30+08:00`.  
`<video:rating>` |  The rating of the video. Supported values are float numbers in the range `0.0` (low) to `5.0` (high).   
`<video:view_count>` |  The number of times the video has been viewed.  
`<video:publication_date>` |  The date the video was first published, in [W3C format](http://www.w3.org/TR/NOTE-datetime). Supported values are complete date (`YYYY-MM-DD`) or complete date plus hours, minutes and seconds, and timezone (`YYYY-MM-DDThh:mm:ss+TZD`).  Example: `2007-07-16T19:20:30+08:00`  
`<video:family_friendly>` |  Whether the video is available with [SafeSearch](/search/docs/crawling-indexing/safesearch). If you omit this tag, the video is available when SafeSearch is turned on.  Supported values:

  * `yes`: The video is available when SafeSearch is turned on.
  * `no`: The video is only available when SafeSearch is turned off.

  
`<video:restriction>` |  Whether to show or hide your video in search results from specific countries. Specify a space-delimited list of country codes in [ISO 3166 format](http://wikipedia.org/wiki/ISO_3166). If there's no `<video:restriction>` tag, Google assumes that the video can be shown in all locations. Note that this tag only affects search results; it doesn't prevent a user from finding or playing your video in a restricted location through other means. [Learn more about applying country restrictions.](/search/docs/appearance/video#restrict_by_country) Attributes: If the parent tag `<video:restriction>` is used, the following attribute is required: 

  * `relationship`: Whether the video is allowed or denied in search results in the specified countries. Supported values are: 
    * `allow`: The listed countries are allowed and unlisted countries are denied. 
    * `deny`: The listed countries are denied and unlisted countries are allowed. 

Example: This example allows the video search result to be shown only in Canada and Mexico:  `<video:restriction relationship="allow">CA MX</video:restriction>`  
`<video:platform>` |  Whether to show or hide your video in search results on specified platform types. This is a list of space-delimited platform types. Note that this only affects search results on the specified device types; it doesn't prevent a user from playing your video on a restricted platform. If there's no `<video:platform>` tag, Google assumes that the video can be played on all platforms. [Learn more about applying platform restrictions.](/search/docs/appearance/video#restrict_by_platform) Supported values:

  * `web`: Computer browsers on desktops and laptops.
  * `mobile`: Mobile browsers, such as those on cellular phones or tablets. 
  * `tv`: TV browsers, such as those available through Google TV devices and game consoles. 

Attributes: If the parent tag `<video:platform>` is used, the following attributes are required: 

  * `relationship`: Specifies whether the video is restricted or permitted for the specified platforms. Supported values are: 
    * `allow`: Any omitted platforms will be denied. 
    * `deny`: Any omitted platforms will be allowed. 

Example: The following example allows users on web or TV, but not mobile devices:  
`<video:platform relationship="allow">web tv</video:platform>`  
`<video:requires_subscription>` |  Indicates whether a subscription (either paid or free) is required to view the video. Supported values are: 

  * `yes`: Subscription is required. 
  * `no`: Subscription is not required. 

  
`<video:uploader>` |  The video uploader's name. The string value can be a maximum of 255 characters.  Attributes:

  * `info` [Optional]: Specifies the URL of a web page with additional information about this uploader. This URL must be in the same domain as the `<loc>` tag.

  
`<video:live>` |  Indicates whether the video is a livestream. Supported values are:

  * `yes`: The video is a livestream. 
  * `no`: The video is not a livestream. 

  
`<video:tag>` |  An arbitrary string tag describing the video. Tags are generally very short descriptions of key concepts associated with a video or piece of content. A single video could have several tags, although it might belong to only one category. For example, a video about grilling food may belong in the "grilling" category, but could be tagged "steak", "meat", "summer", and "outdoor". Create a new `<video:tag>` element for each tag associated with a video. A maximum of 32 tags is permitted per video.   
  
### Deprecated tags and attributes

We removed the following tags and attributes from our documentation: `<video:category>`, `<video:gallery_loc>`, the `autoplay` and `allow_embed` attributes of the `<video:player_loc>` tag, the `<video:price>` tag and its attributes, and the `<video:tvshow>` tag and its attributes. See the [deprecation announcement](/search/blog/2022/05/spring-cleaning-sitemap-extensions) for more information. 

## Sitemap alternative: mRSS

While Google recommends using video sitemaps, we also support mRSS feeds. 

Google supports [mRSS](http://www.rssboard.org/media-rss), an RSS module that supplements the element capabilities of [RSS 2.0](http://cyber.law.harvard.edu/rss/rss.html). mRSS feeds are very similar to video sitemaps and can be tested, submitted, and updated just like sitemaps. 

For more information about media feeds, see the [official media RSS documentation](http://www.rssboard.org/media-rss). 

RSS vs mRSS: mRSS is a RSS extension used for syndicating multimedia files. It allows for a much more detailed description of the content than the RSS standard. 

### mRSS Example

Here's an example of an mRSS entry that provides all the tags that Google uses.
    
    
    <?xml version="1.0" encoding="UTF-8"?>
    <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:dcterms="http://purl.org/dc/terms/">
      <channel>
        <title>Example MRSS</title>
        <link>https://www.example.com/examples/mrss/</link>
        <description>MRSS Example</description>
        <item xmlns:media="http://search.yahoo.com/mrss/" xmlns:dcterms="http://purl.org/dc/terms/">
          <link>https://www.example.com/examples/mrss/example.html</link>
          <media:content url="https://www.example.com/examples/mrss/example.flv" fileSize="405321"
                            type="video/x-flv" height="240" width="320" duration="120" medium="video" isDefault="true">
            <media:player url="https://www.example.com/shows/example/video.swf?flash_params" />
            <media:title>Grilling Steaks for Summer</media:title>
            <media:description>Get perfectly done steaks every time</media:description>
            <media:thumbnail url="https://www.example.com/examples/mrss/example.png" height="120" width="160"/>
            <media:price price="19.99" currency="EUR" />
            <media:price type="subscription" />
          </media:content>
          <media:restriction relationship="allow" type="country">us ca</media:restriction>
          <dcterms:valid xmlns:dcterms="http://purl.org/dc/terms/">end=2020-10-15T00:00+01:00; scheme=W3C-DTF</dcterms:valid>
          <dcterms:type>live-video</dcterms:type>
        </item>
      </channel>
    </rss>

### mRSS reference

The [full mRSS specification](http://www.rssboard.org/media-rss) contains more optional tags, best practices, and examples. 

To make sure Google can use your mRSS feed, you must use the following required tags: 

Required tags  
---  
`<media:content>` |  Encloses information about the video. Attributes:

  * `medium`: Type of content. Set to `video`. 
  * `url`: The direct URL to the raw video content. If this isn't specified, you must specify the `<media:player>` tag.
  * `duration` [Optional but recommended]: Length of the video in seconds. 

For all of the other optional attributes and child fields of the `<media:content>` tag, see the [mRSS specification](http://www.rssboard.org/media-rss).   
`<media:player>` |  You must specify at least one of `<media:player>` or the `url` attribute in `<media:content>`. A URL pointing to a player for a specific video. Usually this is the information in the `src` attribute of an `<embed>` tag and must not be the same as the content of the `<loc>` tag. It can't be the same URL as the `<link>` tag. The `<link>` tag points to the URL of the page hosting the video, while this tag points to a player.   
`<media:title>` |  The title of the video. Maximum 100 characters. All HTML entities must be escaped or wrapped in a [CDATA bock](http://wikipedia.org/wiki/CDATA).   
`<media:description>` |  The description of the video. Maximum 2048 characters. All HTML entities must be escaped or wrapped in a [CDATA block](http://wikipedia.org/wiki/CDATA).   
`<media:thumbnail>` |  A URL pointing to a preview thumbnail. Follow the [Video thumbnail requirements.](/search/docs/appearance/video#thumbnails)  
  
Additionally, the following optional tags may help Google better understand your videos and its properties: 

Optional tags  
---  
`<dcterms:valid>` |  The publication and expiration date of the video. Here's the [Full specification of the `dcterms:valid`](https://www.dublincore.org/specifications/dublin-core/dcmi-terms/terms/valid/) tag.  Example:
    
    
    <dcterms:valid>
    start=2002-10-13T09:00+01:00;
    end=2002-10-17T17:00+01:00;
    scheme=W3C-DTF
    <dcterms:valid>  
  
`<media:restriction>` |  A space-delimited list of countries where the video may or may not be played, in [ISO 3166 format](http://wikipedia.org/wiki/ISO_3166). If there's no `<media:restriction>` tag, Google assumes that the video can be played in all countries.  Attributes: If the parent tag `<media:restriction>` is used, the following attributes are required: 

  * `type`: Set the `type` attribute to `country`. Only country restrictions are supported. 
  * `relationship`: Specifies whether the video may or may not be played in the specified list of countries. Supported values: 
    * `allow`: The listed countries are allowed and unlisted countries are denied. 
    * `deny`: The listed countries are denied and unlisted countries are allowed. 

[Learn more about using country restrictions.](/search/docs/appearance/video#restrict_by_country) Example:
    
    
    <media:restriction relationship="allow" type="country">us ca</media:restriction>  
  
`<media:price>` |  The price to download or view the video. Don't use this tag for videos that are available without payment. More than one `<media:price>` element can be listed (for example, in order to specify various currencies or purchasing options).  Attributes: If the parent tag `<media:price>` is used, the following attributes are required: 

  * `currency`: The currency in [ISO 4217 format](https://en.wikipedia.org/wiki/ISO_4217). 
  * `type`: The purchase option. Supported values are: 
    * `rent`: The video is available for rent. 
    * `purchase`: The video is available for purchase. 
    * `package`: The video is part of a package deal. 
    * `subscription`: The video is available with a subscription. 

  
  
## Troubleshooting sitemaps

If you're having trouble with your sitemap, you can investigate the errors with Google Search Console. See Search Console's [sitemaps troubleshooting guide](https://support.google.com/webmasters/answer/7451001#errors) for help. 

##  Additional resources 

Want to learn more? Check out the following resources: 

  **Submit your sitemap to Google**
  **Learn how to combine sitemap extensions**

Send feedback 

Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). For details, see the [Google Developers Site Policies](https://developers.google.com/site-policies). Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-10 UTC.

Need to tell us more?  [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-12-10 UTC."],[],["Video sitemaps or mRSS feeds help Google discover and index website videos. Sitemaps, extending standard format with video tags, require `\u003cvideo:thumbnail_loc\u003e`, `\u003cvideo:title\u003e`, `\u003cvideo:description\u003e`, and either `\u003cvideo:content_loc\u003e` or `\u003cvideo:player_loc\u003e`. mRSS feeds, an alternative, utilize `\u003cmedia:content\u003e` (with either `url` or `\u003cmedia:player\u003e`), `\u003cmedia:title\u003e`, `\u003cmedia:description\u003e`, and `\u003cmedia:thumbnail\u003e`. Both formats must ensure linked content is accessible to Googlebot. Optional tags include duration, restrictions, and pricing. Properly formatted content and accessibility are crucial.\n"]] 

  ** LinkedIn  **

Join us on LinkedIn

  ** YouTube  **

Watch our videos

  ** Blog  **

Subscribe to our RSS feed

  ** Podcast  **

Listen to Search Off the Record

  ** X (Twitter)  **

Join us on X (Twitter)

  * ### Get support

    ** Go to the help forum **
    ** Submit a question for office hours **
    ** Report spam, phishing, or malware **
    ** More support resources **
  * ### Resources

    ** Do you need an SEO? **
    ** SEO Starter Guide **
    ** Status of Search systems **
    ** Search Console documentation **
    ** Case Studies **
  * ### Tools

    ** Search Console **
    ** Rich Results Test **
    ** PageSpeed Insights **
    ** AMP Test **

[ ](https://developers.google.com/)

  ** Android **
  ** Chrome **
  ** Firebase **
  ** Google Cloud Platform **
  ** Google AI **
  ** All products **

  ** Terms **
  ** Privacy **
  * Manage cookies 

  * English
  * Deutsch
  * Español
  * Español – América Latina
  * Français
  * Indonesia
  * Italiano
  * Polski
  * Português – Brasil
  * Tiếng Việt
  * Türkçe
  * Русский
  * العربيّة
  * हिंदी
  * ภาษาไทย
  * 中文 – 简体
  * 中文 – 繁體
  * 日本語
  * 한국어
