Google Search as JSON feed
Did you know that Google has an officially supported JSON feed of search results? Google half-way cancelled their SOAP API a while ago, but they now offer a parametrized URL that returns a JSON data set. Google says this REST approach is useful for “Flash developers, and those developers that have a need to access the AJAX Search API from other Non-Javascript environments.” This may be even simpler to use than the SOAP API. Here’s an example query:
http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=Paris%20Hilton
This URL format can also be adjusted to grab results from video search, book search and so on. While the URL has the word AJAX in the string and this is officially part of the Google AJAX Search API, this has nothing to do with AJAX per se, as the URL can be called from other environments, including the server side. All you need is a JSON library to parse the results (JSON means JavaScript Object Notation, though it also doesn’t require JavaScript). The Yahoo Search API already utilizes a similar approach, though it can return XML as well. The complete documentation of this Search API can be found on the Developer’s Guide of Google AJAX Search API hosted on Google Code
Hi, My name is Akshay Raje. I am a self taught freelance web designer and developer. I love travel and am a great movie buff too. This blog is about my projects and experiments with web technologies.