Multiple Schemas on One Page
You'll learn how to include several different types of structured data on a single webpage using JSON-LD arrays.
Why Multiple Schemas?
Real-world web pages often contain multiple entities that deserve structured data. A blog post about a local restaurant event might warrant Article, Event, and LocalBusiness schemas all at once. Search engines can understand and display all of them if you structure them correctly.
Core Idea
JSON-LD scripts are independent: you can either include multiple separate <script type="application/ld+json"> blocks or combine them into a single script with a JSON array at the root level.
Two Valid Approaches
Separate Script Tags
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "Best Pizza in Town"
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "Joe's Pizzeria"
}
</script>
Single Array (Recommended)
<script type="application/ld+json">
[
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "Best Pizza in Town"
},
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "Joe's Pizzeria"
}
]
</script>
Both work, but the array method keeps your structured data organized in one place and reduces HTML clutter.
Think of It Like...
Imagine a filing cabinet (your page). You can either use multiple drawers (separate scripts) or one drawer with dividers (array). Either way, the important documents are accessible—search engines can find and understand each schema independently.
Key Takeaway: Use a JSON array with multiple objects inside a single JSON-LD script tag to cleanly combine different schema types on one page.