Google Blogoscoped

Forum

Google REST Search API  (View post)

Vasudev Ram [PersonRank 0]

Wednesday, April 9, 2008
16 years ago10,439 views


Thanks, interesting news. Lots of people were asking why they stopped the SOAP API ... this new REST API shoud be useful, more so because many languages have JSON support ...

Haochi [PersonRank 10]

16 years ago #

I believe that it's been there for as long as the AJAX API's been around. 99% sure.

Ionut Alex. Chitu [PersonRank 10]

16 years ago #

No, it's very recent. Most likely, it was launched on March 31st.

http://cc.msnscache.com/cache.aspx?q=73005307802081&mkt=en-US&lang=en-US&w=ca698cbc&FORM=CVRE

Haochi [PersonRank 10]

16 years ago #

Ok, maybe that is, but I have always been able to grab the same data using: http://google.com/uds/GwebSearch?callback=result&context=0&rsz=large&q=hello+world&v=1.0

Philipp Lenssen [PersonRank 10]

16 years ago #

It also says "New" in red next to the headline on Google's help page, though of course that by itself is not proof, as Google sometimes writes "new" for very old stuff :)
If you've used a similar approach before perhaps it's just that it's official now?

Sam [PersonRank 3]

16 years ago #

Yahoo's web search will return xml, json or php like nearly all of the web services that Yahoo offers.

Eugenius [PersonRank 1]

16 years ago #

"*I'm not sure how recent this is"

Well, I first saw it on: 2008-04-03 and wrote the following in my blog:

http://eugeni.us/blog/index.php/2008/04/03/finally-we-can-use-restful-apis-from-google/

Seth Finkelstein [PersonRank 10]

16 years ago #

They may have "released" it just now, not sure. But the internals of the Javascript code that's been around for a while have always worked that way. There's been some unsupported third-party wrappers based on reverse-engineering the Javascript libraries.

Seth Finkelstein [PersonRank 10]

16 years ago #

Ah – "In addition, we ask, but do not require, that each request contains a valid API Key"

The request used to *require* an API key.

They're definitely now making public the internals of the Javascript library.

Eugene Villar [PersonRank 5]

16 years ago #

Wow! This certainly makes creating an "outsourced" search feature for your website (assuming that your CMS doesn't have search built-in) much easier with complete control over the looks of the SERPs. :-)

Philipp Lenssen [PersonRank 10]

16 years ago #

Thanks Sam for the note!

Edit:
"though it returns XML"
changed to
"though it can return XML as well"

Stephen Tordoff [PersonRank 10]

16 years ago #

"Here's a PHP5 sample that grabs the Google top 10 results, for instance "

Not sure you have the right link there

J. McNair [PersonRank 10]

16 years ago #

Hmm, can this be used with Google Custom Search Engines? I wonder if they'll add this feature, thus making Eugene Villar's "outsourced" search feature even more useful.

Ionut Alex. Chitu [PersonRank 10]

16 years ago #

Yes, use the cx parameter.

CHRIS [PersonRank 0]

16 years ago #

anyone have any google keys im still using googlephp.

anyone?

Hong Xiaowan [PersonRank 10]

16 years ago #

I did a wordpress plugin, Google Taged Links.

This wordpress plugin based on Google REST Search API, Zuosa Tag Plugin and idea from Google Related Links.

http://hongxiaowan.com/google-taged-links/

http://www.zuosa.com/photo/mms/00/00/39/72514747.jpg

http://www.zuosa.com/photo/mms/00/00/39/80614748.jpg

Haochi [PersonRank 10]

16 years ago #

*Cough*
You know the Google AJAX API does exactly that right?

Hong Xiaowan [PersonRank 10]

16 years ago #

[put at-character here]Haochi

Yes, almost same as Google Ajax API search, use tags auto match. Updated just:

1.add adsense as default, I remembered Philipp said that Google related Links should add adsense. Also iFire said should add this tab as default.

http://www.zuosa.com/photo/mms/00/00/39/40514754.jpg

2.setting the tabs that you’d like to show.

http://www.zuosa.com/photo/mms/00/00/39/70114757.jpg

Hong Xiaowan [PersonRank 10]

16 years ago #

[put at-character here]Haochi

Google Ajax API Search: Search then display. Mixed the adsense, but webmaster can not get the adsense profit? I do not know.

Google Related Links: Match the content of the page, then display at the meantime, webmaster can not get the adsense profit? I do not know.

Google Taged Links: Match the Tags of the wordpress post, display at the meanting, webmaster can get the adsense profit.

Haochi [PersonRank 10]

16 years ago #

I don't think Google would be too happy about it (no you, but whoever's going to use it) unless your plugin force AdSense to be displayed on the bottom of each tabs.

By the way, you mean "Tagged" right (with two g's) – unless we are having a new trend of dropping the one g (as oppose to Digg). :)

Hong Xiaowan [PersonRank 10]

16 years ago #

[put at-character here]Haochi

1.Did this way break the Google's adsense policy? I use JS to display the Google Tagged Links on the client to obey the Google's Search Policy. Google Adsense will not match the content of Google Tagged Links.

2.Thank you, I changed the wrong "taged" to "Tagged".

Hong Xiaowan [PersonRank 10]

16 years ago #

Also, this plugin URL moved to

http://hongxiaowan.com/google-tagged-links/

Will modify screenshot soon.

Thanks @HaoChi

Mark Lucovsky [PersonRank 1]

16 years ago #

Looks like you scooped us on this story :)

http://googleajaxsearchapi.blogspot.com/2008/04/flash-and-server-side-access.html

Henry Greville [PersonRank 0]

16 years ago #

Another benefit of screenscraping the HTML search results is the automatic suggestion and correction of spelling mistakes – the link containing "Did you mean: [terms]?"

Mr. S [PersonRank 0]

16 years ago #

THis will work. But Google will reject the request and show captcha screen after some attempts. so instead, use http://code.google.com/apis/ajaxsearch/documentation/.

Forum home

Advertisement

 
Blog  |  Forum     more >> Archive | Feed | Google's blogs | About
Advertisement

 

This site unofficially covers Google™ and more with some rights reserved. Join our forum!