Skip to content
All articles

Blog

LocalBusiness schema: how to add it, with a copy-ready example

How to add LocalBusiness schema markup (JSON-LD) to your website: a copy-ready example, which properties matter, multi-location and service-area businesses, mistakes to avoid and how to test it.

Last updated

LocalBusiness schema is a block of JSON-LD code that tells search engines and AI tools your business name, address, phone number, opening hours and location in a form they can read without guessing. Add one block to your homepage or contact page (one per location page if you have several), keep it identical to your Google Business Profile, and test it with Google's Rich Results Test.

What it does, and what it doesn't

The markup helps Google connect your website to your business, can feed details like hours into search features, and gives AI assistants clean facts to quote when someone asks about businesses like yours. It is not a shortcut into the map results: the local pack depends mostly on your Google Business Profile, distance, reviews and how well known you are. Think of schema as removing doubt, not as a ranking boost.

Copy-ready example

Replace every value with your own. Use the most specific type that fits, such as Plumber, Dentist, Restaurant or AutoRepair, instead of plain LocalBusiness.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Plumber",
  "name": "Example Plumbing Co",
  "url": "https://example.com",
  "telephone": "+1-816-555-0123",
  "image": "https://example.com/images/storefront.jpg",
  "priceRange": "$$",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "123 Main Street",
    "addressLocality": "Kansas City",
    "addressRegion": "MO",
    "postalCode": "64105",
    "addressCountry": "US"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 39.09973,
    "longitude": -94.57857
  },
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
      "opens": "08:00",
      "closes": "18:00"
    },
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": "Saturday",
      "opens": "09:00",
      "closes": "13:00"
    }
  ],
  "sameAs": [
    "https://www.facebook.com/exampleplumbing",
    "https://www.yelp.com/biz/example-plumbing-kansas-city"
  ]
}
</script>

Prefer a form? The free schema generator builds a LocalBusiness block from your details in your browser. It writes hours in the shorter openingHours format (like Mo-Fr 08:00-18:00), which schema.org also accepts.

Which properties matter

PropertyWhy
name, addressRequired by Google for local business markup
telephone, urlRecommended; must match your profile and website exactly
openingHoursSpecificationRecommended; lets search and AI tools answer "are they open now?"
geoRecommended; latitude and longitude with at least 5 decimal places
imageRecommended; a real photo of the business or logo
sameAsLinks to your official profiles so your business is recognised as one entity
areaServedFor businesses that travel to customers: list the cities or regions you cover
priceRangeOptional; a short range like $$ or $20-$60

Where to put it

  • One location: the homepage or the contact page. Once is enough; don't repeat it on every page.
  • Several locations: one page per location, each with its own block, address, phone and hours. Don't put several addresses in one block.
  • Service-area business without a public address (a mobile mechanic, a cleaner): mark up what you show customers, and use areaServed for the places you cover. Don't publish a home address you hide on your Business Profile.
  • WordPress: SEO plugins such as Yoast (Local add-on) and Rank Math (Local SEO module) can output it; otherwise paste the script into the page with a header and footer code plugin.

Mistakes that make Google ignore it

  1. Details that don't match. Name, address and phone must match your Google Business Profile and the visible page, word for word. Mismatches are worse than no markup. See NAP consistency.
  2. Star ratings for your own business. Google doesn't show review stars for reviews a business marks up about itself. Leave aggregateRating out unless you know the rules for your case.
  3. Markup for things not on the page. Hours, prices or services that visitors can't see break Google's structured data guidelines.
  4. Broken JSON. A missing comma or quote makes the whole block invalid. Always test after editing.
  5. Two conflicting blocks. A theme and a plugin both adding markup with different details. Keep one source.

How to test it

  1. Paste the page URL into Google's Rich Results Test and check it finds a Local Business item with no errors.
  2. Use the Schema Markup Validator at validator.schema.org to catch property typos the Rich Results Test doesn't report.
  3. After Google recrawls, Search Console lists any structured data problems it finds under Enhancements.

Keep it right over time

Holiday hours, a new phone number or a move are when markup goes stale. Sonnetpilot's audit reads the structured data on every page it crawls and flags LocalBusiness blocks missing required or recommended properties, and its local SEO checks compare your name, address and phone across your site. Pair it with FAQ schema on your service pages, and run the free checker to see what your homepage already has.

Bring your website. We'll show you what to fix first.

Type your website and a free audit of up to 25 pages starts right after you sign up. No credit card required.