Schema markup for bars & pubs
Pub and bar schema markup, late hours included
Use BarOrPub, with bar hours that run past midnight, the kitchen's own hours as a department, your drinks list and whether you take table bookings. That's what someone choosing where to go tonight needs, and what an assistant needs to send them your way.
The type to use
BarOrPub
BarOrPub covers pubs, cocktail bars and wine bars alike. If most people come for a sit-down meal and the bar is secondary, Restaurant fits better: pick the one you'd put on the sign.
BarOrPub on schema.orgWhat to include
The properties that matter for bars & pubs
Most important first. Fill in what's true for you and leave out the rest; every value must also be on the page.
- openingHoursSpecification
- Late nights cross midnight. Write Friday as one entry that opens at 12:00 and closes at 01:00; a closing time earlier than the opening time runs into the next morning.
- department
- When food stops at 9pm but the bar runs till 1am, a department named after the pub's kitchen, with its own hours and menu, says so. One set of hours can't be right for both.
- hasMenu
- Your drinks list as text: cask ales, wines by the glass, cocktails. Someone searching for a particular mezcal can't find it in a photo of the board.
- acceptsReservations
- Your table booking page if you take bookings for Sunday lunch or big groups; false if it's first come, first served.
- amenityFeature
- Beer garden, live sport on screens, dogs in the bar: each a LocationFeatureSpecification, matching what the page says.
- name
- The pub's name as it appears on the sign outside, without “Free House” or the brewery's name unless guests use them.
- address
- Your full street address and postcode, written the way your other listings write it.
- telephone
- For people ringing to ask if there's a table for eight or whether the match is on. Use the number behind the bar.
Example
Copy, then make it yours
This is the markup for a made-up business. Replace every value with your own before you use it.
- Change every name, address, number and link to your own, and delete lines that don't apply.
- Paste it into your site's header code (website builders call it “code injection” or “custom code”), or let FoodCited add it for you.
- Check it with Google's Rich Results Test or the Schema Markup Validator.
BarOrPub JSON-LD
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BarOrPub",
"name": "The Hare & Lantern",
"url": "https://www.example.com/",
"image": "https://www.example.com/images/front-bar.jpg",
"telephone": "+44 1632 960247",
"address": {
"@type": "PostalAddress",
"streetAddress": "41 Hoe Street",
"addressLocality": "London",
"postalCode": "E17 4SA",
"addressCountry": "GB"
},
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday"
],
"opens": "12:00",
"closes": "23:00"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": [
"Friday",
"Saturday"
],
"opens": "12:00",
"closes": "01:00"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Sunday",
"opens": "12:00",
"closes": "22:30"
}
],
"hasMenu": "https://www.example.com/drinks",
"acceptsReservations": "https://www.example.com/book-a-table",
"amenityFeature": [
{
"@type": "LocationFeatureSpecification",
"name": "Beer garden",
"value": true
},
{
"@type": "LocationFeatureSpecification",
"name": "Live sport on screens",
"value": true
},
{
"@type": "LocationFeatureSpecification",
"name": "Dogs welcome in the bar",
"value": true
}
],
"department": {
"@type": "FoodEstablishment",
"name": "The Hare & Lantern Kitchen",
"servesCuisine": "Pub classics, Sunday roasts",
"hasMenu": "https://www.example.com/food",
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
],
"opens": "12:00",
"closes": "21:00"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Sunday",
"opens": "12:00",
"closes": "18:00"
}
]
}
}
</script>Watch out
Mistakes bars & pubs make with markup
Late closing split across two days
Friday 12:00–23:59 plus Saturday 00:00–01:00 makes it look as though you open at midnight on Saturday. One entry, opening 12:00 and closing 01:00, says it properly.
Kitchen hours standing in for the bar's
If the only hours in your markup are the kitchen's, assistants will tell people you shut at 9. If they're the bar's, they'll promise food at 11pm. Give each its own.
Next month's fixtures stuffed into the homepage
A pile of Event blocks on the homepage, with nothing visible to match, breaks the rule that markup describes its page. Each event belongs on its own page, or on an events page that lists it.
Also worth adding
- Event: For quiz nights, gigs and screenings, each on its own page with date and start time; Event markup can appear in Google's event results.
- Menu: If you want the drinks list itself in markup: a Menu with a MenuSection per kind of drink, on the drinks page.
FAQ
Bars & pubs: markup questions
Type to search these questions, or ask anything about getting found on Google and AI.
We're a pub with rooms. Is BarOrPub still right?
For the pub, yes. Give the rooms their own page with a lodging type such as LodgingBusiness or BedAndBreakfast, whichever matches how you sell them, so each page describes one thing.
We stay open late for big matches. How do we show that?
As special hours: a specialOpeningHoursSpecification entry for that date, matching a line on the page (“Open till 1am on the night of the cup final”). Your regular hours stay as they are.
Is there somewhere in the markup for happy hour?
No; schema.org has no happy hour property. Put the times and prices on your drinks page as text, where people and assistants can read them, and keep them out of your opening hours.
More for bars & pubs
- SEO and AI search for bars and pubsWin “bar near me” and event searches with clear hours, drinks menus, events pages and markup that says what kind of place you are.Read
- Questions your website should answerWhat customers ask Google and AI assistants about bars & pubs, and what a good answer includes.Read
Your next regular is searching right now.
Check your site free, then press Optimize. Back to the kitchen.