Generate useSchemaOrg() code for rich search results. Build structured data for articles, products, FAQs, and more.
News, scholarly, or other article
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How to Get Started with Schema.org",
"description": "A comprehensive guide to implementing structured data for better SEO.",
"image": "https://example.com/article-image.jpg",
"author": {
"@type": "Person",
"name": "John Doe"
},
"publisher": {
"@type": "Organization",
"name": "My Website"
}
}import { useSchemaOrg, defineArticle } from '@unhead/schema-org'
useSchemaOrg([
defineArticle({
headline: 'How to Get Started with Schema.org',
description: 'A comprehensive guide to implementing structured data for better SEO.',
image: 'https://example.com/article-image.jpg',
author: {
name: 'John Doe',
},
publisher: {
name: 'My Website',
},
}),
])Schema.org is a collaborative vocabulary for structured data that helps search engines understand your content. When implemented correctly, it can enable rich results in Google Search.
Article
News, scholarly, or other article
Blog Posting
Blog post or article
FAQ Page
Frequently asked questions
Product
E-commerce product
Local Business
Physical business location
Organization
Company or organization
Person
Individual person profile
How-To
Step-by-step instructions
Video
Video content
Event
Event or happening