Webmaster Forums - Website and SEO Help

Search Engines and Marketing => Search Engine Optimization SEO => Topic started by: makoo on July 28, 2020, 05:51:36 AM

Title: How do I write Google structured data for real estate listings?
Post by: makoo on July 28, 2020, 05:51:36 AM
How do I write Google structured data for real estate listings?
Title: Re: How do I write Google structured data for real estate listings?
Post by: goyums on July 28, 2020, 06:08:08 AM
To list it as House:

<script type="application/ld+json">
{ "@context":"Home - schema.org",
"@type":"House", "numberOfRooms": "2 ROM",
"petsAllowed": "YES",
"address":
{
"@type": "PostalAddress",
"addressCountry": "India",
"addressLocality": "Palayam, Trivandrum",
"addressRegion": "Kerala",
"postalCode": "695034"
},
"aggregateRating":
{
"@type": "AggregateRating",
"ratingValue": "5",
"reviewCount": "10"
},
"photo":
{
"@type": "ImageObject",
"url": "image url" },
"description": "property description goes here",
"name": "Property Name",
"url": "url of the property"
} </script>

For Single Family Residence (1BHK):

<script type="application/ld+json">
{
"@context":"http://schema.org",
"@type":"SingleFamilyResidence",
"numberOfRooms": "1 ROM",
"petsAllowed": "YES",
"address": {
"@type": "PostalAddress",
"addressCountry": "India",
"addressLocality": "Palayam,
Trivandrum", "addressRegion": "Kerala",
"postalCode": "695034"
},
"aggregateRating":
{ "@type": "AggregateRating",
"ratingValue": "5",
"reviewCount": "10"
},
"photo":
{ "@type": "ImageObject",
"url": "image url"
},
"description": "property description goes here",
"name": "Property Name",
"url": "url of the property"
}
</script>

For Apartments:

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Apartment",
"address":
{ "@type": "PostalAddress",
"addressCountry":"India",
"addressLocality":"Palayam",
"addressRegion":"Trivandrum, Kerala"
},
"Description":"property description should be here", "image":"https://static.pexels.com/photos/248797/pexels-photo-248797.jpeg",
"name":"Property Name",
"numberOfRooms":"3",
"telephone":"1234567890",
"url":"http://site.com/url"
}
</script>