Download the following URL: https://plusone.google.com/u/0/_/+1/fastbutton?count=true&url=URLENCODED_URI via your favorite automatic method (curl, wget, file_get_contents, etc.)
URLENCODED_URI is a site where you need to know the number +1 for, for example. http://www.google.com
For example, select the URI https://plusone.google.com/u/0/_/%2B1/fastbutton?count=true&url=http://www.google.com/ and find the first detection window.__SSR = {'c': 32414.0 ,'si' . It is preferable to use regexp for this, but I will leave the implementation for you and your chosen programming language.
The floating-point number following "c" is the +1 that the site has. For google.com it is 32.414. Donβt worry that it is a float, it is always an integer in float format, so you can safely convert it to an integer.
source share