XooCode(){

Locksmith

Locksmith is a direct HomeAndConstructionBusiness subtype for locksmiths: lock installation, key cutting, lockout service, automotive keys, safe servicing. Populate areaServed for mobile service areas.

Full example of schema.org/Locksmith json-ld markup

The markup is verified as valid with Rich Results Test from Google.

schema.org/Locksmith
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Locksmith",
  "name": "Dunmore Lock & Key",
  "address": { "@type": "PostalAddress", "streetAddress": "100 Main St", "addressLocality": "Dunmore", "addressRegion": "PA", "postalCode": "18512", "addressCountry": "US" },
  "telephone": "+1-570-555-1041",
  "openingHours": "Mo-Su 00:00-23:59",
  "priceRange": "$$",
  "areaServed": { "@type": "AdministrativeArea", "name": "Lackawanna County, Pennsylvania" },
  "url": "https://xoocode.com/shops/dunmore-lock-key"
}
</script>

Minimal valid version

The smallest markup that still produces a valid Locksmith entity. Use it as the floor. Reach for the advanced example above when you want search engines and AI agents to understand more about your content.

schema.org/Locksmith (minimal)
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Locksmith",
  "name": "Dunmore Lock & Key",
  "address": { "@type": "PostalAddress", "streetAddress": "100 Main St", "addressLocality": "Dunmore", "addressRegion": "PA", "postalCode": "18512", "addressCountry": "US" }
}
</script>

Google rich results this unlocks

Locksmith is a structural type. It does not produce a rich result on its own.

Its value comes from combining it with a primary type whose markup earns a rich result (Article, Product, Event, and so on). Locksmith becomes the trunk that the primary type branches off viamainEntityorbreadcrumb. Include it on every page as the backbone of your markup.

Common Locksmith mistakes

Mistakes that pass validation but silently fail to earn rich results or mislead consumers walking the graph. Avoid these and your markup will be ahead of most sites in the wild.

  1. 01

    Locksmith without 24/7 openingHours when offered

    Wrong
    Locksmith advertised as 24/7 but openingHours 9-5
    Right
    Match openingHours to actual service availability

    Emergency locksmith searches filter by 24/7 availability; mismatched openingHours misses that intent.

About the example data

"Dunmore Lock & Key", a fictional 24-hour locksmith.

Comments

Loading comments...

Leave a comment