Google Desktop HTTP/XML Gateway

If you find the Google Desktop useful, you might be glad to know that you can access results programmatically via an HTTP/XML gateway, documented at the following location:


 There is also a ­COM-­based interface in Windows, located at The XML gateway works on Mac OS X in Google Desktop Mac 1.0.3+. The API is currently unsupported for the Linux version of Google Desktop.

On Windows, you get the query URL from the registry key using this:

HKEY_CURRENT_USER\Software\Google\Google Desktop\API\search_url

The query URL will be of the following form:{SECRETKEY}?q=

You can get XML out by tacking on &format=xml. A sample query is as follows:{SECRETKEY}?q=bach

This query returns the following (excerpted here):

         <results count="447">
               Eventful - Mountain View Events - Mashup Camp IV at Computer History Museum
             Add to Reddit Add to calendar Eventful calendar Add to Calendar: <b>Bach</b>
         in San Francisco metro area Berkeley, California, USA My Events Add to