租房信息必须用 https://schema.org/residence 或更具体的子类型,且 itemtype 必须严格匹配大小写与协议;address 和 price 为必需嵌套属性,前者需 postaladdress 类型,后者需 content 属性提供数值;image、telephone、availability 等字段须按 schema.org 规范绑定到正确类型和层级,否则富摘要失效。

itemtype该用哪个schema.org URL标记租房信息
必须用 https://schema.org/Residence 或更具体的 https://schema.org/ApartmentComplex、https://schema.org/House,不能写成 Residence、http://schema.org/Residence 或带尾部斜杠的 https://schema.org/Residence/。Google Rich Results Test 在 2026 年已完全拒收非 HTTPS、拼写错误或协议不全的 itemtype。
常见误用:
-
itemtype="Residence"—— 解析器直接跳过整块 -
itemtype="https://schema.org/residence"—— 小写residence不匹配官方定义(大小写敏感) -
itemtype="//schema.org/Residence"—— 协议省略,部分爬虫返回 400 或静默丢弃
租房信息必须嵌套 address 和 price 才能被识别
只标 itemprop="name" 和 itemprop="description" 不够。Google 要求至少包含 address 和 price 两个关键属性,且它们必须按 schema.org 规范正确嵌套和格式化。
正确结构要点:
-
address必须是PostalAddress类型,需新开itemscope:<div itemprop="address" itemscope itemtype="https://schema.org/PostalAddress"> <li> <code>price必须显式提供机器可读数值,用content属性:<div itemprop="price" content="3500">¥3500/月</div> -
postalCode、addressLocality、addressRegion缺一不可,否则地图富摘要失败 -
image:不能用<img itemprop="image">,必须改用<link itemprop="image" href="...">或<meta itemprop="image" content="..."> -
telephone:仅在Person或Organization类型下合法;Residence本身不支持该属性,得挂到房东landlord嵌套对象里 -
availability:必须用 schema.org 定义的枚举值,如"https://schema.org/InStock",不能写中文“有房”或布尔字符串"true" - 所有文本类
itemprop元素内禁止含 HTML 标签或不间断空格(),否则textContent提取失败
图片、联系方式、出租状态怎么标才不被忽略
这些字段看似简单,但微数据提取器对承载元素和属性绑定极其严格:
为什么测试工具显示“结构化数据已发现”却不出富摘要
最常被忽略的是 itemtype 和 itemprop 的层级契约断裂——比如把 landlord 写成独立 div,没用 itemprop="landlord" 绑定到外层 Residence 容器上。
典型断链写法:
<div itemscope itemtype="https://schema.org/Residence"> <h2 itemprop="name">朝阳区两居室</h2> <div itemscope itemtype="https://schema.org/Person"><span itemprop="name">李经理</span></div> </div>
这会导致 landlord 关系丢失。正确写法必须让嵌套 scope 成为父级的 itemprop 值载体:
<div itemscope itemtype="https://schema.org/Residence">
<h2 itemprop="name">朝阳区两居室</h2>
<div itemprop="landlord" itemscope itemtype="https://schema.org/Person">
<span itemprop="name">李经理</span>
</div>
</div>
这种绑定关系一旦缺失,整个实体在 Google 眼里就是“无主房源”,富摘要自然不会触发。











