you can use Google, it provides a set of SOAP-based web APIs with returned search results in XML. Then, you can transform XML into anything you want with XSLT. With XML, it is also possible to do very precise comparisons
see more at
Develop Your Own Applications Using Google
http://www.google.com/apis/