Tuesday, October 4, 2011
By Jordanna Chord, Software Engineer, Google+ API Team
Cross-posted with the Google+ Platform Blog
Thank you to all of you who tried out our first Google+ API release and let us know how you were using it. And thank you also to those of you who asked for more. In the spirit of releasing early and often, today we’ve released some of the new features that you requested.
Search for it
Last month we launched search in Google+, and now it’s available in the API. You can search for public posts using the new activities.search method by sending the following HTTP request:
This method searches across the body and comments of public posts. It returns the following JSON encoded output (excerpted for brevity):
"title": "Plus Search for cookie recipes",
"title": "You have to try these out.",
"content": "I’m baking halloween cookies!",
"content": "Cookies and milk for dinner. Don’t judge me.",
You can search for people by using the people.search method:
This searches across public profile information including fields such as name, bio, location, tag line, and description.
The rest of the conversation
Our first API release let you retrieve public posts. We’ve now added ways for you to see how people are publicly engaging with those posts -- you can find out who reshared a post or who +1’d a post, and you can read the comments on a post.
The new method people.listByActivity supports retrieving resharers and +1’ers by sending the following HTTP requests:
And comments can be retrieved by the new comments.list and comments.get methods:
Tell us what you think
As an API developer, I love seeing what people build on top of the APIs I’ve worked on. We have been reading your posts on the Discussion Board and issue tracker and I am excited to see more of your creative ideas. We will continue incorporating your feedback into our design discussions, so please keep it coming.
Follow the conversation on Google+.
Jordanna Chord is a Software Engineer on the Google+ API Team
Posted by Scott Knaster, Editor