如何查看Google+上网址的分享数量?

时间:2014-02-28 08:00:57

标签: google-plus

有没有办法检查在Google+上完成了多少个网址?

来自Facebook和Twitter的等价物将是: http://graph.facebook.com/http://stackoverflow.comhttp://urls.api.twitter.com/1/urls/count.json?url=http://stackoverflow.com

Google+上有相应的内容吗?

1 个答案:

答案 0 :(得分:7)

你在找这个吗?

https://plusone.google.com/_/+1/fastbutton?url=http://stackoverflow.com

如果您要搜索文本值,可以在网址的源代码中搜索以下行:

<div id="aggregateCount" class="Oy">{NUMBER_OF_SHARES}</div>

以下JavaScript将从网址中提取共享数量:

parseInt(document.getElementById('aggregateCount').innerHTML.replace('.',''))