Generate LocalBusiness schema
generate_local_business_schemaRead-onlyIdempotent
Turn a local business's facts into schema.org JSON-LD. Chooses the most specific LocalBusiness subtype from business_type (for example "roofing company" becomes RoofingContractor) or takes schema_type as given, writes only properties schema.org defines for that type, formats hours, phone and 24 hour or closed days the way Google documents, then validates the output against the schema.org vocabulary. Returns the JSON-LD, a ready-to-paste script tag, the type chosen with alternatives, and cited notes on anything left out. No network access; nothing is published.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The business website or location page. | |
| logo | No | Logo image URL. | |
| name | Yes | Business name as shown on the storefront, website and Google profile. | |
| No | |||
| hours | No | Regular opening hours. Days not listed read as closed. | |
| images | No | ||
| same_as | No | Official profile URLs that identify the business: Google Business Profile, Facebook, LinkedIn, Yelp, Wikidata. | |
| founders | No | ||
| latitude | No | ||
| menu_url | No | Food businesses only. | |
| services | No | Services offered, written as Offer items. | |
| longitude | No | ||
| open_24_7 | No | True when the business is open 24 hours every day. Overrides hours. | |
| telephone | No | Primary customer phone number. North American numbers are written as +1-AAA-BBB-CCCC. | |
| area_served | No | Places served: plain names, or objects with a type (City, State, AdministrativeArea, Country, Place) and an optional Wikidata or Wikipedia URL in same_as. | |
| description | No | ||
| postal_code | No | ||
| price_range | No | Such as "$$" or "$100-$300". Under 100 characters. | |
| schema_type | No | An exact schema.org LocalBusiness subtype, or up to three, such as "Plumber". Overrides business_type. | |
| business_type | No | Plain words for what the business is, such as "plumber", "dental office" or "coffee shop". | |
| founding_date | No | YYYY-MM-DD. | |
| address_region | No | State, province or region, such as "MT". | |
| serves_cuisine | No | Food businesses only. | |
| street_address | No | ||
| address_country | No | Two-letter ISO country code, such as "US". | |
| address_locality | No | City or town. | |
| payment_accepted | No | ||
| seasonal_closures | No | Closed periods, dates as YYYY-MM-DD. | |
| currencies_accepted | No | ISO 4217 codes such as USD. | |
| hide_street_address | No | True for a service-area business that does not serve customers at its address. | |
| accepts_reservations | No | Food businesses only. |