Guide

Schema.org and JSON-LD for Programmatic SEO: What to Mark Up and How to Validate It

Learn when structured data helps programmatic pages, how to create accurate JSON-LD, validate markup, and avoid common schema mistakes.

On this page
  1. Structured data describes the page; it does not make the page useful
  2. Choose markup based on what the page actually contains
  3. A realistic JSON-LD example
  4. A production workflow for structured data at scale
  5. How structured data relates to AI search
  6. Common implementation mistakes
  7. Related reading
  8. Frequently asked questions

Structured data describes the page; it does not make the page useful

Programmatic websites often have clean databases: products, destinations, articles, organizations, and other well-defined entities. That makes them good candidates for structured data, because the fields already exist.

But there are two ideas to keep separate. Schema.org is a vocabulary for describing entities and their attributes. JSON-LD is a way to express that vocabulary in a page. Google supports certain structured-data types for specific Search features, under published rules. Using an arbitrary Schema.org type does not automatically create a rich result, improve rankings, or cause an AI assistant to cite a page.

Google's introduction to structured data and structured-data policies explain these boundaries.

Choose markup based on what the page actually contains

Page Potentially relevant markup What to verify
Editorial guide Article or relevant subtype Real headline, author information, dates where applicable
Navigable article hierarchy BreadcrumbList The visible navigation matches the structured path
Real product page Product when supported and appropriate Product facts and offer details follow Google's requirements
Local business page Supported LocalBusiness subtype Real business details, opening hours, address when applicable
Event page Event when the event is real Date, location and status accurately reflect the event

The table is not a promise of rich results. Read the documentation for the specific Google Search feature you want to qualify for before implementing it.

For instance, publishing FAQPage markup on every blog post is not a shortcut to extra space in the results. Google's FAQ rich-result availability is restricted; visible FAQs can still help readers even without FAQ structured data.

A realistic JSON-LD example

Suppose a programmatic editorial site publishes a genuine, maintained guide. You may describe that page with Article and its breadcrumb trail. Use real values from the content system:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "How to Reach Cala Example by Bus",
  "description": "Route, stop and timetable information for a sample destination.",
  "author": {
    "@type": "Organization",
    "name": "Example Travel Publisher"
  },
  "datePublished": "2026-09-01",
  "dateModified": "2026-11-15",
  "mainEntityOfPage": "https://example.com/destinations/cala-example"
}
</script>

Don't copy them into production. A real implementation should populate these fields from trustworthy published records and only output fields supported by actual content.

If your content model also has breadcrumbs, generate a separate BreadcrumbList object whose positions and URLs match the site's navigation. Avoid hardcoding a single breadcrumb or date across thousands of pages.

A production workflow for structured data at scale

1. Design the content model first

Start with the facts people need: the product's attributes, a route's schedule, an article's author, or an event's date. Do not design pages around the schema vocabulary and then invent content to fill required fields.

2. Define eligibility by template type

Not all templates require the same markup. Build a mapping such as article → Article, eligible product → Product, navigation → BreadcrumbList. Document conditions: what fields must exist, which country rules apply, and which pages should not output a type.

3. Generate JSON safely

Use your framework's serializer to encode data rather than manually concatenating strings. Escape untrusted content correctly. Validate types, URLs, and dates before rendering.

4. Compare markup with visible content

If the JSON-LD claims a product is in stock, the public page must not say “unavailable.” If an article has a modified date, that date should reflect a meaningful update. Google expects structured data to describe the actual page, not hidden or misleading information.

5. Test and monitor

Run Google's Rich Results Test for supported rich-result types and Schema Markup Validator for broader vocabulary checks. Use Search Console enhancement reports where available. A syntactically valid schema object is not proof that a result will appear.

6. Maintain schema alongside the underlying facts

When a product goes out of stock, an event is canceled, or a page is retired, update the visible content and structured data together. Treat mismatches as publishing errors.

Structured data can support machine-readable descriptions of content. It is not a special AI citation mechanism. Google's AI search guidance emphasizes ordinary search fundamentals and does not require special markup for AI features.

For a SaaS integration page, the useful answer still comes from clear compatibility information and documentation. For a travel guide, it comes from reliable schedules. JSON-LD should accurately describe that content; it cannot replace it.

Common implementation mistakes

Using schema types because they sound relevant. Choose based on documented search features and the actual page.

Adding FAQPage to every URL. Don't implement markup at scale without understanding eligibility and purpose.

Generating identical JSON-LD for every record. Titles, descriptions, identifiers and relevant attributes must follow the specific page.

Treating validation as a ranking test. Validation confirms format or feature eligibility, not rankings or inclusion.

Forgetting version changes. Markup becomes misleading when product facts or page status change.

Learn the full method in our programmatic SEO pillar. For page quality, explore the real-data guide and the indexation troubleshooting guide. For AI search visibility, see our Generative Engine Optimization approach.

Build the page for the person. Use structured data to describe what you've really published.

Free SEO audit of your website

See what’s keeping your site off Google and out of ChatGPT’s answers. Free, no signup.

Frequently asked questions

Should every programmatic page have JSON-LD?

Only where it truthfully describes the page and supports a useful purpose. Markup quality and suitability matter more than blanket deployment.

Does valid Schema.org guarantee a rich result?

No. Google applies additional feature-specific requirements, and display is not guaranteed.

Can structured data make ChatGPT or Perplexity cite my website?

There is no general JSON-LD switch that guarantees citations. Publish accurate, accessible, well-supported answers and measure actual visibility.

Let’s talk

Need a hand?

Tell us about your site and we’ll tell you what we’d do with it: which searches you’re missing, and what we’d build first.

Esteban AleartInes Alvergne
You’ll hear back from Ines or Estebanwithin 24 hours