How to programmatically retrieve the total number of Google +1's for a URL

别来无恙 提交于 2019-12-06 02:46:39

问题


Now that Google has officially released their +1 button for websites, I'd like to find a way to retrieve the total number of +1's for a specific URL programmatically.

For example, I'd like to access this value independently of the +1 button for use in tooltips, as shown for RSS subscribers below.

More information on the +1 button: https://code.google.com/apis/+1button/


回答1:


Google+ metrics: Activity by URL gives the sum total of all +1's for a URL, as well as the number of +1's for a specified time frame. It is only accessible via Google Analytics on the webmaster dashboard.

EDIT
Google now has an API for retrieving Google +1's. It is still in early developer preview though. Google+ History API tells you how to sign up for the preview.



来源:https://stackoverflow.com/questions/6207774/how-to-programmatically-retrieve-the-total-number-of-google-1s-for-a-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!