Returns Nothing [] from Google + API using Python

99 Views Asked by At

Hi guys I hope all are doing well I tried with GOOGLE + API using Python to get the Json format data. you can view the code from below

       from apiclient import discovery
       API_KEY = '######'
       GPLUS = discovery.build('plus', 'v1', developerKey=API_KEY)
       #here i used V1 while using v2,v3,v4  i got the follwing errors
        items = 
       GPLUS.activities().search(query='python').execute().get('items', [])
       print(items)
       #returns nothing
       for data in items:
           post = ' '.join(data['title'].strip().split())
               if post:
                   print(TMPL % (data['actor']['displayName'],
                       data['published'], post))
                        #same problem executes nothing

responce

v2,v3,v4
HttpError: <HttpError 500 when requesting 
https://plus.googleapis.com/$discovery/rest?version=v4&key=AIzaSyCgPkdet3KVbJ_Tzd5VgtYeFwWCQwpUVcE returned "Internal Server Error">
1

There are 1 best solutions below

3
Linda Lawton - DaImTo On

Legacy Google+ APIs have been shut down as of March 7, 2019.

Google plus was shut down in April 2019 at the same time or shortly before the Google+ api was also shut down.

This API no longer works this is why you are getting a 500 error.

Google+ API Shutdown