Can I use the AJAX Search API in my non-Web application?

No. The Google AJAX Search API is currently available only for websites.