Google plus followers in plain text

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Google plus followers in plain text



How to get google plus followers in plain text? JSON or XML
https://developers.google.com/+/api/latest/people/get doesn't have followers field key.




6 Answers
6



Currently there is no way to get followers (or any circle information) from Google+ through the API.





This is no longer the case, please see the developers.google.com/+/api/latest/people/list method.
– paulmatthews86
Jan 27 '14 at 15:35





@paulmatthews86: That API call can return the people I'm following, not my followers.
– BlaM
Aug 3 '15 at 11:55



You can do using API key, must sure Google plus followers visibility should be public



try on fiddle: https://jsfiddle.net/himstar/j4932w0s/


var profileid = '100520061367519307358';
var apikey = 'AIzaSyAqlZ1MJSGXMSs8q5WbfvLpZTGJeHLVc2w';
var url = 'https://www.googleapis.com/plus/v1/people/' + profileid + '?key=' + apikey;
$.ajax(
type: "GET",
dataType: "json",
url: url,
success: function (data)
var googlefollowcount = data.circledByCount;
$(".googlefollowercount").html(googlefollowcount);

);



Actually there is : http://www.emoticode.net/ruby/get-google-page-followers-count-with-google-api.html


require 'open-uri'
require 'json'

google_api_key = 'put your google api key here'
page_id = '105672627985088123672'

data = open("https://www.googleapis.com/plus/v1/people/#page_id?key=#google_api_key").read
obj = JSON.parse(data)

puts obj['plusOneCount'].to_i



using Ruby.





You have to accept this answer.
– dikirill
Jan 22 '14 at 22:38





Link is break :'(
– CarMoreno
Dec 15 '17 at 15:55



in php:


// get api https://code.google.com/apis/console?hl=en#access
$google_api_key = 'YOUR_API';
$page_id = 'YOUR_PAGE_ID';
$data = @file_get_contents("https://www.googleapis.com/plus/v1/people/$page_id?key=$google_api_key");
$data = json_decode($data, true);
echo $data['plusOneCount'];





Sorry to bring this post back up - Have you got any insite as to whether this still works?
– Zach Ross-Clyne
Nov 7 '14 at 15:40





As far as I can tell that does not return any followers (anymore?).
– BlaM
Aug 3 '15 at 11:59





Just Change echo $data['plusOneCount']; to echo $data['circledByCount'];
– techno
Nov 9 '17 at 20:36


echo $data['plusOneCount'];


echo $data['circledByCount'];



You can retrieve all of your circles using the People.list method, for example:


...
Plus.People.List listPeople = plus.people().list("me", "visible");
listPeople.setMaxResults(5L);

PeopleFeed peopleFeed = listPeople.execute();
List<Person> people = peopleFeed.getItems();
...



Try the example in the APIs Explorer



As of August 2018 the Google+ API endpoint https://www.googleapis.com/plus/v1/people/userId/people/collection is deprecated.


https://www.googleapis.com/plus/v1/people/userId/people/collection



There is a new endpoint for getting all the contacts: https://people.googleapis.com/v1/people/me/connections.
There is a metadata key in the response, and for Google+ contacts it will look somewhat like this:


https://people.googleapis.com/v1/people/me/connections


metadata


"metadata":
"sources": [

"updateTime": "2013-01-13T19:16:50.668Z",
"etag": "...",
"type": "CONTACT",
"id": "..."
,

"etag": "...",
"type": "PROFILE",
"id": "...",
"profileMetadata":
"userTypes": [
"GOOGLE_USER",
"GPLUS_USER"
],
"objectType": "PERSON"


],
"objectType": "PERSON"



Note the "GPLUS_USER" part.


"GPLUS_USER"






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS