Hej google has an ajax api att http://code.google.com/apis/ajax/playground/
There lots of example for searsh att this site.
If you dont like javascript there's probelby a way to get this with the .net WebClient Class
# Edit : ops from a windows application then
add a reference to System.Net
And write this function
<br />
static string search(string what) {<br />
var x = new WebClient();<br />
var q = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=" + what.Replace(" " , "%20");<br />
var uri = new Uri(q);<br />
var downloaded = x.DownloadString(q);<br />
return downloaded;<br />
}<br />
and you whill get json formated like this
<br />
{"responseData": {"results":[{"GsearchResultClass":"GwebSearch","unescapedUrl":"http://sv.wikipedia.org/wiki/Patrik","url":"http://sv.wikipedia.org/wiki/Patrik","visibleUrl":"sv.wikipedia.org","cacheUrl":"http://www.google.com/search?q\u003dcache:55ZSvMNvIkIJ:sv.wikipedia.org","title":"\u003cb\u003ePatrik\u003c/b\u003e - Wikipedia","titleNoFormatting":"Patrik - Wikipedia","content":"Mansnamnet \u003cb\u003ePatrik\u003c/b\u003e, Patric eller Patrick är av skotskt ursprung och kom till Sverige på 1600-talet med invandrande skotska släkter. \u003cb\u003e...\u003c/b\u003e"},{"GsearchResultClass":"GwebSearch","unescapedUrl":"http://griskindspatrik.wordpress.com/","url":"http://griskindspatrik.wordpress.com/","visibleUrl":"griskindspatrik.wordpress.com","cacheUrl":"http://www.google.com/search?q\u003dcache:pM9u03q_o30J:griskindspatrik.wordpress.com","title":"\u003cb\u003ePatrik\u003c/b\u003e","titleNoFormatting":"Patrik","content":"Absolut inte hemgjort, för det var den för "vispad" (Veronica) och för finfördelad (\u003cb\u003ePatrik\u003c/b\u003e). Nu har jag ju inte tillverkat ankrillettes själv (ÄN, \u003cb\u003e...\u003c/b\u003e"},{"GsearchResultClass":"GwebSearch","unescapedUrl":"http://www.imdb.com/title/tt1067733/","url":"http://www.imdb.com/title/tt1067733/","visibleUrl":"www.imdb.com","cacheUrl":"http://www.google.com/search?q\u003dcache:OQsxMHBWufkJ:www.imdb.com","title":"\u003cb\u003ePatrik\u003c/b\u003e 1,5 (2008)","titleNoFormatting":"Patrik 1,5 (2008)","content":"Directed by Ella Lemhagen. With Gustaf Skarsgård, Torkel Petersson, Thomas Ljungman. A Swedish gay couple adopt what they think is a 15-month-old orphan, \u003cb\u003e...\u003c/b\u003e"},{"GsearchResultClass":"GwebSearch","unescapedUrl":"http://www.patrikschumacher.com/","url":"http://www.patrikschumacher.com/","visibleUrl":"www.patrikschumacher.com","cacheUrl":"http://www.google.com/search?q\u003dcache:8_lL08LaBKIJ:www.patrikschumacher.com","title":"\u003cb\u003ePatrik\u003c/b\u003e Schumacher","titleNoFormatting":"Patrik Schumacher","content":"Published as "Smart Work – \u003cb\u003ePatrik\u003c/b\u003e Schumacher on the growing importance of \u003cb\u003e...\u003c/b\u003e Ralf F. Broekman und Olaf Winkler im Gespräch mit \u003cb\u003ePatrik\u003c/b\u003e Schumacher \u003cb\u003e...\u003c/b\u003e"}],"cursor":{"pages":[{"start":"0","label":1},{"start":"4","label":2},{"start":"8","label":3},{"start":"12","label":4},{"start":"16","label":5},{"start":"20","label":6},{"start":"24","label":7},{"start":"28","label":8}],"estimatedResultCount":"1910000","currentPageIndex":0,"moreResultsUrl":"http:
modified on Tuesday, September 22, 2009 9:06 AM
|