Guides › LocalBusiness schema: the markup AI assistants read
LocalBusiness schema: the markup AI assistants read
Add LocalBusiness structured data so search engines and AI assistants can identify your business: a copy-paste example and the mistakes to avoid.
The short version
- Structured data states your business facts in a format software reads without guessing.
- Use the most specific type that fits (Plumber, Dentist, LegalService…), not just LocalBusiness.
- Every fact must match your listings exactly.
- Test it with Google's Rich Results Test after adding it.
What it does
Structured data is a small block of JSON-LD in your page that says, in a vocabulary search engines share (schema.org), "this is a business, this is its name, this is where it works and how to contact it". A person reads the same facts on your contact page; this is the version for software.
A copy-paste example
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "HVACBusiness",
"name": "Summit Air Systems",
"url": "https://example.com/",
"telephone": "+1-555-010-0000",
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Main St",
"addressLocality": "Auburn",
"addressRegion": "CA",
"postalCode": "95603",
"addressCountry": "US"
},
"areaServed": ["Auburn", "Grass Valley", "Roseville"],
"openingHours": "Mo-Sa 07:00-19:00",
"sameAs": [
"https://www.facebook.com/your-page",
"https://www.yelp.com/biz/your-listing"
]
}
</script>
Put it in the <head> of your homepage and change every value to your own. sameAs links your listings to your website, which helps engines connect the mentions.
Mistakes to avoid
- Facts that don't match. A different phone number from your Google Business Profile undermines the point.
- Claims you can't back up. Don't add review ratings to your own markup that aren't shown on the page.
- Generic type. Pick the closest specific type from schema.org; "LocalBusiness" is the fallback.
- Never testing it. Run the page through Google's Rich Results Test.
If you use our script, it injects this markup for you from the details you enter. The free check tells you whether your site has it today.