In short
VideoObject is the Schema.org type that describes a video to search engines: title, description, thumbnail, publication date, duration, URL of the file or player. Once the task is done, each watch page contains a valid VideoObject JSON-LD block, consistent with the video displayed and with the video sitemap, with no errors in the Rich Results Test or in Search Console.
Why it matters
Google finds a video through the page's <video>, <iframe>, <embed> or <object> tags, but these tags tell it almost nothing: not the subject, the date, the duration or the location of the file. VideoObject structured data provides this information in an explicit format. Google uses it for its video features: video results, the Videos tab, key moments through Clip or SeekToAction, the “LIVE” badge through BroadcastEvent.
Three properties are required by Google: name, thumbnailUrl and uploadDate. The others are recommended, and contentUrl is the most useful: according to Google, it is the most effective way to let it fetch the video file, which is a condition for previews and for some key moments.
The markup must describe the video that is actually present and visible on the page. Google points out that name, description and thumbnailUrl must be specific to each video. Markup that describes a video that is not there, or that repeats the same values everywhere, falls under misleading structured data (opens in a new tab).
Markup does not get around the watch page rule: a video that supplements an article or a product page is not eligible for video features, even when marked up. VideoObject has its full effect on a dedicated video page (opens in a new tab).
What it improves
- Understanding and indexing of videos Explicit metadata, with the file URL and the thumbnail declared.
- Rich results Eligibility for video features, key moments and the “LIVE” badge. Whether they are displayed is up to Google.
- Monitoring Search Console's Videos rich result status report catches errors with every deployment.
- Generative engines Structured metadata consistent with the page text. No generative engine documentation states that they use VideoObject; a hypothetical effect.
- Rankings No direct effect. Structured data describes, it does not rank.
How to check
- Run the page URL through the Rich Results Test: the Videos section must appear without errors. Warnings about missing recommended properties do not prevent eligibility, but they are worth addressing.
- Run it through the Schema Markup Validator to check the full Schema.org syntax.
- From the command line, extract the block:
curl -s https://example.com/videos/detartrer-chauffe-eau/ \
| grep -o '<script type="application/ld+json">.*</script>' | head -c 2000
- Compare with the page: same title, same thumbnail as the
poster, same duration as the video. - In Search Console, open the Videos report in the Enhancements (rich results) section and the video page indexing report.
How to implement
Before you start
Properties to fill in:
| Property | Google status | Content | Example |
|---|---|---|---|
name |
Required | Unique title of the video | Descale an electric water heater in 6 steps |
thumbnailUrl |
Required | Stable thumbnail URL, the same as the poster |
https://example.com/media/miniatures/detartrage-200l.jpg |
uploadDate |
Required | Date of first publication, ISO 8601 with time zone | 2026-10-14T09:00:00+02:00 |
description |
Recommended | Unique description, without HTML | Shutting off, draining, removing the anode… |
duration |
Recommended | ISO 8601 duration | PT8M30S (8 min 30 s) |
contentUrl |
Recommended | URL of the video file itself, in a supported format | https://example.com/media/videos/detartrage-200l.mp4 |
embedUrl |
Recommended | Player (iframe) URL, if there is no contentUrl |
https://www.youtube.com/embed/ID_VIDEO |
creator |
Recommended | Person or organization, with name and url |
Plomberie Garnier |
expires |
Recommended if the video expires | Removal date | Omit otherwise |
hasPart / potentialAction |
Recommended | Key moments (Clip or SeekToAction) |
See add chapters (opens in a new tab) |
interactionStatistic |
Recommended | View count (WatchAction) |
Real value only |
regionsAllowed or ineligibleRegion |
Recommended if restricted | ISO 3166-1 country codes | FR BE CH |
publication |
For live streams | BroadcastEvent with isLiveBroadcast, startDate, endDate |
Neither contentUrl nor embedUrl may point to the page that hosts the video. Without a time zone in uploadDate, Google applies Googlebot's.
HTML
Place the block in the <head> or the <body> of the watch page:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "VideoObject",
"name": "Descale an electric water heater in 6 steps",
"description": "Shutting off, draining, removing the anode, cleaning and refilling a 200-liter electric water heater, explained by a plumber from Nantes.",
"thumbnailUrl": [
"https://example.com/media/miniatures/detartrage-200l.jpg"
],
"uploadDate": "2026-10-14T09:00:00+02:00",
"duration": "PT8M30S",
"contentUrl": "https://example.com/media/videos/detartrage-200l.mp4",
"embedUrl": "https://example.com/videos/lecteur/detartrage-200l",
"inLanguage": "fr",
"creator": {
"@type": "Organization",
"name": "Plomberie Garnier",
"url": "https://example.com/"
},
"hasPart": [
{
"@type": "Clip",
"name": "Turn off the power and the water supply",
"startOffset": 9,
"endOffset": 72,
"url": "https://example.com/videos/detartrer-chauffe-eau/?t=9"
},
{
"@type": "Clip",
"name": "Drain the tank",
"startOffset": 72,
"endOffset": 220,
"url": "https://example.com/videos/detartrer-chauffe-eau/?t=72"
}
]
}
</script>
For an embedded YouTube video, replace contentUrl and embedUrl with "embedUrl": "https://www.youtube.com/embed/ID_VIDEO", and keep your own thumbnailUrl if you have one, or YouTube's.
To get the exact duration of a file:
ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 detartrage-200l.mp4
510 seconds is written PT8M30S, or PT510S.
WordPress
Versions WordPress 6.5 to 7.1; Yoast SEO with Yoast Video SEO (paid Yoast plans) and Rank Math, November 2026 versions.
- Yoast SEO with Yoast Video SEO (included in Yoast's paid plans): automatically adds VideoObject for each video it detects (YouTube, Vimeo, Wistia, VideoPress and others) and integrates it into Yoast's Schema graph. Check the title, description and thumbnail in the video tab of the Yoast panel on each post.
- Rank Math: when a video is detected in a selected post type, Rank Math adds a Video schema with the thumbnail, embed URL and duration. Detection goes through the Video Sitemap module (
Rank Math SEO > Dashboard > Modules, with the Schema and Sitemap modules active); the Schema Generator on each post lets you correct the fields. - Without a video plugin, for a “video” post type whose fields are stored as post meta, add this to a custom plugin:
add_action('wp_head', function (): void {
if (! is_singular('video')) {
return;
}
$postId = get_queried_object_id();
$schema = [
'@context' => 'https://schema.org',
'@type' => 'VideoObject',
'name' => get_the_title($postId),
'description' => wp_strip_all_tags(get_the_excerpt($postId)),
'thumbnailUrl' => [get_the_post_thumbnail_url($postId, 'full')],
'uploadDate' => get_post_time('c', true, $postId),
'duration' => get_post_meta($postId, 'video_duration_iso', true),
'contentUrl' => get_post_meta($postId, 'video_content_url', true),
];
echo '<script type="application/ld+json">'.wp_json_encode(array_filter($schema), JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_HEX_TAG).'</script>'."\n";
});
Do not stack two sources: if a plugin already generates VideoObject for the page, do not add your own.
Shopify
Versions Online Store 2.0 themes (Dawn, Horizon and their derivatives), all Shopify plans, November 2026.
A product page video is not a watch page: the markup describes the video correctly, but does not make it eligible for video features. If you still want to describe it, create snippets/video-jsonld.liquid:
{%- for media in product.media -%}
{%- if media.media_type == 'video' -%}
{%- assign mp4 = media.sources | where: 'format', 'mp4' | first -%}
{%- assign content_url = mp4.url | prepend: 'https:' | replace: 'https:https:', 'https:' -%}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "VideoObject",
"name": {{ media.alt | default: product.title | json }},
"description": {{ product.description | strip_html | truncate: 300 | json }},
"thumbnailUrl": {{ media.preview_image | image_url: width: 1280 | prepend: 'https:' | json }},
"uploadDate": {{ product.published_at | date: '%Y-%m-%dT%H:%M:%S%:z' | json }},
"duration": "PT{{ media.duration | divided_by: 1000 }}S",
"contentUrl": {{ content_url | json }}
}
</script>
{%- elsif media.media_type == 'external_video' and media.host == 'youtube' -%}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "VideoObject",
"name": {{ media.alt | default: product.title | json }},
"description": {{ product.description | strip_html | truncate: 300 | json }},
"thumbnailUrl": {{ media.preview_image | image_url: width: 1280 | prepend: 'https:' | json }},
"uploadDate": {{ product.published_at | date: '%Y-%m-%dT%H:%M:%S%:z' | json }},
"embedUrl": "https://www.youtube.com/embed/{{ media.external_id }}"
}
</script>
{%- endif -%}
{%- endfor -%}
Then add {% render 'video-jsonld', product: product %} to the main section of the product template: sections/main-product.liquid in Dawn and its derivatives, sections/product-information.liquid in Horizon, Shopify's current reference theme, and its derivatives. The Liquid duration is in milliseconds, hence the division. Here, uploadDate reuses the product's publication date for lack of a date specific to the video: replace it with a metafield if you know it. Check the output in the Rich Results Test, because the URLs returned by image_url and video_source can be protocol-relative.
Drupal
Versions Drupal 10 and 11, Metatag 2.x and Schema.org Metatag 3.x.
The Schema.org Metatag module, which builds on Metatag, supports the VideoObject type: enable the main module and its “Schema.org VideoObject” submodule (drush en schema_video_object). Then fill in the fields in Configuration > Search and metadata > Metatag, at the level of the “Video” content type, with tokens ([node:title], [node:field_miniature:entity:url]…). Clear the caches (drush cr) and test a page.
Webflow
Versions Webflow CMS, CMS, Business or Enterprise site plans, November 2026.
In the “Videos” CMS collection, open the Collection template page settings, in the custom code section for the <head>, and paste the JSON-LD, inserting the collection fields in place of the values (title, thumbnail, date, video URL). Publish, then test a page of the collection.
Laravel
Versions Laravel 11 to 13.
Build the array in the model and let Blade encode it:
// app/Models/Video.php
public function toSchema(): array
{
return array_filter([
'@context' => 'https://schema.org',
'@type' => 'VideoObject',
'name' => $this->title,
'description' => $this->summary,
'thumbnailUrl' => [$this->thumbnail_url],
'uploadDate' => $this->published_at->toIso8601String(),
'duration' => "PT{$this->duration_seconds}S",
'contentUrl' => $this->content_url,
'hasPart' => $this->chapters->map(fn (Chapter $chapter): array => [
'@type' => 'Clip',
'name' => $chapter->title,
'startOffset' => $chapter->start_seconds,
'endOffset' => $chapter->end_seconds,
'url' => route('videos.show', ['video' => $this, 't' => $chapter->start_seconds]),
])->all() ?: null,
]);
}
<script type="application/ld+json">
@json($video->toSchema(), JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_HEX_TAG)
</script>
JSON_HEX_TAG prevents a value containing </script> from closing the block.
Next.js
Versions Next.js 15 and 16 (App Router).
Add the JSON-LD in the page component, escaping < characters as the Next.js documentation recommends:
export default async function VideoPage({ params }: { params: Promise<{ slug: string }> }) {
const { slug } = await params;
const video = await getVideo(slug);
const jsonLd = {
'@context': 'https://schema.org',
'@type': 'VideoObject',
name: video.title,
description: video.summary,
thumbnailUrl: [video.thumbnailUrl],
uploadDate: video.publishedAt,
duration: `PT${video.durationSeconds}S`,
contentUrl: video.contentUrl,
};
return (
<article>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd).replace(/</g, '\\u003c') }}
/>
<h1>{video.title}</h1>
{/* Player, summary, chapters, transcript */}
</article>
);
}
The block is rendered on the server, so it is present in the initial HTML.
Live video
For a live stream, add publication with a BroadcastEvent: isLiveBroadcast: true, startDate, then endDate once the stream has ended. Google recommends using the Indexing API when the stream starts and ends, and whenever the markup changes; this API only accepts livestream video pages.
Common mistakes
contentUrlorembedUrlequal to the page URL: the URL of the file or the player is what is expected.uploadDatewithout a time zone, or the last modified date instead of the publication date.- Duration in the wrong format:
8:30or510instead ofPT8M30S. - A different thumbnail from the one in the
posterand the sitemap, or a URL that expires. - The same
nameanddescriptionfor every video, generated by a template. - Two competing VideoObject blocks for the same video (SEO plugin and custom code).
- Marking up a video that is absent from the page or hidden.
- A made-up view count in
interactionStatistic.
Frequently asked questions
Which VideoObject properties does Google require?
Google requires three properties for VideoObject: name, the video's title, thumbnailUrl, the URL of its thumbnail, and uploadDate, its date of first publication in ISO 8601 format, preferably with a time zone. It also recommends description, duration, contentUrl or embedUrl, and hasPart for key moments. contentUrl is the most useful, because it allows Google to fetch the video file.
Does VideoObject work with an embedded YouTube video?
Yes. For a YouTube video embedded on your page, fill in embedUrl with the YouTube embed URL, in addition to name, description, thumbnailUrl and uploadDate. Google can then index both your page and the YouTube page. The markup only helps your page if it is a watch page, meaning mainly devoted to that video, with text that adds something more.
Do I need VideoObject if I already have a video sitemap?
The two are complementary, and neither is required for the other. The video sitemap helps Google discover videos and their pages; VideoObject describes each video directly on its page and is the only way to declare key moments with Clip or SeekToAction. On a site with few videos, VideoObject is often enough. Either way, keep the values identical between the two.
Why doesn't Search Console show my marked-up videos?
Valid VideoObject markup does not guarantee that the video gets indexed. Google also requires that the page be indexed, that it be a watch page, that the video be visible on it without any user action and that the thumbnail be reachable. Search Console's video page indexing report gives the exact reason for each page that was not selected.
Resources
- Google Search Central: Video structured data (VideoObject, Clip, SeekToAction, BroadcastEvent)developers.google.com
- Google Search Central: Video best practicesdevelopers.google.com
- schema.org: VideoObjectschema.org
- Next.js: JSON-LDnextjs.org
- Yoast: Video SEOyoast.com
- Drupal: Schema.org Metatagdrupal.org
Updated on
Topic checklist (PDF)