Websites, bookings and operations for hotels

Prompt for hotel structured data Your facts, in Google’s format.

Structured data tells Google and other systems your hotel facts in a format they read easily.

The prompt

Copy and fill in

  • Your data“Name, address, phone, website, photos, check-in, check-out, price range and amenities: [ ].”
  • Task“Write JSON-LD with schema.org type Hotel using only these facts.”
  • Limits“Do not add reviews or ratings I did not give you.”
  • Output“Give me only the code, ready to paste in the page head.”
Check it

Free tools

  • Schema Markup Validatorvalidator.schema.org checks the format.
  • Rich Results TestGoogle’s test shows what it can read.
  • Same facts everywhereWebsite, Google profile and booking sites.
Full prompt

Copy and paste it as one block

Write JSON-LD structured data for my hotel using schema.org type Hotel.

Use ONLY these facts:
Name: [ ]
Address: [street, city, postal code, country]
Phone: [ ]
Website: [ ]
Photos (URLs): [ ]
Check-in time: [ ] Check-out time: [ ]
Price range: [e.g. €€]
Amenities: [ ]
Geo coordinates: [latitude, longitude]

Rules: do not add reviews, ratings or awards. Give me only the code inside a <script type="application/ld+json"> tag, ready to paste in the page head.

Before and after

What a weak and a good result look like

Weak result: Code with an aggregateRating of 4.9 that you never gave, or a different phone number from the one on your Google profile.

Good result: Code with your exact name, address, phone, photos, check-in and check-out times and amenities, the same as on your website and Google profile, that passes the validator without errors.

Structured data only helps if it matches what guests see on the page and elsewhere online.

Common mistakes

What goes wrong and the prompt that fixes it

  • Invented ratingsFix: “Remove any rating or review properties.”
  • Facts that do not match the pageFix: compare the code with the visible page and your Google profile.
  • Code pasted on every page with the wrong URLFix: put the Hotel code on the home page, or ask your designer where it belongs.
  • Never checkedFix: run it through validator.schema.org and Google’s Rich Results Test.
Checklist

Before you publish

  • ValidatorNo errors.
  • Name, address, phoneIdentical everywhere.
  • PhotosURLs that open.
  • No ratingsUnless you know the rules.
  • UpdatesChange it when facts change.
Note

Ratings

Since 2019 Google does not show review stars for a business based on reviews on its own website, so do not expect stars from this code.

Gonzalo Baeza
Can I help?

I'm Gonzalo. I ran hotels for ten years, from small properties to remote lodges, and now I build websites for them. Can I help with your hotel or your website? Write to me at gonzalo@hotelcrafted.com. I answer myself, usually within one business day.

FAQ

Questions hoteliers ask us.

What is hotel schema?+

Code that describes your hotel facts in a format search engines read.

Where do I put it?+

In the page code, usually in the head; your designer or CMS can add it.

How do I check it?+

With validator.schema.org and Google’s Rich Results Test.

Will structured data make me rank higher?+

Not by itself; it helps search engines read your facts, but content and reputation matter more.

Can I use a plugin instead?+

Yes, many CMS plugins create it; check the result with the same validators.

Keep reading

More on hotel websites.

Free review

Want me to look at your website? I'll tell you 3 things I'd change.

Free and by email, within one business day. No calls, no pressure.

we read every email

Prefer email? Send your website link to gonzalo@hotelcrafted.com and I'll reply with 3 things I would change. I answer myself, within one business day. No calls, no newsletter.