The vocabulary Schema.org doesn’t offer a property for this purpose.
Schema.org defines the type LikeAction
, but this is for representing the action that something has liked (or can like) something. (The type UserLikes
is deprecated, but wouldn’t help anyway.)
You could represent with Schema.org that your article is the object of multiple LikeAction
items (one for each like), but that would be a lot of additional markup/data for articles with many likes.
Example in Microdata:
<!-- user 23 liked article 42 -->
<div itemscope itemtype="http://schema.org/LikeAction">
<link itemprop="agent" href="http://example.com/users/23" />
<link itemprop="object" href="http://example.com/articles/42" />
<link itemprop="actionStatus" href="http://schema.org/CompletedActionStatus" />
</div>
<!-- user 12 liked article 42 -->
<div itemscope itemtype="http://schema.org/LikeAction">
<link itemprop="agent" href="http://example.com/users/12" />
<link itemprop="object" href="http://example.com/articles/42" />
<link itemprop="actionStatus" href="http://schema.org/CompletedActionStatus" />
</div>
<!-- user 5 liked article 42 -->
<div itemscope itemtype="http://schema.org/LikeAction">
<link itemprop="agent" href="http://example.com/users/5" />
<link itemprop="object" href="http://example.com/articles/42" />
<link itemprop="actionStatus" href="http://schema.org/CompletedActionStatus" />
</div>
(You could also add the datetime of the like. If only the count matters, you could omit agent
and actionStatus
.)
But anyway, Google Search doesn’t offer a Rich Snippet that would show the likes count.