Skip to content
Meet us
Glossy ripe red cherries hanging from a branch above an orchard and a blue mountain lake, a ladder against a tree and a wooden crate in the grass
← All postsFree Guide: GEO

LocalBusiness Schema: A JSON-LD Block to Copy (2026)

November 29, 2026 · 4 min read

A LocalBusiness JSON-LD block to copy for a small business site: what each field means, how to test it, and the mistakes that make it say something false.

Ripe cherries above the lake

By · Published

The short version

  1. Pick the most specific typeUse the schema.org type that names your trade, such as Plumber, Dentist or HVACBusiness, and fall back to LocalBusiness only when none fits.
  2. Copy the block and fill in your real factsName, address or service area, phone, website, hours and profiles, each matching your Google Business Profile and your page word for word.
  3. Give the business a stable @idUse one address such as https://www.yourdomain.com/#business and reuse it on every page so every page describes the same business.
  4. Put it in the page head or bodyWrap the JSON in a script tag with type application/ld+json, once per page, usually from the site layout.
  5. Make sure the page says the same thingEvery fact in the markup should be visible on the page itself. Structured data describes the page; it does not add facts the page lacks.
  6. Test itRun the live URL through Google's Rich Results Test and the Schema Markup Validator and fix every error.

Structured data is a short block of code that states the facts on a page in a form a machine reads without guessing: this is a business, this is its name, this is its phone number, these are its hours. Search engines and answer engines read your page either way. Structured data removes the doubt.

The vocabulary comes from schema.org, and the format Google recommends is JSON-LD (Intro to structured data).

The block

This example is for a plumbing company. Replace every value with your own.

{
  "@context": "https://schema.org",
  "@type": "Plumber",
  "@id": "https://www.yourdomain.com/#business",
  "name": "Flathead Plumbing",
  "url": "https://www.yourdomain.com/",
  "telephone": "+1-406-555-0123",
  "email": "office@yourdomain.com",
  "image": "https://www.yourdomain.com/images/team-truck.jpg",
  "logo": "https://www.yourdomain.com/images/logo.png",
  "description": "Licensed plumbing repair, water heaters and remodels for homes in the Flathead Valley.",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "123 Main Street, Suite 4",
    "addressLocality": "Kalispell",
    "addressRegion": "MT",
    "postalCode": "59901",
    "addressCountry": "US"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 48.1958,
    "longitude": -114.3129
  },
  "areaServed": [
    { "@type": "City", "name": "Kalispell" },
    { "@type": "City", "name": "Whitefish" },
    { "@type": "City", "name": "Columbia Falls" }
  ],
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
      "opens": "08:00",
      "closes": "17:00"
    }
  ],
  "sameAs": [
    "https://www.facebook.com/yourpage",
    "https://www.yelp.com/biz/your-business"
  ]
}

On the page it sits inside a script tag:

<script type="application/ld+json">
  ...the block above...
</script>

What each field is for

  • @type: the most specific type that is true. schema.org has types for many trades: Plumber, Electrician, HVACBusiness, RoofingContractor, Dentist, AutoRepair, HairSalon, LegalService and more. Use LocalBusiness only when nothing narrower fits.
  • @id: a stable identifier for the business. Use the same one on every page so every page describes the same entity. It does not have to be a page that loads.
  • name: the name on your sign, identical to your Google Business Profile.
  • telephone: with country code. The same number as your website and listings.
  • address: the address you show customers. Google lists name and address as the required properties for local business structured data (Local business structured data).
  • geo: latitude and longitude. Right-click your pin in Google Maps to copy them.
  • areaServed: the towns you work in. Useful for service-area businesses.
  • openingHoursSpecification: your real hours. Add a second entry for Saturday hours if they differ.
  • sameAs: links to profiles that are clearly yours: Facebook, Yelp, LinkedIn, an industry directory. This tells engines those pages describe the same business.

Where to put it

Put the block on your homepage and your contact page at minimum. Most sites emit it from the shared layout so it appears on every page with the same @id. Other pages, like a service page or an article, can point to it with "provider": { "@id": "https://www.yourdomain.com/#business" } instead of repeating the whole thing.

The mistakes that make it lie

Google's guidelines say structured data must represent the content of the page and must not describe content that is not visible to readers (General structured data guidelines). Most errors we find break that rule:

  • Hours in the markup that differ from the hours on the page or on Google. Update all of them together.
  • A rating copied from Google. Google does not show stars for a business's reviews of itself, and a rating in your markup must come from reviews shown on your page.
  • A different name or phone from the one on the profile.
  • A type that is not true, such as Restaurant on a catering company with no dining room.
  • Two LocalBusiness blocks on one page with different facts, often one from a theme and one from a plugin. Keep one.
  • Copying a competitor's block and forgetting to change the geo coordinates.

Test it

  1. Rich Results Test: paste your live URL. It shows what Google detects and any errors.
  2. Schema Markup Validator: checks the markup against schema.org itself, including types Google does not use for rich results.
  3. Read it against the page. Open the page and the block side by side and check every fact. The validators confirm the code is well formed. Only you can confirm it is true.

The markup should agree with your listings everywhere. Our guide to citations and name consistency covers how to make them match.

Put the field notes to work.

Explore our agentic websites, see the work, or talk with Sarah about your business.

All the free guides
Questions, answered

Will LocalBusiness schema get me into the map pack?

Not by itself. The map pack comes from Google Business Profiles. Structured data helps Google and other engines read the facts on your website without guessing, and those facts should match your profile.

Can I add my star rating to my own LocalBusiness schema?

You can, but Google does not show review stars for a business's reviews of itself, and the rating must reflect reviews shown on the page. Do not copy your Google rating into your markup.

What if I am a service-area business with no storefront?

Include the address you are licensed and registered at if you show it publicly. If you do not show an address on the site, leave out streetAddress, keep the town and state, and use areaServed for the places you work.

Do ChatGPT and other answer engines read schema?

Answer engines read your pages, and structured data is part of the page. None of them promise to rank or cite a page because of it. Treat it as a clean, unambiguous statement of your facts, not a ranking trick.

Newsletter

Playbooks. In your inbox.

One short email a week. Real plays we use to ship products, run businesses, and make tech feel human. No fluff, no spam.

Meet us

Tell us the idea.

Coffee, Zoom or a phone call. Sarah reads every one herself and replies inside one business day.

What do you need?
How shall we meet?

Rather pick a time yourself? Choose a time on the calendar.