SEO guide

How do you add structured data (Schema.org)? A step-by-step JSON-LD guide

Structured data is code that describes the information on your page in a language search engines understand unambiguously. In this guide, you'll find the Schema.org types that are useful for small businesses and content sites, Google's required and recommended properties, how to write JSON-LD linked with @id and how to test your markup.

12 min readUpdated: November 6, 2026

In short

  • Structured data is code that uses the Schema.org vocabulary to say what a page is about (a product, a business, an article). Google reads JSON-LD, Microdata and RDFa, and recommends JSON-LD.
  • On its own, it doesn't improve rankings. It helps Google understand the page and makes it eligible for rich results such as price, stock or breadcrumbs; eligibility isn't a guarantee of display.
  • "Required" and "recommended" properties are Google's rules, not Schema.org's. If a required property is missing, the item isn't eligible for that rich result.
  • Every piece of information in the markup must be visible on the page. Marking up a price, review or question that isn't on the page can lead to a manual action.
  • Since 2023, FAQ rich results have been shown only for well-known government and health websites, and HowTo results have been removed. Don't add these types expecting a rich result.

What is structured data and what is it for?

A person reading a product page immediately understands that "449,90 TL" is the price and "In stock" is the availability. A search engine sees only text and has to guess which number is the price and which is the model number. Structured data removes that guesswork: it labels the information explicitly as "this is a product, its name is this, its price is 449.90, the currency is TRY, it's in stock".

The labels come from Schema.org, a vocabulary the major search engines launched together in 2011. It defines hundreds of types (Product, LocalBusiness, Article, Event…) and their properties (name, price, address…); Google and Bing both read the same vocabulary. Structured data has three concrete benefits:

  • Understanding: Google recognizes the page's topic, your organization, the author and the publication date more precisely.
  • Rich results: extra information such as price and stock status, review stars or event dates can be shown in the search result. These features don't change your ranking, but they make your result more informative.
  • Site name and logo: WebSite and Organization markup helps Google choose your site's name and logo correctly.

Structured data is no substitute for content: a page with flawless markup but weak content won't outrank a strong page without markup.

JSON-LD, Microdata and RDFa: which should you choose?

Schema.org markup can be written in three formats. The difference is where the markup sits in the HTML:

  • JSON-LD: sits in a <script type="application/ld+json"> block on the page, separate from the visible HTML. This is the format Google recommends.
  • Microdata: written by adding itemscope, itemtype and itemprop attributes to visible HTML elements.
  • RDFa: works the same way using the vocab, typeof and property attributes.

Here is the same product information written first in Microdata, then in JSON-LD:

<div itemscope itemtype="https://schema.org/Product">
  <h1 itemprop="name">Erken Hasat Zeytinyağı 1 L</h1>
  <div itemprop="offers" itemscope itemtype="https://schema.org/Offer">
    <span itemprop="price" content="449.90">449,90</span> TL
    <meta itemprop="priceCurrency" content="TRY">
  </div>
</div>

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Erken Hasat Zeytinyağı 1 L",
  "offers": { "@type": "Offer", "price": "449.90", "priceCurrency": "TRY" }
}
</script>

JSON-LD's advantage is maintenance. When you change your theme or move an element, the markup doesn't break, the code can be read in one place and it's easy to generate from a template. If you have an older theme that uses Microdata, you don't have to remove it right away, but don't mark up the same information in two formats. If the theme writes a Product in Microdata while a plugin adds a second Product in JSON-LD, it can look as if there are two different products on the page.

Google says it can also read JSON-LD that is added later with JavaScript. Even so, it's safer to put frequently changing information such as price and stock in the HTML that comes from the server; Google's product documentation warns that dynamically generated markup can make Shopping crawls less frequent and less reliable. Röntgen's Structured data checker reads only the HTML that comes from the server, so markup added with Google Tag Manager doesn't show up there.

Which types should small businesses and content sites use?

Most sites can manage with just a few types. Choose the type based on the main topic of the page.

Organization: who you are

Describes your organization's name, logo, contact details and social profiles (sameAs); it goes on the home page or the About page. Google has no required properties for it; the most useful are name, url, logo and sameAs. According to Google's documentation, the logo must be at least 112 × 112 pixels and sit at a crawlable URL.

LocalBusiness: businesses customers visit

For businesses with a physical address, such as shops, clinics, restaurants and hairdressers. It's a subtype of Organization; choose a more specific type where possible (Dentist, Restaurant, HairSalon, Plumber…). Google requires the name and address; phone number, opening hours, coordinates and price range are recommended. The details must match your Google Business Profile and the address on the page exactly.

Product and Offer: pages about a single product

The product's name, image, brand and SKU go in Product; price, currency and stock status go in Offer. For product rich results, Google requires the name plus at least one of an offer, an aggregate rating or a review; free listings on Google Shopping also need an image, price and currency. Google's guidelines say the markup must describe a specific product, not a category or a list of products, so put Product on the product page.

Article and BlogPosting: content pages

For blog posts, news and guides. Google has no required properties; headline, image, datePublished, dateModified and author are recommended. Give the author's name and the URL of their author page; write dates with a time zone and update dateModified only when the content has really changed.

BreadcrumbList: the page's place on the site

Describes the path from the home page to the current page (Home › Olive oils › Early harvest). Each step has a position and name, and every step except the last has an item (URL). Google announced in early 2025 that it had started showing only the domain instead of the breadcrumb in mobile search results; breadcrumbs are still shown in desktop results. The markup must match the breadcrumb visible on the page.

WebSite: site name

Added only to the home page. With name and url you tell Google the site name to show, and with alternateName your abbreviation or another name people often use. Since Google removed the sitelinks search box in 2024, adding SearchAction no longer has any visible effect.

FAQPage and HowTo: keep your expectations low

In August 2023, Google limited FAQ rich results to well-known, authoritative government and health websites, and the same year it stopped showing HowTo results, first on mobile and then on desktop. In 2025 it announced that it would phase out some other features as well, such as course info. Markup for these types remains valid and does no harm, but on most sites it doesn't change how the search result looks. If your page really has a visible FAQ section, adding FAQPage is fine; just don't write questions and answers only for a rich result. Supported features change over time, so check the current list in the structured data gallery on Google Search Central.

Since 2019, Google hasn't shown review stars for reviews that a business or organization publishes about itself on its own site (LocalBusiness and Organization). Marking up these reviews won't earn stars. Genuine customer reviews on a product page, however, can be marked up with Product's review and aggregateRating properties.

Build your markup from a form, and see required properties and format errors before you publish.

Structured data generator

What are required and recommended properties?

No property is required in the Schema.org vocabulary itself; the distinction comes from Google's rich result rules. If one of the required properties is missing, the item isn't eligible for that rich result. Recommended properties don't affect eligibility, but when you add them Google can show more information in the search result. Add every recommended property you know and that is visible on the page; don't make up what you don't know.

TypeProperties Google requiresMain recommended properties
Productname and one of offers, review or aggregateRating; in the offer, price and priceCurrencyimage, description, brand, sku or gtin, offers.availability
LocalBusinessname, addresstelephone, url, geo, openingHoursSpecification, priceRange, image
Organizationnonename, url, logo, sameAs
Articlenoneheadline, image, datePublished, dateModified, author.name
BreadcrumbListposition and name in every step, item in every step except the last—
Eventname, startDate, locationendDate, eventStatus, image, offers, organizer
WebSitename, urlalternateName

Formats matter at least as much as properties. The main rules Google expects and Röntgen checks:

  • The price is a number only, with a dot as the decimal separator: "price": "1299.90". Don't write "1.299,90 TL".
  • The currency is an ISO 4217 code: TRY for the Turkish lira. "TL" or "₺" isn't valid.
  • Dates use ISO 8601 format: 2026-11-06, or with a time, 2026-11-06T09:00:00+03:00.
  • Durations use the ISO 8601 duration format: PT30M for 30 minutes.
  • Stock status is written with a Schema.org value: https://schema.org/InStock.
  • The url, image and logo properties take a full URL starting with https://.

Ready-made examples: a local business and a product page

The two blocks below were written for fictional businesses; replace the values with your own details. The first is for the contact page of a dental clinic in Kadıköy, Istanbul:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Dentist",
  "@id": "https://ornek-klinik.com.tr/#isletme",
  "name": "Örnek Diş Kliniği",
  "url": "https://ornek-klinik.com.tr/",
  "image": "https://ornek-klinik.com.tr/img/klinik-giris.jpg",
  "telephone": "+90 216 000 00 00",
  "priceRange": "₺₺",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "Örnek Sokak No: 12 D: 3",
    "addressLocality": "Kadıköy",
    "addressRegion": "İstanbul",
    "postalCode": "34710",
    "addressCountry": "TR"
  },
  "geo": { "@type": "GeoCoordinates", "latitude": 40.99, "longitude": 29.03 },
  "openingHoursSpecification": [
    { "@type": "OpeningHoursSpecification", "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"], "opens": "09:00", "closes": "19:00" },
    { "@type": "OpeningHoursSpecification", "dayOfWeek": "Saturday", "opens": "10:00", "closes": "15:00" }
  ]
}
</script>

The second is for a single product page in an olive oil shop:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Erken Hasat Natürel Sızma Zeytinyağı 1 L",
  "image": [
    "https://magaza-ornek.com/img/erken-hasat-1l-1x1.jpg",
    "https://magaza-ornek.com/img/erken-hasat-1l-4x3.jpg",
    "https://magaza-ornek.com/img/erken-hasat-1l-16x9.jpg"
  ],
  "description": "Ekim ayında toplanan zeytinlerden soğuk sıkım natürel sızma zeytinyağı.",
  "sku": "EH-1000",
  "brand": { "@type": "Brand", "name": "Magaza Örnek" },
  "offers": {
    "@type": "Offer",
    "url": "https://magaza-ornek.com/erken-hasat-zeytinyagi-1-l",
    "price": "449.90",
    "priceCurrency": "TRY",
    "availability": "https://schema.org/InStock",
    "itemCondition": "https://schema.org/NewCondition"
  }
}
</script>

The product example has no aggregateRating, because you shouldn't add a rating if the page has no customer reviews. If you collect reviews, add the rating and review count using the values shown on the page. Providing images in several aspect ratios helps Google pick the right one for each type of result.

How do you nest items and link them with @id?

A page often describes several connected entities: a person wrote the article, your organization published it, and the article is part of a website. You can express these relationships in two ways.

Nesting means putting one item directly inside another's property: for example, an Offer in Product's offers property or a Person in Article's author property. It's the easiest approach for small, one-off relationships.

Linking with @id means giving each entity a fixed identifier and referring to it by that identifier from other items. A common convention is to add a fragment to the URL of the page that describes the entity: https://ornek.com.tr/#organization for the organization and https://ornek.com.tr/#website for the website. That way you can reference the organization in the publisher property without rewriting it in every item. Use a @graph array to group connected items in one block:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://ornek.com.tr/#organization",
      "name": "Örnek Zeytincilik",
      "url": "https://ornek.com.tr/",
      "logo": "https://ornek.com.tr/img/logo-512.png",
      "sameAs": ["https://www.instagram.com/ornekzeytincilik"]
    },
    {
      "@type": "WebSite",
      "@id": "https://ornek.com.tr/#website",
      "name": "Örnek Zeytincilik",
      "url": "https://ornek.com.tr/",
      "publisher": { "@id": "https://ornek.com.tr/#organization" }
    },
    {
      "@type": "BlogPosting",
      "headline": "Zeytinyağı nasıl saklanır?",
      "image": "https://ornek.com.tr/img/zeytinyagi-saklama-16x9.jpg",
      "datePublished": "2026-10-20T09:00:00+03:00",
      "dateModified": "2026-11-02T14:30:00+03:00",
      "author": { "@type": "Person", "name": "Ayşe Yılmaz", "url": "https://ornek.com.tr/yazarlar/ayse-yilmaz" },
      "publisher": { "@id": "https://ornek.com.tr/#organization" },
      "isPartOf": { "@id": "https://ornek.com.tr/#website" },
      "mainEntityOfPage": "https://ornek.com.tr/blog/zeytinyagi-nasil-saklanir"
    },
    {
      "@type": "BreadcrumbList",
      "itemListElement": [
        { "@type": "ListItem", "position": 1, "name": "Ana sayfa", "item": "https://ornek.com.tr/" },
        { "@type": "ListItem", "position": 2, "name": "Blog", "item": "https://ornek.com.tr/blog" },
        { "@type": "ListItem", "position": 3, "name": "Zeytinyağı nasıl saklanır?" }
      ]
    }
  ]
}
</script>
  • Although an @id looks like a URL, it doesn't need to be visited; it's just an identifier. Once you've chosen an identifier, don't change it.
  • Don't rely on Google resolving a reference from another page. Define the entity you refer to in the markup on the same page as well.
  • Röntgen's Structured data checker resolves @id references within the same JSON-LD block. Grouping connected items in a single @graph instead of splitting them across blocks makes them easier both to read and to check.

Why must markup match the visible content?

The core rule of Google's structured data guidelines is this: the markup must describe the content that a visitor to the page sees. Marking up information that users can't see, that is unrelated to the page or that is misleading goes against the guidelines. In that case, Google can apply a structured data manual action in Search Console and remove the site's rich results. Common mismatches:

  • Price and stock: the old price staying in the markup while the page shows a discounted price, or InStock on a sold-out product. Have the price and stock written into the markup from the same data source as the page; don't enter them by hand.
  • Reviews: adding aggregateRating when there are no reviews on the page, or marking up a rating from another site on your own page.
  • Hidden FAQs: adding questions to FAQPage that aren't on the page. Answers collapsed in an accordion that users can open are on the page; text that is never shown isn't visible content.
  • Dates: updating dateModified every day without changing the content. Keep the markup in line with the "Updated" date shown on the page.
  • Wrong page: using a template to print a product's details or reviews on every page, including pages that don't show that information.

How do you test your markup?

Each tool answers a different question; use several together.

  • Google Rich Results Test (search.google.com/test/rich-results): evaluates a URL or a code snippet the way Google sees it. It renders the page with its JavaScript and shows eligibility, errors and warnings only for the rich result types Google supports; an unsupported type such as Person isn't listed here even if it's valid.
  • Schema Markup Validator (validator.schema.org): validates all Schema.org types against the vocabulary and finds typos in type and property names and properties in the wrong place. It doesn't check Google-specific required properties.
  • Search Console: after publication, the rich result reports list the valid and invalid items on your site over time; the URL Inspection tool shows the structured data Google detected on a single page.
  • Röntgen Structured data checker: extracts every JSON-LD block, Microdata and RDFa on the page. It shows the line and column where unreadable JSON breaks, and marks each rich result type as "OK", "Not eligible" or, for types Google has retired, "Retired". A missing required property or a price that isn't a number appears as critical, a missing recommended property as a warning.

The recommended order is: before publishing, paste the code into the code tab of the Rich Results Test; after publishing, test the URL in Röntgen and in the Rich Results Test; a few days later, check the Search Console reports. The reports update as pages are recrawled, so an error you've fixed doesn't disappear immediately. After the fix, you can use the validation option in the report to ask Google to check the pages again.

See the JSON-LD blocks, missing properties and format errors of your live page in one go.

Structured data checker

Common mistakes and how to fix them

  • Trailing commas and smart quotes: a comma after the last item, “ ” quotes copied from a word processor or single quotes break the JSON, and Google can't use any information in the block. Write the code in a plain text editor.
  • Unfilled template variables: a theme or plugin may print a variable whose value is empty exactly as it is. Always check the output on the live page.
  • Duplicate markup: the theme, an SEO plugin and a shop plugin may each print an Organization or Product on the same page, sometimes even under different names. Search the source code for application/ld+json and count how often each type appears; turn off the extras in the plugin settings.
  • Outdated vocabulary: Google stopped supporting markup that uses data-vocabulary.org in 2021; replace the itemtype values with https://schema.org/ URLs.
  • Wrong type: adding Product to a blog post, or Event to a service that is offered all the time. The type must describe the main topic of the page.
  • The same code on every page: for Organization and WebSite, the home page is enough. Product, Article and BreadcrumbList, on the other hand, must be generated on each page with that page's own details.

Step-by-step setup and checklist

  1. List your page types: home page, product, category, blog post, contact or branch. Note which Schema.org type each template needs.
  2. Prepare the code: generate markup for a single page from a form with the Structured data generator; the "Fill with example" button shows how the fields are filled in, and required fields are marked with an asterisk. For multi-page templates such as products and blog posts, generate the code from your site's database.
  3. Place it: put the block inside <head> or <body>. In WordPress, use your SEO plugin's schema settings or the theme template; don't print the same type from two sources.
  4. Test before publishing: paste the code into the Rich Results Test; there should be no JSON errors or missing required properties left.
  5. Check after publishing: scan the page with the Structured data checker and compare the price, dates and address in the markup with what is shown on the page.
  6. Monitor: look at the rich result reports in Search Console once a month; when prices, stock or opening hours change, make sure the markup changes too.

Final check before going live:

  • Every block has "@context": "https://schema.org" and every item has @type.
  • The price is a number with a decimal point, the currency is TRY and dates are in ISO 8601 format.
  • Every piece of marked-up information is visible on the page.
  • Each type is marked up once on the page, in a single format.
  • Connected items are in the same @graph, and @id values are stable.

Frequently asked questions

Where on the page should I put the JSON-LD code?

Google reads the JSON-LD block in either the head or the body of the page; both are valid. Put each block, with that page's own details, on the page it describes: organization and website code on the home page, product code on the product page, article code on the post.

Does valid markup guarantee a rich result?

No. Having all required properties only makes the page eligible. Google decides whether to show a rich result based on the query, the content quality and the site's trustworthiness.

Is FAQ (FAQPage) markup worth adding?

Since 2023, Google has shown FAQ rich results only for well-known government and health websites; on most sites the markup doesn't change how the search result looks. If you have an FAQ section that is genuinely visible on the page, marking it up does no harm, but don't write questions and answers just for that.

Should I add Product markup to a category page?

Google's product guidelines ask for markup that describes a specific product; category pages and product lists don't fit that definition. BreadcrumbList is enough on category pages; put Product on each product's own page.

What's the difference between the Rich Results Test and the Schema Markup Validator?

The Rich Results Test looks only at the types Google supports and checks Google's required properties. Schema Markup Validator validates against the whole Schema.org vocabulary but doesn't know Google-specific rules. Use both before publishing.

Will a structured data error get my site penalized?

A syntax error isn't a penalty; Google simply can't use the broken block. Markup that breaks the guidelines, such as reviews that aren't on the page or misleading prices, can lead to a manual action, and the site's rich results may be removed.

Related guides and tools