Hostel
Hostel is a direct LodgingBusiness subtype for hostels offering cheap accommodation, often in shared dormitories. Use amenityFeature for specifics like shared kitchen, lockers, bike storage.
Full example of schema.org/Hostel json-ld markup
The markup is verified as valid with Rich Results Test from Google.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Hostel",
"name": "Dunmore Backpackers",
"description": "Forty-bed hostel with mixed and female-only dormitories, four private rooms, shared kitchen, and rooftop lounge.",
"address": { "@type": "PostalAddress", "streetAddress": "32 Main St", "addressLocality": "Dunmore", "addressRegion": "PA", "postalCode": "18512", "addressCountry": "US" },
"telephone": "+1-570-555-2311",
"checkinTime": "14:00",
"checkoutTime": "10:00",
"numberOfRooms": 12,
"petsAllowed": false,
"priceRange": "$",
"amenityFeature": [
{ "@type": "LocationFeatureSpecification", "name": "Shared kitchen", "value": true },
{ "@type": "LocationFeatureSpecification", "name": "24-hour reception", "value": true },
{ "@type": "LocationFeatureSpecification", "name": "Bike storage", "value": true }
],
"url": "https://xoocode.com/shops/dunmore-backpackers"
}
</script>Minimal valid version
The smallest markup that still produces a valid Hostel 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.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Hostel",
"name": "Dunmore Backpackers",
"address": { "@type": "PostalAddress", "streetAddress": "32 Main St", "addressLocality": "Dunmore", "addressRegion": "PA", "postalCode": "18512", "addressCountry": "US" }
}
</script>Google rich results this unlocks
Hostel 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). Hostel becomes the trunk that the primary type branches off viamainEntityorbreadcrumb. Include it on every page as the backbone of your markup.
Common Hostel 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.
- 01
Hostel without amenityFeature for dorm specifics
WrongHostel with no amenityFeatureRightPopulate amenityFeature with shared/private-room mix and shared-space detailsHostel travellers filter heavily on amenities; missing features loses narrow matches.
Schema properties in this example
About the example data
"Dunmore Backpackers", a fictional 40-bed hostel with dormitories and a few private rooms.
Comments
Loading comments...