Add LocalBusiness schema.org structured data and test it

Day 4, 30 minutes · beginner

Goal of this lessonWrite schema.org LocalBusiness structured data for your business page from facts on the page and test it in Google's Rich Results Test.

Why it matters

This lesson teaches a site owner how to add schema.org structured data to a business page with an AI chat tool, and how to test it with Google's Rich Results Test and the Schema Markup Validator. Structured data is a small block of code on a page that states facts in a fixed format: this is a business, this is its name, this is its address, these are its opening hours. People do not see it. Search engines read it.

Writing that code by hand is fiddly, and one missing comma breaks it. An assistant writes it in seconds. The risk sits somewhere else: an assistant will happily add facts that are not on your page, and both Google and Bing say the code must match what a visitor can see.

At the end of this lesson your contact page carries tested structured data for your business, and you know how to test it again after every change. It is Part 4 of your Findability kit.

What is schema.org structured data?

A shared vocabulary for describing things on a web page, kept at schema.org and understood by the large search engines. Google's introduction to structured data says it gives Google explicit clues about the meaning of a page. Google recommends the format JSON-LD: a block of code between script tags.

Google lists the types it uses for special search results in its structured data gallery. For a business with an address, the type is LocalBusiness. Google's LocalBusiness page names two required properties, the name and the address, and recommends others such as telephone, url and opening hours.

Does structured data help me rank or get quoted by AI?

Nobody promises that, and this course does not either. Google's guide to generative AI features says structured data is not required for its AI answers and that no special markup exists for them, but that it stays a good idea because it makes a page eligible for rich results. Bing's Webmaster Guidelines say structured data may support clearer grounding (being used as a source for an AI answer) and does not guarantee visibility.

Two rules from those pages shape this lesson:

  • Only what is visible. Google says: do not add structured data about information that is not visible to the user, even if it is accurate.
  • No review stars for yourself. Google's LocalBusiness page recommends ratings only for sites that collect reviews about other businesses.

One more thing that older advice gets wrong: Google's documentation updates say the FAQ rich result is no longer shown in Google Search since May 2026. Do not add FAQ markup today in the hope of a bigger result.

The steps

  1. Copy your facts from the page. Open your contact page and copy the business name, address, phone number, site address and opening hours exactly as they are shown. If something is missing from the page, add it to the page first.
  2. Send the request. It asks for LocalBusiness code with only your facts, and for a list that shows which fact each property came from. Pick your tool below and follow the steps.
  3. Compare line by line. Name, street, postcode, phone, each opening time. Code and page must say the same thing.
  4. Test the code. Open the Rich Results Test. Google's help page explains that you choose Code instead of URL, paste the code and run the test, as often as you like. Then paste the same code into the Schema Markup Validator, the test tool on schema.org: choose Code snippet there and run the test.
  5. Fix errors with the assistant. Paste the error text back into the chat. Test again until both tools are clean.
  6. Put it on the page. Google notes that many site builders have a plugin or a settings page for structured data, so you may not have to touch the code of the page. Then test the live address of the page.
  7. Save Part 4. Keep the code, the date and the test results. Whenever your opening hours change, change the page and the code together.

What does LocalBusiness structured data look like?

A block of JSON-LD code between script tags. This is a made-up example, so you recognise the shape:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "name": "Klankhout Pianostemmer",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "Voorbeeldstraat 12",
    "addressLocality": "Lindeveen",
    "postalCode": "8000 AA",
    "addressCountry": "NL"
  },
  "telephone": "+31 38 555 01 23",
  "url": "https://klankhoutpianostemmer.example/",
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
      "opens": "09:00",
      "closes": "17:00"
    }
  ]
}
</script>

Jorien's example

Jorien copies the facts from her contact page. The first draft contains a line she never gave: "aggregateRating", 4.9 from 37 reviews. She has no reviews on her site at all. The request forbids ratings, and the assistant added it in a second version when she asked it to "make it more complete". She deletes the line and stops asking for complete.

The comparison finds a real mismatch too. The code says she opens at 09:00 on Saturday, as her page did. She has not worked Saturdays for two years. The page was wrong, so she fixes the page and then the code.

The Rich Results Test shows no errors and two notes about optional properties she has no facts for. She leaves them empty.

Common mistakes with structured data

  • Marking up what is not on the page. If visitors cannot see it, leave it out of the code.
  • Inventing ratings. Made-up review stars are the fastest way to lose trust, with people and with search engines.
  • Testing once. A changed phone number or a new plugin can break the code. Test again after changes.
  • Expecting a prize. Structured data makes your facts clear. It does not buy a higher place.

Today's actions

Ticks are not saved without an account

Do it in your tool

Claude

  1. Open Claude and start a new chat.
  2. Paste the request below into the chat box, fill in the [paste], and send it.
    Write schema.org structured data in JSON-LD for the contact page of my business.
    Use the type LocalBusiness. Use a more specific subtype only if schema.org has one that fits my business exactly, and tell me which one you chose and why.
    Use only the facts under MY BUSINESS FACTS. Every fact must be on the page itself. Only the notation may change: the phone number with the country code, times as 09:00.
    Include: name, address (a PostalAddress with streetAddress, addressLocality, postalCode and addressCountry), telephone with the country code, url, and openingHoursSpecification with dayOfWeek, opens and closes. Add priceRange only if I gave one.
    Rules: no property that I gave no fact for. No review, no aggregateRating, no rating of any kind. No comments inside the JSON. Do not guess coordinates.
    Give me:
    1. The code in one block, starting with <script type="application/ld+json"> and ending with </script>.
    2. A list of every property with the fact from my page it came from.
    3. Anything in my facts you could not place.
    
    MY BUSINESS FACTS (copied from the page, exactly as they are shown there):
    [paste]
  3. Compare every value in the code with your page: name, street, postcode, phone number and each opening time. Change the code or the page until they are the same.
  4. Open the Rich Results Test at search.google.com/test/rich-results, choose Code instead of URL, paste the code and run the test. Paste any error back into the chat and ask for a fix.
  5. Open the Schema Markup Validator at validator.schema.org, choose Code snippet, paste the same code and choose Run test. The labels may show in your own language. Read the errors and warnings.
  6. Add the code to your contact page (many site builders have a plugin or settings page for it), then test the live address of the page in the Rich Results Test.
  7. Save the code, the date and both test results in your Findability kit under Part 4: Structured data.

Note: The free plan is enough for this task. It has limited usage every 5 hours and every week, which is plenty for one request and a few follow-up questions.

Checked on 1 December 2026 · Source: Claude pricing (opens in a new tab)

Create a free account to save your progress. Sign in or sign up