Schema markup for hostels
Hostel schema markup for dorms, privates and shared facilities
Use the Hostel type and list each room type in containsPlace (a 6-bed mixed dorm, a female-only dorm, a private double) with its beds and how many it sleeps. Add check-in times, the shared facilities and a price range that runs from a dorm bed to your dearest private.
The type to use
Hostel
Hostel is the LodgingBusiness type for rooms let by the bed, with shared facilities. Keep it even if half your rooms are privates; Hotel would hide the dorms most of your guests come for.
Hostel on schema.orgWhat to include
The properties that matter for hostels
Most important first. Fill in what's true for you and leave out the rest; every value must also be on the page.
- containsPlace
- Each room type as a HotelRoom with a BedDetails (six single bunks, say) and an occupancy. This is where dorm sizes, a female-only dorm and private rooms are spelled out.
- priceRange
- From the cheapest dorm bed to the dearest private (“A$38–A$145”), so budget questions get an answer that stays true longer than any one night's price.
- amenityFeature
- The shared facilities backpackers compare: lockers, a guest kitchen, free linen, 24-hour reception. A false value for something people ask about, like a lift, is just as useful.
- numberOfRooms
- Rooms, dorms and privates together. The beds inside them are counted in containsPlace.
- checkinTime
- When beds are ready. Overnight buses and early flights land long before it, so mention luggage storage on the page.
- checkoutTime
- Hostels often set an early checkout to strip beds; give the time from your house rules.
- availableLanguage
- The languages spoken at reception. Guests planning in their second language look for this, and it's a real reason to choose you.
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 HotelCited add it for you.
- Check it with Google's Rich Results Test or the Schema Markup Validator.
Hostel JSON-LD
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Hostel",
"name": "Saltbush Backpackers",
"url": "https://www.example.com/",
"image": "https://www.example.com/images/common-room.jpg",
"telephone": "+61 2 5550 3187",
"address": {
"@type": "PostalAddress",
"streetAddress": "214 Cleveland Street",
"addressLocality": "Surry Hills",
"addressRegion": "NSW",
"postalCode": "2010",
"addressCountry": "AU"
},
"numberOfRooms": 18,
"checkinTime": "14:00:00",
"checkoutTime": "10:00:00",
"priceRange": "A$38–A$145",
"availableLanguage": [
"English",
"Spanish",
"German"
],
"amenityFeature": [
{
"@type": "LocationFeatureSpecification",
"name": "Lockers in every dorm",
"value": true
},
{
"@type": "LocationFeatureSpecification",
"name": "Guest kitchen",
"value": true
},
{
"@type": "LocationFeatureSpecification",
"name": "Free bed linen",
"value": true
},
{
"@type": "LocationFeatureSpecification",
"name": "24-hour reception",
"value": true
},
{
"@type": "LocationFeatureSpecification",
"name": "Lift",
"value": false
}
],
"containsPlace": [
{
"@type": "HotelRoom",
"name": "6-bed mixed dorm",
"bed": {
"@type": "BedDetails",
"numberOfBeds": 6,
"typeOfBed": "Single bunk"
},
"occupancy": {
"@type": "QuantitativeValue",
"value": 6
}
},
{
"@type": "HotelRoom",
"name": "4-bed female-only dorm",
"bed": {
"@type": "BedDetails",
"numberOfBeds": 4,
"typeOfBed": "Single bunk"
},
"occupancy": {
"@type": "QuantitativeValue",
"value": 4
}
},
{
"@type": "HotelRoom",
"name": "Private double, shared bathroom",
"bed": {
"@type": "BedDetails",
"numberOfBeds": 1,
"typeOfBed": "Double"
},
"occupancy": {
"@type": "QuantitativeValue",
"value": 2
}
}
]
}
</script>Watch out
Mistakes hostels make with markup
Beds counted as rooms
120 in numberOfRooms makes a hostel of 18 rooms look like a big hotel. Count rooms there, and let each dorm's BedDetails say how many beds it holds.
One price for a dorm bed and a private
A priceRange of “A$38” tells couples looking for a private room that you don't have one. Give the full span, from the cheapest bed to the dearest room.
Room types left to the booking widget
If a female-only dorm exists only as an option inside the booking engine, neither your page nor your code says you have one. Name it in containsPlace and on the rooms page.
Also worth adding
- Event: For dated activities open to guests, like a Friday pub crawl or a walking tour with a set start time, on your events page.
FAQ
Hostels: markup questions
Type to search these questions, or ask anything about getting found on Google and AI.
Our bed prices change every night. What goes in the markup?
A range in priceRange, and nothing nightly. Live bed prices belong to your booking engine; anything priced in the code has to match the page on the day, which is hard to keep up with.
Do we list every dorm, or every bed?
Every room type. Ten identical 6-bed dorms are one entry whose BedDetails counts the beds; individual beds never get entries of their own.
Should the markup say whether we're a party hostel or a quiet one?
There's no property for atmosphere, so say it in the block's description and on the page in the same words, with the facts behind it: bar hours, quiet hours and any curfew.
Someone is asking AI where to stay tonight.
Check your site free, then press Optimize. Back to your guests.