Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

Social Widget

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

like image 439
Evan Wondrasek Avatar asked Nov 04 '22 21:11

Evan Wondrasek


1 Answers

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.

like image 197
Ellie Kesselman Avatar answered Nov 15 '22 12:11

Ellie Kesselman