LocalBusiness JSON-LD - AgentReady

LocalBusiness JSON-LD: the basics, and how to test it

Labels in your page's code that say who you are and where. Search engines document that they read them.

Your home page says your business name, your address and your phone number in big friendly type. A person reads that instantly. Software has to guess which line is the name and which is a street. Structured data removes the guessing: you add a small block of code that labels each fact. This page covers the most common kind for a small business, schema.org LocalBusiness, written as JSON-LD.

Three terms, defined

Pick the most specific type

LocalBusiness is the general type, defined by schema.org as a particular physical business or branch of an organization. It has many more specific subtypes, and Google's documentation says to use the most specific one you can. A few that exist on schema.org:

If nothing fits, plain LocalBusiness is fine. Don't pick a type just because it sounds impressive.

What Google requires and recommends

Google's LocalBusiness documentation lists two required properties:

It recommends several more. The ones that apply to most small businesses:

Google's separate Organization documentation adds logo (at least 112 by 112 pixels) and sameAs, which lists other pages about the same business, such as your social media profiles. Google suggests putting Organization markup on the home page or one page about the business; it doesn't need to be on every page.

A working example

This is for a made-up plumber. Replace every value with your own. Leave out anything you don't have rather than inventing it.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Plumber",
  "name": "Example Plumbing Co.",
  "url": "https://example.com/",
  "telephone": "+1-555-555-0100",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "123 Main St",
    "addressLocality": "Anoka",
    "addressRegion": "MN",
    "postalCode": "55303",
    "addressCountry": "US"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 45.19774,
    "longitude": -93.38718
  },
  "openingHoursSpecification": [{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": ["Monday","Tuesday","Wednesday","Thursday","Friday"],
    "opens": "08:00",
    "closes": "17:00"
  }],
  "priceRange": "$$",
  "sameAs": ["https://www.facebook.com/exampleplumbing"]
}
</script>

Paste it into your home page's HTML, either in the <head> or just before </body>. Most website builders have a "custom code" or "header code" box for this. The AgentReady generator on the home page writes a starting version from a short form.

Rules that trip people up

How to test it

There are two free tools, and they answer different questions.

  1. Google's Rich Results Test (search.google.com/test/rich-results). Paste your page address, or choose "Code" and paste the snippet. It runs as a smartphone crawler by default. It tells you whether the markup is readable and whether it qualifies for the specific Google search features it covers. Errors mean the markup is broken or the page couldn't be reached; fix those first. Warnings mean the test couldn't load some of the page's resources (images, CSS or scripts), so the results may be incomplete. Click into each item to see details.
  2. The Schema Markup Validator (validator.schema.org), run by schema.org. It replaced Google's old Structured Data Testing Tool in 2021. It checks that the markup is valid schema.org in general, without judging it against any one company's search features. Use it when the Rich Results Test says "no items detected" for a type Google doesn't have a feature for.

After the page is live, Google's documentation suggests using the URL Inspection tool in Search Console to confirm Google has seen the markup on the real page.

Common mistakes we see in pasted page source

Sources

Checked October 2026.

Back to the AgentReady tool · The checklist

Start