Schema and AI search

Structured data explained: what it is and when a small business needs it

Structured data explained without jargon: what it is, the types a small business should care about, the rule that it must match the page, and how to add it.

Structured data is a block of code that tells search engines what your page describes, such as a clinic, a product or an article. For a small business it is useful when the markup matches what visitors see, and it is wrong when it does not. This guide explains what it is, which types most small businesses need, and how to add and check it without overpromising.

Structured data in one paragraph

Structured data is code, usually JSON-LD, that describes a page's content using the schema.org vocabulary. It sits in the page's source, out of sight of visitors, and gives a search engine labelled facts such as the name of a business, its address, the price of a product or the author of an article. It must match what the page visibly shows. If the markup says one thing and the page says another, the markup is wrong, however correct the code looks.

What it can do, and what it cannot: it helps machines understand, it does not buy a ranking

Structured data helps a machine read your page correctly. Some search result types depend on it, and which ones appear is up to the search engine. It does not buy a ranking. No tool or agency can guarantee a ranking, because search engines decide rankings, and anyone who sells structured data as a shortcut to the top spot is selling something that cannot be delivered.

Khoji flags advice that promises a ranking or recommends a spam tactic, such as hidden text. Treat any promise of a ranking as a warning sign, whoever makes it.

Structured data is also different from an llms.txt file, which is a separate and optional text file. The llms.txt guide explains that difference.

The types most small businesses need: local business, organisation, product, article, breadcrumb

Khoji generates schema markup for fifteen types, including LocalBusiness, Product, FAQPage, Article, Organization and BreadcrumbList. For a small business, five of these cover most pages:

A shopkeeper arranges a clay jug on a wooden counter in a ceramics shop.
A local shop and its products call for different structured data types.
  • LocalBusiness for a clinic, shop, school, salon or office that customers visit.
  • Organization for the business as a whole, when you have one main website.
  • Product for an item you sell, with its name and price shown on the page.
  • Article for a blog post or guide, with the headline and the author shown on the page.
  • BreadcrumbList for the trail of pages that leads to a page, such as Home, then Services, then Dental implants.

Each type asks for some fields. Fill only the fields the page shows. Generating or validating schema in Khoji costs no credits, so you can try each type on your own pages. The pricing page lists the plans if you want to compare options, and the Khoji home page is where you can start.

For FAQ markup in particular, the FAQ schema generator guide covers what to include and what to leave out.

The rule: only describe what the page actually shows

Khoji refuses a name, price or rating that the page text does not contain. That single rule keeps your markup honest. When you add structured data by hand or through a plugin, apply the same test to every line:

  1. Find the value on the visible page.
  2. If it is not visible, leave it out.
  3. If the page changes later, update the markup in the same edit.

Khoji can also check schema that is already on a page against the same rule, so you can find a rating or price the page never shows. Khoji also tells you that Google no longer shows FAQ or How-to rich results, so do not expect those results from that markup, even when the markup is valid.

Only describe what the page showsA decision path: add a value to the markup only if the page visibly shows it.Only describe what the page showsPick a value for the markupDoes the page visiblyshow it?Leave it out ofthe markupNoYesAdd it to the markupUpdate the markup whenthe page changesAUTOMIX AI
Markup that describes things the page does not show is wrong.

A short worked example for a clinic

Imagine a dental clinic in Surat called Shree Dental Care (a made-up example, with a made-up address). Its contact page shows the clinic name, the street address and the city. The markup for that page can describe those three things and nothing else:

A receptionist checks a laptop behind the front desk of a small dental clinic.
A clinic's contact-page markup should describe the details shown on that page.
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "name": "Shree Dental Care",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "14 Ring Road",
    "addressLocality": "Surat",
    "addressRegion": "Gujarat",
    "addressCountry": "IN"
  }
}

Now suppose the same site adds a star rating to the markup, but the page never shows that rating to visitors. That line breaks the rule, and a checker that compares markup with the page will flag it. Either remove the rating, or show it on the page first and then add it to the markup. A rating that visitors cannot see is a mismatch between the markup and the page, and it is fixed only by removing it or by showing it on the page.

How to add it and how to check it

Follow these steps for each important page:

  1. Pick the type that matches the page. Use LocalBusiness for a contact page, and Article for a guide.
  2. Write the JSON-LD with only the values the page shows.
  3. Place the script in the page as your site builder or plugin allows. Some platforms have a field for it, and others need a small code edit.
  4. Check the markup with Khoji, which applies the same visible-page rule to schema already on a page.
  5. Test the live page in Google's free Rich Results Test, and fix anything it reports.

If you want to create the markup rather than write it by hand, the schema markup generator builds it for the types Khoji supports, and then you check it against the page.

Adding and checking the markupFive steps to add structured data to a page and check it.Adding and checking the markup1Pick the type that matches the pageLocalBusiness for a contact page, Article for a guide.2Write JSON-LD with visible values only3Place the script in the pageUse a field in your site builder or a small code edit.4Check the markup with KhojiIt applies the same visible-page rule to existing schema.5Test the live pageUse Google's free Rich Results Test and fix what itreports.AUTOMIX AI
Follow these steps for each important page.

Frequently asked questions

What is structured data?

Structured data is code that describes what a page is about, using the shared vocabulary of schema.org. Search engines read it alongside the page text. Most sites write it as JSON-LD, a block of code placed in the page. It must match what visitors see on the page, because markup that describes things the page does not show is wrong.

Is structured data the same as schema markup?

In everyday use, yes. Schema markup is the markup that follows the schema.org vocabulary, and structured data is the wider idea of labelled information that a machine can read. Most small business sites use JSON-LD schema markup, so people use the two terms for the same thing.

Does structured data improve rankings?

Not by itself. Structured data helps search engines understand a page, and some result types depend on it. No tool or agency can guarantee a ranking, because search engines decide rankings. Treat any promise of a ranking from structured data as a warning sign, and put your effort into a clear page that answers the reader's question.

Which schema type should a local business use?

Most local businesses start with LocalBusiness, which describes a shop, clinic or office that customers visit. Add Organization if you also run a main business website, and BreadcrumbList for the trail of pages that leads to a page. Use only the fields your page shows, such as the name, the address and the opening hours.

Ready to see what your own pages say? Run a Khoji SEO analysis on your own site and start with the page that describes your business. Check that every value in its markup is also visible on the page.

More in Schema and AI search

All Schema and AI search guides · Khoji blog

Run a Khoji SEO analysis on your own site