Google's name has become ubiquitous with searching the Internet, and in a continuing effort to provide its users with effective search solutions, Google provides a direct link to its powerful search engine via its API.
The search API can be used to accomplish the same set of tasks Google's search accomplishes via its website. However, by wrapping these functions within your own software, you can provide more advanced and customized solutions. Examples might include simple tasks such as creating custom search result pages that appear identical to your overall website. Or you might consider a more advanced cross-domain search or even a keyword monitor (watching your ranking on important words or phrases). By using the Google API, you are able to leverage the #1 search engine on the planet for your own needs, and to better your user's experience. This chapter's key topics include the following:
Examining a raw request in depth
Presenting a simple search interface
Enhancing a search page
Monitoring search usage
Fudging results to help users find what they need
Monitoring keywords
Multiple domain search