Structured data and schema validator

Validate JSON-LD, Microdata and RDFa against the bundled Schema.org vocabulary and local Google rich-result rules, and draft new JSON-LD with schema-build.

What it does

Two layers of validation

Layer one asks whether markup is valid Schema.org: the type exists, the property is allowed on it, inherited properties count, and the value fits the expected type. Layer two checks the locally visible conditions for Google rich results, such as required properties. Passing layer two is no promise that Google will show a rich result.

  • Bundled Schema.org vocabulary, works offline
  • Inherited properties handled, so an author on an Article is not a false error
  • Required and one-of properties for rich-result types
  • Parse errors reported when a JSON-LD block is not valid JSON

The markup as a graph

Entities connect through @id references. The checker maps which entities carry an @id, which are linked, which stand alone and whether any reference points nowhere. A stranded entity is a useful finding, because search engines cannot connect it to the rest of the page.

  • Entities without an @id or without a link to the rest
  • References to an @id that does not exist
  • Markup read from JSON-LD, Microdata and RDFa

Build

schema-build drafts a connected @graph for the page type, using only facts visible on the page. It shows the signals it used and how sure it is about the type. You set the type yourself with --type when the guess is weak, and you review the draft before it goes live.

  • Facts taken from the page only
  • Type guess with signals and confidence
  • --type to override
  • Missing recommended fields listed

Three steps, one saved scan

  1. Validate against the Schema.org vocabulary

    schema-check reads the page's structured data and tests every type and property against the bundled Schema.org vocabulary.

  2. Check the markup as a graph

    It maps which entities carry an @id, which are linked, which stand alone, and whether any @id reference points nowhere.

  3. Build missing markup

    schema-build suggests a connected @graph using only facts visible on the page, and lists the recommended fields still missing.

Checks in this feature

CheckWhat it meansSeverityEvidence
SCHEMA_VALIDATION_ERRORThe page's structured data has validation errors against the Schema.org vocabularyImportantValidation error count per page
STRUCTURED_DATA_PARSE_ERRORA JSON-LD block is present but does not parse as valid JSON, so search engines ignore itImportantBlocks found vs blocks parsed
STRUCTURED_DATA_MISSINGThe page has no Schema.org markupTipPage with zero structured data blocks
Also in the check registry
STRUCTURED_DATA_SCHEMA_ERRORSTRUCTURED_DATA_SCHEMA_WARNINGSTRUCTURED_DATA_RICH_RESULT_REQUIRED_MISSING

One command

bash
spiderhead schema-check --url https://example.com/product

Install first: installation guide. Every command also runs as an MCP tool for AI agents.

What you need

  • A page URL, or the HTML itself (html argument) for an offline check
  • A type name for schema-build when the guess is weak
  • No API keys

Limits

  • A static check cannot tell if Google will actually show a rich result
  • It sees the HTML it is given: markup injected by JavaScript is missed unless the HTML is rendered first
  • RDFa, HTML and graph size are bounded; hitting a limit gives an explicit partial result
  • schema-build drafts markup, it does not publish it

Questions

What do I run?
spiderhead schema-check --url https://example.com/product. To check markup offline, pass the HTML itself in the html argument, for example with --input and a JSON object.
Does the tool check rich-result eligibility too?
Yes, locally. Layer one is the Schema.org vocabulary: whether a type exists, whether a property is allowed on it and whether a value type matches. Layer two checks the required properties for each Google rich-result type it has rules for. It cannot know whether Google will display the result.
Which markup formats does it read?
JSON-LD, Microdata and RDFa. A JSON-LD block that does not parse is reported as a parse error, because search engines ignore it.
Will schema-build invent facts for my page?
No. It builds the graph from facts visible on the page. It shows the signals and its confidence. If the type guess is low-confidence, set the type yourself with --type.
Does it change my site?
No. Both commands only read the page. The JSON-LD it drafts is a suggestion you review and deploy yourself.
Does it run in a crawl too?
Yes. A crawl records structured-data findings per page: missing markup, parse errors, schema errors and missing required rich-result properties.

Try it on your own site