YouTube Video Schema Generator - Structured Data Markup Tool | MyGoodCart.com

YouTube Video Schema Generator

Generate JSON-LD structured data markup for YouTube videos to enhance SEO and appearance in search results

Schema Generator
Schema Validator
Examples

Video Information

Additional Information

Generated Schema Markup

{ "@context": "https://schema.org", "@type": "VideoObject", "name": "How to Create Amazing YouTube Videos", "description": "Learn how to create professional YouTube videos that engage audiences and grow your channel. This comprehensive guide covers equipment, lighting, editing, and optimization strategies.", "thumbnailUrl": "https://img.youtube.com/vi/dQw4w9WgXcQ/maxresdefault.jpg", "uploadDate": "2024-01-15", "duration": "PT15M45S", "contentUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ", "embedUrl": "https://www.youtube.com/embed/dQw4w9WgXcQ", "author": { "@type": "Person", "name": "MyGoodCart Tutorials" }, "publisher": { "@type": "Organization", "name": "MyGoodCart Tutorials", "logo": { "@type": "ImageObject", "url": "https://www.mygoodcart.com/logo.png" } }, "interactionStatistic": { "@type": "InteractionCounter", "interactionType": "https://schema.org/WatchAction", "userInteractionCount": 1000 } }

How to Implement

Copy the generated JSON-LD code and paste it into the <head> section of your HTML page, or use a plugin if you're on WordPress, Shopify, or other CMS platforms.

Schema Validator

Paste your JSON-LD schema markup below to validate it against Google's structured data guidelines.

What We Validate

  • JSON syntax correctness
  • Required VideoObject properties
  • Property value formats
  • URL validity
  • Date format compliance

Validation Results

Paste your schema markup and click "Validate Schema" to see results here.

Common Validation Issues

  • Missing required fields: name, description, thumbnailUrl, uploadDate
  • Incorrect date format: Use YYYY-MM-DD format
  • Invalid duration format: Use ISO 8601 duration format (PT15M30S)
  • Malformed JSON: Missing commas, quotes, or braces

Schema Markup Examples

Basic Video Schema

{
  "@context": "https://schema.org",
  "@type": "VideoObject",
  "name": "Video Title",
  "description": "Video description",
  "thumbnailUrl": "https://example.com/thumbnail.jpg",
  "uploadDate": "2024-01-15",
  "contentUrl": "https://www.youtube.com/watch?v=VIDEO_ID",
  "embedUrl": "https://www.youtube.com/embed/VIDEO_ID"
}

Complete Video Schema

{
  "@context": "https://schema.org",
  "@type": "VideoObject",
  "name": "Video Title",
  "description": "Video description",
  "thumbnailUrl": "https://example.com/thumbnail.jpg",
  "uploadDate": "2024-01-15",
  "duration": "PT10M30S",
  "contentUrl": "https://www.youtube.com/watch?v=VIDEO_ID",
  "embedUrl": "https://www.youtube.com/embed/VIDEO_ID",
  "author": {
    "@type": "Person",
    "name": "Author Name"
  },
  "interactionStatistic": {
    "@type": "InteractionCounter",
    "interactionType": "https://schema.org/WatchAction",
    "userInteractionCount": 1500
  }
}

How Schema Appears in Search Results

When properly implemented, video schema can enhance your search results with:

  • Video thumbnails displayed in search results
  • Video duration shown next to the result
  • Rich video snippets with preview capabilities
  • Higher click-through rates (typically 20-30% improvement)
  • Better positioning in video carousels and featured snippets

What is YouTube Video Schema?

Video Schema (also known as VideoObject structured data) is a standardized format for providing information about a video to search engines. It uses the Schema.org vocabulary in JSON-LD format to describe video content in a way that search engines can understand and display more prominently in search results.

Benefits of Video Schema

  • Enhanced Search Appearance: Videos with schema markup often appear with rich snippets including thumbnails, duration, and upload dates
  • Higher Click-Through Rates: Rich results typically see 20-30% higher CTR than regular search results
  • Video Carousel Eligibility: Schema-markup videos are more likely to appear in Google's video carousels
  • Improved Video SEO: Helps search engines understand your video content better
  • Cross-Platform Compatibility: Works with Google, Bing, Yandex, and other search engines

Required Properties

  • @context: Must be "https://schema.org"
  • @type: Must be "VideoObject"
  • name: The title of the video
  • description: Description of the video
  • thumbnailUrl: URL of the video thumbnail
  • uploadDate: Date when the video was uploaded (YYYY-MM-DD)
  • contentUrl or embedUrl: URL to the video content

How to Implement Video Schema on Your Website

Step-by-Step Implementation

  1. Generate Schema: Use our tool above to create JSON-LD markup for your YouTube video
  2. Copy the Code: Click "Copy Schema" to copy the generated JSON-LD code
  3. Paste in HTML: Paste the code into the <head> section of your webpage
  4. Test Implementation: Use Google's Rich Results Test to verify your schema
  5. Monitor Performance: Check Google Search Console for rich result status

Platform-Specific Instructions

WordPress

  • Use plugins like Yoast SEO, Rank Math, or Schema Pro
  • Add custom HTML block with the schema code
  • Use header/footer plugins to insert code site-wide
  • Consider dedicated schema plugins for advanced implementations

Shopify

  • Edit theme.liquid file in the <head> section
  • Use Shopify apps like JSON-LD for SEO
  • Add schema to product pages with video content
  • Consider hiring a Shopify expert for complex implementations

HTML Websites

  • Paste schema directly in the <head> section of each page
  • Use server-side includes for multiple pages
  • Consider static site generators with schema templates

Other CMS Platforms

  • Wix: Use custom code embed in page settings
  • Squarespace: Add code injection in site settings
  • Webflow: Add custom code in project settings
  • Blogger: Edit theme HTML in layout section

Testing and Validating Your Schema

After implementing video schema, it's crucial to test it to ensure it's correctly formatted and will be recognized by search engines.

Google's Official Testing Tools

Common Mistakes to Avoid

  • Incorrect date format: Use YYYY-MM-DD (ISO 8601)
  • Missing required properties: Ensure all required fields are included
  • Invalid URLs: Use absolute URLs (including https://)
  • Duplicate schema: Don't include multiple VideoObject schemas for the same video
  • JSON syntax errors: Validate JSON structure before implementation

Frequently Asked Questions (FAQs)

What is JSON-LD schema markup? +
JSON-LD (JavaScript Object Notation for Linked Data) is a method of encoding structured data using JSON format. It's Google's preferred format for structured data because it's easy to implement, doesn't affect page rendering, and can be placed anywhere in the HTML (though typically in the <head> section). It's used to provide search engines with explicit clues about the meaning of your page content.
Does video schema guarantee rich results in Google? +
No, schema markup doesn't guarantee rich results. It makes your content eligible for enhanced displays, but Google's algorithms decide which results get enhanced presentation based on relevance, quality, and user context. However, properly implemented schema significantly increases your chances of appearing with rich snippets.
How long does it take for Google to recognize schema markup? +
After implementing schema, it can take anywhere from a few days to several weeks for Google to crawl and process your updated pages. You can speed up this process by submitting your URL to Google Search Console and using the "Request Indexing" feature. Regular content updates and backlinks can also encourage faster crawling.
Can I use video schema for videos not hosted on YouTube? +
Yes, video schema works for videos hosted on any platform including Vimeo, Wistia, self-hosted videos, or other video hosting services. The key is to provide the correct contentUrl (direct video file URL) or embedUrl (embed player URL) in your schema markup.
Is video schema the same as Open Graph or Twitter Cards? +
No, they serve different purposes. Video Schema (JSON-LD) is for search engines to understand and display your content in search results. Open Graph (og:video) is for social media platforms like Facebook, and Twitter Cards (twitter:player) are for Twitter. You should implement all three for comprehensive coverage across platforms.
Can I add schema for multiple videos on the same page? +
Yes, you can include multiple VideoObject schemas on the same page, but each should represent a distinct video. However, for best results, it's generally recommended to have one primary video per page with its corresponding schema. If you have a gallery of videos, consider using a VideoGallery schema type instead.
What's the difference between contentUrl and embedUrl? +
contentUrl should point to the actual video file (like .mp4) or the watch page URL. embedUrl should point to the embeddable player URL. For YouTube videos, contentUrl would be the watch URL (youtube.com/watch?v=ID) and embedUrl would be the embed URL (youtube.com/embed/ID). Both are valid, but embedUrl is preferred for YouTube videos.
Do I need to update schema when I update my video? +
If you make significant changes to your video metadata (title, description, thumbnail), you should update your schema accordingly. For minor updates, it's not always necessary, but keeping your schema in sync with your actual content is a best practice for accurate search results representation.
Schema markup copied to clipboard!