The Google Ajax API team has a new release that enables you to access AJAX Search APIs from any web application, Flash or the server side. If you know how to make an http request, and how to process a JSON response, you are in business. The other two Google AJAX APIs for feeds and translations were updated for non-AJAX use, as well.
Here's a simple example for web search:
There are some differences between the old SOAP API and the REST one.
- the new API doesn't require a key
- there's no limitation for the number of queries
- it's much easier to use
- you can use the REST API for web search, but also for image search, news search, video search, local search, blog search and book search.
- you need to send "a valid and accurate http referer header".
- you can only get up to 8 results in a single call and you can't go beyond the first 32 results
Check out the relevant documentation for: