Content Agents

LocalBusiness Schema Markup: Six Steps, One JSON-LD Block, Free Testing

By Team · December 4, 2026

Category: marketing-how-to

Add LocalBusiness structured data to a single location page in six steps, with a JSON-LD template built from Google's documented properties and a free way to test it.

Key takeaways

  1. The problem Operators with a physical location want LocalBusiness markup but find guides that skip it or bury Google's actual rules.

  2. Core insight Google requires only name and address, asks for the most specific subtype, and has strict formats for hours, phone and coordinates, so most errors come from formatting, not from missing fields.

  3. Practical outcome You can add and test one valid LocalBusiness block on your location page in about an hour, then roll it out by template.

LocalBusiness schema is a block of JSON-LD on your location page that states your business name, address, hours and phone number in a format machines read without guessing. Google's documentation requires only two properties: name and address. Everything else is recommended.

This guide is for owners and operators of a business with a physical location who can paste a snippet into a page template. It assumes you have a page for the location with the same details visible on it. You can skip the idea that markup replaces a well-kept profile of your business elsewhere; it only describes your own page.

Step 1: Pick the most specific business type

Choose the narrowest subtype that fits, such as Restaurant or DaySpa, and fall back to LocalBusiness only when nothing fits. Google's local business documentation says to use the most specific LocalBusiness subtype available. The full tree sits on schema.org/LocalBusiness.

If your business fits two types, use an array of types. Google's documentation notes that additionalType is not supported.

What this means in practice

  • Open schema.org/LocalBusiness and scan the subtype list for your trade.
  • Write the chosen type down as a single value, for example [SUBTYPE].
  • Use an array such as ["Restaurant", "BarOrPub"] only if both are true.
  • Do not invent a type name. An unknown type gives the validator nothing to check.

Step 2: Fill the two required properties completely

Name and address are required. Put the business's real name as shown on the door, and give the address as a PostalAddress with as many fields as you have. Google's documentation says to include as many address properties as possible.

What this means in practice

  • Use streetAddress, addressLocality, addressRegion, postalCode and addressCountry.
  • Match the name to your visible page title or heading, not to a keyword phrase.
  • Give each physical location its own page and its own block.
  • Do not add a service area as a fake street address.

Step 3: Add the recommended properties that you can keep true

Add telephone, URL, hours, coordinates and price range only if you will keep them current. Google lists these as recommended: telephone with country and area code, a working url, geo with at least five decimal places, openingHoursSpecification, and a priceRange under 100 characters.

What this means in practice

  • Write the phone number in full international style, for example [+COUNTRY AREA NUMBER].
  • Copy coordinates from a map with at least five decimal places.
  • Skip aggregateRating and review on your own business. Google restricts them to sites that capture reviews about other local businesses.
  • Leave out any property you cannot maintain. A stale hour is worse than a missing one.

Step 4: Write the hours in the format Google documents

Hours are where most mistakes happen. Times use hh:mm:ss. For a business open all day, set opens to 00:00 and closes to 23:59. For a day it is closed, Google says to set both to 00:00. For hours that run past midnight, use one specification with a closing time after midnight.

Use validFrom and validThrough, written as YYYY-MM-DD, only for seasonal closures. Leave them out for year-round hours.

What this means in practice

  • Write one specification per set of days that share the same hours.
  • Check that the days in the markup match the hours printed on the page.
  • Add a seasonal block only when a closure has a real start and end date.
  • Remove the seasonal block after the date passes.

Step 5: Put the block in the page and keep it identical to the visible text

Paste one script tag into the head or body of the location page. The template below follows the properties above. Replace every item in brackets.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "[SUBTYPE]",
  "name": "[BUSINESS NAME]",
  "url": "[PAGE URL]",
  "telephone": "[+COUNTRY AREA NUMBER]",
  "priceRange": "[$$]",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "[STREET]",
    "addressLocality": "[CITY]",
    "addressRegion": "[REGION]",
    "postalCode": "[POSTAL CODE]",
    "addressCountry": "[COUNTRY CODE]"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": [LATITUDE],
    "longitude": [LONGITUDE]
  },
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
      "opens": "[09:00:00]",
      "closes": "[17:00:00]"
    }
  ]
}
</script>

Google's general policies say not to mark up content that readers cannot see, and that structured data must be a true representation of the page. Read those policies once before you publish.

What this means in practice

  • Print the same address, phone number and hours in plain text on the page.
  • Generate the block from the same fields that print the visible text.
  • Use JSON-LD, which Google recommends over microdata and RDFa.
  • Keep one block per location page. Do not paste every location into one page.

Step 6: Test, inspect, then ask for a recrawl

Run the page through Google's Rich Results Test and fix every critical error. Then deploy a few pages and use the URL Inspection tool to see how Google reads them. Google's documentation also tells you to check that robots.txt, a noindex tag or a login wall is not blocking the pages, and to allow several days after asking for a recrawl.

The Schema Markup Validator checks the vocabulary itself, not only Google's features. Use both.

What this means in practice

  • Fix critical errors first. Non-critical warnings are optional.
  • Test the live URL, not a pasted snippet, so the template output is checked.
  • Submit a sitemap that lists the location pages.
  • Do not expect a change on the day you ask for a recrawl.

What to check every quarter

Treat the block as data that goes stale. Check three things each quarter: phone number, hours and any seasonal block. Confirm the page still validates after every template change. We cannot promise a result in search from this markup. Google's documentation says it can help show details such as a knowledge panel for a matching business, not that it will.

A note on our own platform. Content Agents publishes article and FAQ markup for the brands on it today, but we do not generate LocalBusiness markup, so a location page needs the block above added by hand. For how answer engines read the rest of a page, see what ChatGPT reads on your page.

FAQs about local business schema

Which properties are required?

Google lists name and address as required. Everything else, including hours and phone, is recommended.

Can I use ratings from my own customers?

Google's documentation says aggregateRating and review are for sites that capture reviews about other local businesses. Do not use them for reviews of your own business.

Do I need one block for every location?

Yes. Give each physical location its own page and its own block, with that location's details.

JSON-LD or microdata?

Google recommends JSON-LD, and it is easier to keep apart from your page layout.

How do I know it works?

The Rich Results Test and the Schema Markup Validator tell you whether the markup is valid. Neither tells you whether it will change your results in search.