Copy-paste ready JSON-LD schemas with implementation instructions
<script type="application/ld+json">...</script> tags in the <head> of each page.| Page Type | URL Pattern | Schema Tab |
|---|---|---|
| Home | / | Home Page |
| About | /about/ | About Page |
| Brands index | /make/ | Brands Index |
| Individual brand | /make/kia/ | Brand Page (Dynamic) |
| Individual model | /model/kia/soul | Model Page |
| Blog index | /blog/ | Blog Index |
| Blog article | /blog/article-slug/ | Blog Article (Yoast) |
header.php, layout file, etc.)<head> wrapped in <script type="application/ld+json">...</script>{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Organization",
"@id": "https://www.autosmarket.com/#organization",
"name": "Autos Market",
"url": "https://www.autosmarket.com",
"logo": {
"@type": "ImageObject",
"url": "REPLACE-WITH-REAL-LOGO-URL"
},
"description": "Autos Market is a trusted automotive marketplace offering a wide selection of vehicles from top brands, helping you find good prices at dealerships near you.",
"email": "contact@autosmarket.com",
"sameAs": [
"https://www.instagram.com/autosmarketdotcom",
"https://www.youtube.com/@AutosMarket"
]
},
{
"@type": "WebSite",
"@id": "https://www.autosmarket.com/#website",
"url": "https://www.autosmarket.com",
"name": "Autos Market",
"publisher": { "@id": "https://www.autosmarket.com/#organization" }
},
{
"@type": "WebPage",
"@id": "https://www.autosmarket.com/#webpage",
"url": "https://www.autosmarket.com/",
"name": "Autos Market - Find Your Next Vehicle",
"isPartOf": { "@id": "https://www.autosmarket.com/#website" },
"about": { "@id": "https://www.autosmarket.com/#organization" }
}
]
}
@id. The cross-page reference helps Google connect entities.{
"@context": "https://schema.org",
"@graph": [
{
"@type": "AboutPage",
"@id": "https://www.autosmarket.com/about/#webpage",
"url": "https://www.autosmarket.com/about/",
"name": "About Us | Autos Market",
"description": "Learn about Autos Market — our mission to help customers find quality vehicles at fair prices from trusted dealerships.",
"isPartOf": { "@id": "https://www.autosmarket.com/#website" },
"about": { "@id": "https://www.autosmarket.com/#organization" },
"breadcrumb": { "@id": "https://www.autosmarket.com/about/#breadcrumb" }
},
{
"@type": "BreadcrumbList",
"@id": "https://www.autosmarket.com/about/#breadcrumb",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://www.autosmarket.com/" },
{ "@type": "ListItem", "position": 2, "name": "About", "item": "https://www.autosmarket.com/about/" }
]
}
]
}
alfa-romeo — could be alfa_romeo or other).{
"@context": "https://schema.org",
"@graph": [
{
"@type": "CollectionPage",
"@id": "https://www.autosmarket.com/make/#webpage",
"url": "https://www.autosmarket.com/make/",
"name": "Browse Vehicles by Make | Autos Market",
"description": "Explore vehicles by manufacturer. Browse our complete selection of cars by make at Autos Market.",
"isPartOf": { "@id": "https://www.autosmarket.com/#website" },
"breadcrumb": { "@id": "https://www.autosmarket.com/make/#breadcrumb" }
},
{
"@type": "BreadcrumbList",
"@id": "https://www.autosmarket.com/make/#breadcrumb",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://www.autosmarket.com/" },
{ "@type": "ListItem", "position": 2, "name": "Makes", "item": "https://www.autosmarket.com/make/" }
]
},
{
"@type": "ItemList",
"name": "Vehicle Makes",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Kia", "url": "https://www.autosmarket.com/make/kia/" },
{ "@type": "ListItem", "position": 2, "name": "Volkswagen", "url": "https://www.autosmarket.com/make/volkswagen/" },
{ "@type": "ListItem", "position": 3, "name": "Audi", "url": "https://www.autosmarket.com/make/audi/" },
{ "@type": "ListItem", "position": 4, "name": "Hyundai", "url": "https://www.autosmarket.com/make/hyundai/" },
{ "@type": "ListItem", "position": 5, "name": "Mitsubishi", "url": "https://www.autosmarket.com/make/mitsubishi/" },
{ "@type": "ListItem", "position": 6, "name": "RAM", "url": "https://www.autosmarket.com/make/ram/" },
{ "@type": "ListItem", "position": 7, "name": "Jeep", "url": "https://www.autosmarket.com/make/jeep/" },
{ "@type": "ListItem", "position": 8, "name": "Dodge", "url": "https://www.autosmarket.com/make/dodge/" },
{ "@type": "ListItem", "position": 9, "name": "Chrysler", "url": "https://www.autosmarket.com/make/chrysler/" },
{ "@type": "ListItem", "position": 10, "name": "Alfa Romeo", "url": "https://www.autosmarket.com/make/alfa-romeo/" },
{ "@type": "ListItem", "position": 11, "name": "Chevrolet", "url": "https://www.autosmarket.com/make/chevrolet/" },
{ "@type": "ListItem", "position": 12, "name": "GMC", "url": "https://www.autosmarket.com/make/gmc/" },
{ "@type": "ListItem", "position": 13, "name": "Buick", "url": "https://www.autosmarket.com/make/buick/" },
{ "@type": "ListItem", "position": 14, "name": "Cadillac", "url": "https://www.autosmarket.com/make/cadillac/" }
]
}
]
}
/make/kia/ → kia)./model/{brand}/....ItemList dynamically and injects it into <head>.MODEL_LINK_SELECTOR at the top of the script. Default looks for any <a> whose href contains /model/{brand}/./make/kia/, /make/audi/, etc.).<script> block below right before the closing </body> tag.<script>
(function() {
// ====== CONFIG ======
// Selector for model links on the page. Default: any link to /model/{brand}/...
// Change this if your HTML uses specific classes (e.g., '.model-grid a').
var MODEL_LINK_SELECTOR = 'a[href*="/model/"]';
// ====================
// Brand display names (for proper capitalization in schema)
var BRAND_NAMES = {
'kia': 'Kia',
'volkswagen': 'Volkswagen',
'audi': 'Audi',
'hyundai': 'Hyundai',
'mitsubishi': 'Mitsubishi',
'ram': 'RAM',
'jeep': 'Jeep',
'dodge': 'Dodge',
'chrysler': 'Chrysler',
'alfa-romeo': 'Alfa Romeo',
'chevrolet': 'Chevrolet',
'gmc': 'GMC',
'buick': 'Buick',
'cadillac': 'Cadillac',
'fiat': 'FIAT',
'genesis': 'Genesis'
};
// Detect brand from URL
var match = window.location.pathname.match(/\/make\/([^\/]+)\/?/);
if (!match) return;
var brandSlug = match[1].toLowerCase();
var brandName = BRAND_NAMES[brandSlug] || brandSlug.charAt(0).toUpperCase() + brandSlug.slice(1);
// Find model links pointing to /model/{brand}/...
var allLinks = document.querySelectorAll(MODEL_LINK_SELECTOR);
var seen = {};
var models = [];
allLinks.forEach(function(link) {
var href = link.getAttribute('href') || '';
// Match /model/{brand}/{modelSlug}
var m = href.match(new RegExp('/model/' + brandSlug + '/([^\\/\\?#]+)', 'i'));
if (!m) return;
var modelSlug = m[1];
if (seen[modelSlug]) return;
seen[modelSlug] = true;
// Get model name from link text, fallback to slug
var name = (link.textContent || '').trim();
if (!name) name = modelSlug.replace(/-/g, ' ').replace(/\b\w/g, function(c){return c.toUpperCase();});
// Build absolute URL
var absoluteUrl = link.href;
models.push({
"@type": "ListItem",
"position": models.length + 1,
"name": brandName + ' ' + name,
"url": absoluteUrl
});
});
if (models.length === 0) return;
var schema = {
"@context": "https://schema.org",
"@graph": [
{
"@type": "CollectionPage",
"@id": window.location.href + "#webpage",
"url": window.location.href,
"name": brandName + " Models | Autos Market",
"description": "Browse all available " + brandName + " models at Autos Market. Find prices and dealerships near you.",
"isPartOf": { "@id": "https://www.autosmarket.com/#website" },
"breadcrumb": { "@id": window.location.href + "#breadcrumb" },
"about": { "@type": "Brand", "name": brandName }
},
{
"@type": "BreadcrumbList",
"@id": window.location.href + "#breadcrumb",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://www.autosmarket.com/" },
{ "@type": "ListItem", "position": 2, "name": "Makes", "item": "https://www.autosmarket.com/make/" },
{ "@type": "ListItem", "position": 3, "name": brandName, "item": window.location.href }
]
},
{
"@type": "ItemList",
"name": brandName + " Models",
"itemListElement": models
}
]
};
var script = document.createElement('script');
script.type = 'application/ld+json';
script.text = JSON.stringify(schema, null, 2);
document.head.appendChild(script);
})();
</script>
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Car",
"@id": "https://www.autosmarket.com/model/BRAND_SLUG/MODEL_SLUG#car",
"name": "BRAND_NAME MODEL_NAME",
"description": "MODEL_DESCRIPTION",
"image": "MODEL_IMAGE_URL",
"brand": {
"@type": "Brand",
"name": "BRAND_NAME"
},
"model": "MODEL_NAME",
"url": "https://www.autosmarket.com/model/BRAND_SLUG/MODEL_SLUG"
},
{
"@type": "WebPage",
"@id": "https://www.autosmarket.com/model/BRAND_SLUG/MODEL_SLUG#webpage",
"url": "https://www.autosmarket.com/model/BRAND_SLUG/MODEL_SLUG",
"name": "BRAND_NAME MODEL_NAME | Autos Market",
"isPartOf": { "@id": "https://www.autosmarket.com/#website" },
"about": { "@id": "https://www.autosmarket.com/model/BRAND_SLUG/MODEL_SLUG#car" },
"breadcrumb": { "@id": "https://www.autosmarket.com/model/BRAND_SLUG/MODEL_SLUG#breadcrumb" }
},
{
"@type": "BreadcrumbList",
"@id": "https://www.autosmarket.com/model/BRAND_SLUG/MODEL_SLUG#breadcrumb",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://www.autosmarket.com/" },
{ "@type": "ListItem", "position": 2, "name": "Makes", "item": "https://www.autosmarket.com/make/" },
{ "@type": "ListItem", "position": 3, "name": "BRAND_NAME", "item": "https://www.autosmarket.com/make/BRAND_SLUG/" },
{ "@type": "ListItem", "position": 4, "name": "BRAND_NAME MODEL_NAME", "item": "https://www.autosmarket.com/model/BRAND_SLUG/MODEL_SLUG" }
]
}
]
}
This pulls brand/model from the URL and the H1 from the page. Drop into the model template.
<script>
(function() {
var BRAND_NAMES = {
'kia':'Kia','volkswagen':'Volkswagen','audi':'Audi','hyundai':'Hyundai',
'mitsubishi':'Mitsubishi','ram':'RAM','jeep':'Jeep','dodge':'Dodge',
'chrysler':'Chrysler','alfa-romeo':'Alfa Romeo','chevrolet':'Chevrolet',
'gmc':'GMC','buick':'Buick','cadillac':'Cadillac','fiat':'FIAT','genesis':'Genesis'
};
var m = window.location.pathname.match(/\/model\/([^\/]+)\/([^\/]+)/);
if (!m) return;
var brandSlug = m[1].toLowerCase();
var modelSlug = m[2];
var brandName = BRAND_NAMES[brandSlug] || brandSlug;
// Try to get model display name from H1, fallback to slug
var h1 = document.querySelector('h1');
var modelName = h1 ? h1.textContent.replace(brandName,'').trim() : modelSlug.replace(/-/g,' ');
// Try to get main image
var imgEl = document.querySelector('main img, article img, .model-hero img');
var imgUrl = imgEl ? imgEl.src : null;
var url = window.location.href;
var schema = {
"@context": "https://schema.org",
"@graph": [
{
"@type": "Car",
"@id": url + "#car",
"name": brandName + ' ' + modelName,
"brand": { "@type": "Brand", "name": brandName },
"model": modelName,
"url": url
},
{
"@type": "WebPage",
"@id": url + "#webpage",
"url": url,
"name": brandName + ' ' + modelName + ' | Autos Market',
"isPartOf": { "@id": "https://www.autosmarket.com/#website" },
"about": { "@id": url + "#car" },
"breadcrumb": { "@id": url + "#breadcrumb" }
},
{
"@type": "BreadcrumbList",
"@id": url + "#breadcrumb",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://www.autosmarket.com/" },
{ "@type": "ListItem", "position": 2, "name": "Makes", "item": "https://www.autosmarket.com/make/" },
{ "@type": "ListItem", "position": 3, "name": brandName, "item": "https://www.autosmarket.com/make/" + brandSlug + "/" },
{ "@type": "ListItem", "position": 4, "name": brandName + ' ' + modelName, "item": url }
]
}
]
};
if (imgUrl) schema["@graph"][0].image = imgUrl;
var script = document.createElement('script');
script.type = 'application/ld+json';
script.text = JSON.stringify(schema, null, 2);
document.head.appendChild(script);
})();
</script>
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Blog",
"@id": "https://www.autosmarket.com/blog/#blog",
"url": "https://www.autosmarket.com/blog/",
"name": "Autos Market Blog",
"description": "Automotive news, buying guides, vehicle reviews, and expert tips from Autos Market.",
"publisher": { "@id": "https://www.autosmarket.com/#organization" },
"inLanguage": "en-US"
},
{
"@type": "CollectionPage",
"@id": "https://www.autosmarket.com/blog/#webpage",
"url": "https://www.autosmarket.com/blog/",
"name": "Blog | Autos Market",
"isPartOf": { "@id": "https://www.autosmarket.com/#website" },
"breadcrumb": { "@id": "https://www.autosmarket.com/blog/#breadcrumb" }
},
{
"@type": "BreadcrumbList",
"@id": "https://www.autosmarket.com/blog/#breadcrumb",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://www.autosmarket.com/" },
{ "@type": "ListItem", "position": 2, "name": "Blog", "item": "https://www.autosmarket.com/blog/" }
]
}
]
}
Goal: Have schema generated automatically for every blog post, no manual JSON editing.
Article / BlogPosting schema using the post's title, author, dates, featured image, and meta description.Autos Marketpublisher field in every article schema.https://www.instagram.com/autosmarketdotcomhttps://www.youtube.com/@AutosMarketheadlineimage (use 1200×675 or similar)descriptionauthor (set the author in the post sidebar)articleSectiondatePublished and dateModifiedYou don't need to copy this — Yoast outputs it automatically. Shown here so you know what to expect when validating.
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Article",
"@id": "https://www.autosmarket.com/blog/example-post/#article",
"isPartOf": { "@id": "https://www.autosmarket.com/blog/example-post/#webpage" },
"author": { "@id": "https://www.autosmarket.com/#/schema/person/AUTHOR_ID" },
"headline": "Example Blog Post Title",
"datePublished": "2025-01-15T08:00:00+00:00",
"dateModified": "2025-01-15T08:00:00+00:00",
"mainEntityOfPage": { "@id": "https://www.autosmarket.com/blog/example-post/#webpage" },
"publisher": { "@id": "https://www.autosmarket.com/#organization" },
"image": { "@id": "https://www.autosmarket.com/blog/example-post/#primaryimage" },
"articleSection": ["Auto News"],
"inLanguage": "en-US"
},
{
"@type": "WebPage",
"@id": "https://www.autosmarket.com/blog/example-post/#webpage",
"url": "https://www.autosmarket.com/blog/example-post/",
"name": "Example Blog Post Title | Autos Market",
"isPartOf": { "@id": "https://www.autosmarket.com/#website" },
"primaryImageOfPage": { "@id": "https://www.autosmarket.com/blog/example-post/#primaryimage" },
"datePublished": "2025-01-15T08:00:00+00:00",
"dateModified": "2025-01-15T08:00:00+00:00",
"breadcrumb": { "@id": "https://www.autosmarket.com/blog/example-post/#breadcrumb" }
}
]
}