Deutsch

The Rich Results Test is a Google tool that shows which rich results can be generated from the structured data on a page. It is free and available at search.google.com/test/rich-results. It also lets you preview how most rich results can look in search.

How does the Rich Results Test work?

You test either a URL or a pasted code snippet. The tool reads the markup, in JSON-LD, Microdata, or RDFa, and reports which Google features it qualifies for and which required or recommended properties are missing. Google’s documentation advises validating your code with it and fixing critical errors, and testing a few deployed pages with the URL Inspection tool to see how Google sees them.

A pass shows eligibility only. Google decides per query whether a rich result appears, and the test does not tell you whether the markup fits the page’s content.

Rich Results Test or Schema Markup Validator?

Google recommends two tools for different jobs. The Rich Results Test is for Google rich results. The Schema Markup Validator checks all schema.org-based structured data without Google-feature-specific warnings. The earlier Structured Data Testing Tool moved to the Schema Markup Validator, and Google-specific checks were dropped in the move. Markup can therefore be valid in the validator and still lack properties Google requires for a feature.

Example

Markup you can paste into the code tab:

HTML
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Alpina hiking boot",
  "offers": {
    "@type": "Offer",
    "price": "129.00",
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock"
  }
}
</script>

The test reports whether required fields for this Product feature are missing and which recommended ones could be added.

Common mistakes

  • Reading a passed test as a promise. Google does not guarantee that structured data shows up in search results, even if the page is marked up correctly. Results depend on factors such as search history, location and device type.
  • Assuming the test catches everything. According to Google, structured data can be incorrect in ways the test is not able to catch. Quality guidelines such as visible content and relevance cannot be checked by an automated tool.
  • Testing types Google does not use. For schema.org types without a Google feature, Google points to the Schema Markup Validator.

FAQ

How do I check whether my schema markup is correct? The Rich Results Test shows what Google can derive from it. The Schema Markup Validator checks syntax against the schema.org vocabulary.

Sources

  1. Rich Results Test - Google Search Consolesearch.google.com
  2. Structured data testing - Google Search Centraldevelopers.google.com
  3. Article structured data (testing guidance) - Google Search Centraldevelopers.google.com
  4. General structured data guidelines – Google Search Centraldevelopers.google.com
  5. An update on the Structured Data Testing Tool – Google Search Central Blog (December 2020)developers.google.com

Last updated: