Dealing with Google Ajax Search Calls in C#

bigAPI[1]

Updated:  Source Code has been updated and workings.

So I have a project I want to write and it requires me to use the Google and Live search APIs.  Last time I dealt with the Google APIs, they had a SOAP version that hooked very nicely into Visual Studio.  However, I found out they no longer do such a thing and it makes me wonder why they would do that.  You can do their AJAX calls, but that won't work in the context I want.

But fear not, after a quick search, I tracked down Yuvi and this genius has a bit of c# code to get the results from the call.  Yuvi transcoded Davnum Srinivas's Java code which properly dealt with the obfuscated Javascript from the Javascript call.

Now I need a JSON to .Net object serializer which already exists on CodePlex.

Plus I have to say, when I saw this image (it was smaller), I thought it was a guy rocking out on a guitar.  How wrong I was.

Duncan Nov 26, 2008 @ 1:01 PM

# re: Dealing with Google Ajax Search Calls in C#
did you ever get a full working version of the call to Google API from C# ? Would be great if you posted it!

Clint Rutkas Nov 26, 2008 @ 10:33 PM

# re: Dealing with Google Ajax Search Calls in C#
http://www.peacelovecode.com/#LiveandGoogleSearchResults is the source code block,
http://www.peacelovecode.com/code/LiveAndGoogleAjax/2.0.0.0/LiveAndGoogleAjax.zip is the current release

Duncan Nov 27, 2008 @ 6:55 AM

# re: Dealing with Google Ajax Search Calls in C#
Thanks a lot! Any ideas on configuring the webrequest string to allow site specific search? (Or custom search )

Roger Jan 16, 2009 @ 6:50 AM

# re: Dealing with Google Ajax Search Calls in C#
Great...
Will use Google now too in my Web2.0 search site :)
Super...
Its gonna be a full weekend.

Post a Comment

Please add 8 and 2 and type the answer here: