How To Add Video Structured Data to YouTube Embeds

Adding Video Structured Data to YouTube Embeds

There are many plugins and or Apps that promise to add Structured Data Schema Markup to websites. If you are using Plugins or Apps to add Schema Markup to your website, then, you are doing it wrong. Why?

  1. In most cases, the plugin or app adds invalid markup
  2. Structuring Web Page Data offers you much more
  3. Website will always be limited to extend its Structured Data Markup. For example: adding FAQ to Product Markup should be FAQ related to the specific Product you are marking up. Apps or Plugins do not have the ability to extend Schema Markup. Meaning, FAQ would then be a seperate code block confusing search engines.

Video is Not the Main Content of the Page

I am actually creating this blog post to share with RankYa followers facing Video page indexing issues for videos that are not the main content of the page in Google search console.

For YouTube embedded videos, this issue in Search Console about video not being main content of the page almost always correct reporting by Google search console. Meaning, there is nothing to fix in Search Console for YouTube embeds. And also, Google will show your YouTube videos in Search Engine Results Page.

Video Tutorial Highlights Video is Not the Main Content Issues

Video Tutorial Adding Video Structured Data to YouTube Embedded Video

How To Add Video Structured Data to YouTube Embeds

You want to train Google to understand your website, your YouTube videos and also take advantage of the latest Google Rich Results for video.

Download sample codes here: VideoObject YouTube Emded Schema Markup (.zip format)

JSON-LD Example for YouTube Embeds Schema Markup Structured Data

<script type="application/ld+json">{ "@context": "https://schema.org/", "@type": "VideoObject", "name": "YouTubeVideoTitleGoesHere", "description": "YouTubeVideoDESCRIPTIONGoesHere", "uploadDate": "2024-03-14T00:00:00+00:00Z", "duration": "PT07M07S", "url": "https://www.youtube.com/watch?v=CHANGEVIDEOID", "contentUrl": "https://www.youtube.com/v/CHANGEVIDEOID", "embedUrl": "https://www.youtube.com/embed/CHANGEVIDEOID", "thumbnailUrl": "https://i.ytimg.com/vi/CHANGEVIDEOID/hqdefault.jpg", "isFamilyFriendly": "TRUE" } </script> VideoObject JSON LD example for YouTube Embeded Video Schema Markup You can and should use sameAs on any links to your own YouTube channel. itemprop="sameAs"

JSON-LD Example for Extending YouTube Embeds Schema Markup for a Business

What if you are publishing a blog post or article that contains your YouTube embeds? Then, you can add further information extending your blog post and tie the video to the blog post like so: <script type="application/ld+json">{ "@context": "https://schema.org/", "@type": "SocialMediaPosting", "@id": "https://www.youtube.com/v/CHANGEVIDEOID", "datePublished": "2024-03-14T00:00:00+00:00Z", "author":{ "@type":"Organization", "name":"BusinessName", "url":"https://www.example.com/" }, "image": "https://i.ytimg.com/vi/CHANGEVIDEOID/maxresdefault.jpg", "headline": "YouTubeVideoTitleGoesHere", "sharedContent":{ "@type":"Blog", "headline":"BlogPostTitleGoesHere", "url":"https://www.example.com/URLofBlogPost/" } } </script>

JSON-LD Example for Extending YouTube Embeds Schema Markup for a Person

What if you are publishing a blog post or article that contains your YouTube embeds? Then, you can add further information extending your blog post and tie the video to the blog post like so: <script type="application/ld+json">{ "@context": "https://schema.org/", "@type": "SocialMediaPosting", "@id": "https://www.youtube.com/v/CHANGEVIDEOID", "datePublished": "2024-03-14T00:00:00+00:00Z", "author": { "@type": "Person", "name": "John Smith", "email": "hello@example.com", "url": "https://about.me/johnsmith" }, "image": "https://i.ytimg.com/vi/CHANGEVIDEOID/maxresdefault.jpg", "headline": "YouTubeVideoTitleGoesHere", "sharedContent":{ "@type":"Blog", "headline":"BlogPostTitleGoesHere", "url":"https://www.example.com/URLofBlogPost/" } } </script>

By RankYa

RankYa is a digital services provider dedicated to growing your sales and business website's results. Highly experienced technical problem solver, Google products expert with proven 'Social Media Marketing' skills, RankYa (100% Australian Owned and Operated) is dedicated to helping small businesses to grow.

We're looking forward to contributing towards your online success. Contact Us.

Questions? Leave a Comment!

Your email address will not be published. Required fields are marked *