SiteCheck

Guides · Search

What structured data is and how to add it

Structured data is a block of code that states facts about a page in a form search engines can read directly. It might say that the page is a product, with a name and a price. Visitors do not see the block.

The usual format is JSON-LD, which Google recommends. It can make a page eligible for richer search results, such as a product's price. Google does not guarantee that these will appear, even when the code is correct.

The page and its structured data state the same factsA product page shows a name and price to people. A JSON-LD block states the same name and price for machines. A search engine reads both and may show the price in its result. What people seeTrail shoe$120 JSON-LD, simplified"@type": "Product""name": "Trail shoe""price": "120" Search engine reads bothIt may show the price in the result if the facts match
The block must describe what is really on the page.

What your report means

No structured data means we found no JSON-LD block with a type in the HTML your site sent. A block added later by a script, or data in another format such as microdata, is not counted. This is a low-priority finding, and a page with no suitable type can go without.

An error means a block is not valid JSON, so a program cannot read it. One stray character can stop the whole block from being read. Common causes are a missing comma, a comma after the last item, and curly quotes from a word processor. We check only this syntax. Google's Rich Results Test also checks required fields for the results it supports.

Which type suits your page

Describe only what visitors can see on the page, as Google's guidelines ask. Google's documentation says FAQ rich results are no longer shown, so FAQ code will not bring that result in Google. A minimal block looks like this:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "Example Bakery",
  "url": "https://www.example.com"
}
</script>

How to add it or fix it

To fix an error, follow these steps:

  1. Enter the page address in the Schema Markup Validator or the Rich Results Test.
  2. Find the line the tool reports.
  3. Correct it where the block comes from, whether a plugin, the theme or custom code. Ask a developer if you cannot find it.
  4. Test the page again, then press Rescan on your report.