Thursday, 15 September 2011

Google+ Developers API

So Google finally decided to make the Google+ API public. Nothing very interesting, it looks like there's no search functionality, neither a stream one

This initial release is focused on public data only.
If you want to give it a try, go to your Google API console and activate the Google+ API.

Then go to "API Access" get your api key and test it:
curl https://www.googleapis.com/plus/v1/people/109813896768294978296?key=[yourKey]

That query returns the json-formatted information for the user.

A more complex example: if you want to see Sergey's last 3 updates :
https://www.googleapis.com/plus/v1/people/109813896768294978296/activities/public?alt=json&maxResults=3&pp=1&fields=id%2Ctitle%2Citems(title%2Cgeocode%2Ckind%2Cobject%2Freplies%2Curl)&key=[yourKey]

For the list of fields and how to query you can take a look at the Activities List or People List

The api is quite simple, you can get People information or activity information and filter them with the &fields parameter

Long story short: useless API, you need the person ID and since you won't get the friends IDs I don't see any practical use right now.

I would love to see v2... soon


3 comments: