Schema Markup Validation Crawler avatar

Schema Markup Validation Crawler

Pricing

$1.50 / 1,000 dataset items

Go to Apify Store
Schema Markup Validation Crawler

Schema Markup Validation Crawler

Extracts and locally diagnoses static JSON-LD schema candidates from explicit public web-page URLs.

Pricing

$1.50 / 1,000 dataset items

Rating

0.0

(0)

Developer

Khoa Nguyen

Khoa Nguyen

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a month ago

Last modified

Categories

Features

Limited permissions

Share

Audit structured data across a list of public pages. This Actor extracts JSON-LD, HTML Microdata and RDFa Lite, resolves JSON-LD graphs and @id references correctly, and reports deterministic, source-cited findings — including Google's documented required/recommended property checks for a declared set of types.

Every finding carries a stable ruleId, a ruleVersion, and (for Google profile rules) the exact documentation URL and retrieval date it came from. Nothing is guessed.

What it is for

SEO teams, content agencies and AI-search analytics vendors use the dataset to answer: across my whole site, what structured data exists, what is broken, and which pages do I fix first — as data that can go into a spreadsheet, a ticket, or a pipeline.

What it is NOT

  • Not Google's Rich Results Test. It performs local checks against Google's documented property lists. It cannot see crawlability, indexability, or how Google renders your page.
  • Not a rich-result eligibility guarantee. Passing every check here does not mean Google will show a rich result. Google additionally requires crawlability, indexability, visible content, correct page placement and non-misleading markup — none of which an HTTP fetch can verify. This caveat is emitted in every run summary.
  • Not an SEO ranking or scoring tool. There is deliberately no score, no percentage, and no numeric grade.
  • Not a full Schema.org validator. It validates a declared set of types (§Google profile checks) plus vocabulary sanity, not the whole ontology.
  • Not a browser. Pages that build markup with client-side JavaScript are not supported; the initial HTTP response is what gets audited.

Input

startUrls is required: an ordered array of objects, each with a string url. Every entry produces exactly one output record, in input order. Duplicate entries are preserved as records, but the page is only fetched once.

{
"startUrls": [
{ "url": "https://example.com/page" },
{ "url": "https://example.org/article" }
],
"maxPages": 25,
"concurrency": 3
}

Missing or empty startUrls fails the run explicitly. It does not return a green run with an empty dataset.

Limits and safety

ControlDefaultMaximumPurpose
maxPages25500Pages fetched per run. Entries beyond it get explicit skipped_limit records — never silently dropped
concurrency38Simultaneous requests
requestTimeoutSecs15120Total budget per URL, covering all redirects and retries
maxRedirects510Every hop is re-validated against the network policy
maxRetries35Attempts for transient failures
maxResponseBytes2 MiB8 MiBEnforced while streaming and while decompressing
maxFindingsPerEntity20200When reached, the record sets findingsTruncated and findingsOmitted

Network policy: only absolute public http:/https: URLs. URLs with credentials, IP-literal hosts (IPv4 and IPv6), non-default ports, or a hostname resolving to a non-public address are rejected. Every DNS answer is vetted and the connection is pinned to the vetted address, so DNS rebinding cannot redirect a request after vetting. Redirect targets are re-vetted on every hop.

Optional page metadata

enablePageMetadata (default on) adds title, meta description, canonical, Open Graph, Twitter Card, hreflang and robots signals as supporting context. These are reported as information — never as an eligibility verdict.

Optional sitemap discovery

sitemapUrl (default empty) adds bounded URL discovery from an XML sitemap. Discovery is deliberately narrow:

  • fetched through the same vetted, pinned connection path as any page — no separate network code, no new SSRF surface
  • every discovered URL is validated by the same address policy a user-supplied URL faces, and must be on the sitemap's own host
  • a <sitemapindex> is expanded, bounded to 10 child sitemaps
  • bounded by maxSitemapUrls (default 100), and discovered URLs also count against maxPages
  • duplicates of startUrls are de-duplicated for fetching, though each input entry still gets its own record

A sitemap failure is never silent. If retrieval or parsing fails, the run summary's sitemap block reports errors[] with an explicit stage (sitemap_fetch, sitemap_parse, discovered_url), and truncated: true when the cap was hit. A failed sitemap does not stop the startUrls audit.

Discovery filters and robots policy

These apply to sitemap-discovered URLs only. Explicit startUrls are you asking to audit that specific page, so they are never robots-filtered or pattern-dropped.

FieldDefaultEffect
respectRobotsTxttrueFetch and honour robots.txt for each discovered host. Allow/Disallow use longest-match precedence with Allow winning ties, and our own user-agent group takes precedence over *
includeUrlPatterns[]When non-empty, keep only discovered URLs containing at least one pattern
excludeUrlPatterns[]Drop discovered URLs containing any pattern

Drops and un-evaluable policies are reported in the summary's sitemap.discoverySkipped[] with a reason (robots_disallowed, robots_unevaluated, url_pattern_excluded) — never silently. A robots.txt that cannot be fetched fails open for discovery but is recorded as robots_unevaluated, so you can see the policy was not enforced rather than assuming it was.

Feature toggles

enableMicrodata, enableRdfaLite and enablePageMetadata each default to true. Setting one to false skips that format and reports it in detectedNotValidated as a disabled check, so a skipped format is never confused with a clean result.

Output

One terminal record per input entry in the default dataset, plus a run summary in the Key-Value Store under OUTPUT.

Four status fields (read these, not status)

FieldValues
fetchOutcomefetched, http_error, network_error, redirect_error, too_large, unsupported_encoding, not_html, blocked_target, timed_out, input_error, not_attempted
markupDetectionjsonld, microdata, rdfa_lite, multiple, other_vocabulary_only, present_unparseable, none
validationFindingsnone, warnings, errors
processingCompletenesscomplete, partial, skipped_limit, failed_internal, not_processed

Two values are worth reading closely because the alternative would be misleading:

  • fetchOutcome: 'not_attempted' — the URL was never fetched because the page budget ran out. It is deliberately not input_error: nothing was wrong with your input.
  • markupDetection: 'present_unparseable' — structured data was present but a block failed to parse. It is deliberately not none: the markup exists, it is broken.

status is retained for backward compatibility and is derived from the four fields above. Read the four fields for new work.

Validation concerns are reported separately

Findings are split into three arrays which are never blended into a score:

  • validation.structure — is the markup well-formed?
  • validation.vocabulary — is it coherent Schema.org usage?
  • validation.profile — does it meet Google's documented property requirements?

Finding shape

{
"ruleId": "profile.product.required.name",
"ruleVersion": "1.0",
"severity": "error",
"category": "profile",
"entityType": "Product",
"entityId": "e0",
"property": "name",
"path": "name",
"format": "jsonld",
"locator": { "scriptIndex": 0 },
"message": "Required property 'name' is missing for Product.",
"evidence": null,
"suggestion": "Add a non-empty 'name' string to the Product entity.",
"docRef": { "url": "https://developers.google.com/search/docs/appearance/structured-data/product-snippet", "retrievedAt": "2026-10-14" },
"featureStatus": "active"
}

path is the bare property name (e.g. name), not a dotted properties.name selector — filter on property, or on path with the same value. locator carries only the public coordinates documented in docs/INPUT_OUTPUT_CONTRACT.md.

Google profile checks

Validated types: Product, Offer, Article / NewsArticle / BlogPosting, Organization, LocalBusiness, BreadcrumbList, Recipe, Event, VideoObject, JobPosting.

Plus cross-type value checks: ISO 8601 dates, numeric prices, ISO 4217 currency codes, ItemAvailability values, ISO 8601 durations, rating ranges, absolute URLs, and hh:mm times.

Retired features are not validated

A rule is only emitted for a feature Google still supports. Two examples:

FeatureStatusEffect
FAQPage rich resultRetired — removed from Google Search on 2026-05-07No required-property findings. The record carries a featureStatus: retired notice instead
HowTo rich resultRetired — 2023-09-14No HowTo-panel findings (HowToStep remains valid inside Recipe)

This matters commercially: telling you to fix a property for a rich result Google no longer displays would be a misdiagnosis. Types with restrictions (BreadcrumbList is desktop-only; Event and JobPosting are region-restricted) are validated normally and flagged in the notice.

Structured-data formats and coverage boundaries

FormatCoverage
JSON-LDFull graph walk: multiple blocks merged into one dataset, root objects and arrays, nested @graph, @id references, shared blank nodes, string/array/@vocab object contexts, nested typed entities
MicrodataWHATWG item/itemprop algorithm: itemscope, itemtype, itemprop, itemid, itemref, nested items, per-element value extraction
RDFa LiteThe RDFa Lite subset only: vocab, typeof, property, resource, prefix. Full RDFa Core is reported as detected_not_validated

Detected-but-not-validated formats are labelled in detectedNotValidated. A format that was not parsed is never reported as a zero count.

Migration from version 1

  1. All version-1 required fields are retained; existing consumers keep working.
  2. Authoritative status is now the four separate fields (§Output). status is derived.
  3. Derived status values changed for accuracy: a warning-only page is now completed_with_findings (was completed), a page with only non-Schema structured data and informational findings is now completed (was no_markup), a page whose markup failed to parse is now completed_with_findings (was no_markup), and a page skipped because the budget ran out is now skipped_limit with fetchOutcome: 'not_attempted' (was reported as an input_error).
  4. error is restricted to { code, message, httpStatus }. Internal diagnostic fields are no longer exposed — do not depend on them.
  5. Missing or empty input now fails explicitly instead of producing an empty dataset.
  6. New fields are additive and optional.
  7. v1 added two formats and full graph traversal. v1 extracted JSON-LD root nodes only; v2 walks @graph, merges blocks, resolves @id references, and also extracts Microdata and RDFa Lite. summary.schemaEntityCount therefore reports more entities than v1's schemaCandidateCount did for the same page — this is the intended fix, not a regression.
  8. v1's summary.ignoredStructuredDataSummary.microdata / .rdfa_lite were always 0. In v2 those fields report a real count, or null when the format was not measured. A consumer that treated 0 as "checked and clean" must treat null as "not measured".

Local development

npm ci
npm test
npx --yes apify-cli@latest validate-schema < .actor/input_schema.json

The test suite runs entirely against in-process fixtures and loopback HTTP servers. It performs no outbound network calls.

Pricing and billing

This Actor uses Apify platform pricing on the event configured in the Store listing. Failed, rejected and skipped pages are recorded in the dataset for diagnostics regardless of how the run is billed — the records exist so you can see what went wrong.

Limitations

  • Google's documented requirements are a snapshot (rule catalogue retrieved 2026-10-14) and change without notice. The rule catalogue is versioned so changes are traceable.
  • Google's rules cover the subset of Schema.org that drives rich results — not the whole vocabulary.
  • A profile finding is derived from documentation, not from a Google verdict.
  • The special-use address table is derived from the IANA registries, which are living documents. It carries a retrieval date.
  • Client-side-rendered markup is out of scope.