Google REST Search API (View post)Vasudev Ram | Wednesday, April 9, 2008 16 years ago • 10,468 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 | 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 | 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 | 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 | 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 | 16 years ago # |
Yahoo's web search will return xml, json or php like nearly all of the web services that Yahoo offers.
|
Eugenius | 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 | 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 | 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 | 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 | 16 years ago # |
Thanks Sam for the note!
Edit: "though it returns XML" changed to "though it can return XML as well" |
Stephen Tordoff | 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 | 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 | 16 years ago # |
Yes, use the cx parameter. |
CHRIS | 16 years ago # |
anyone have any google keys im still using googlephp.
anyone? |
Hong Xiaowan | 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 | 16 years ago # |
*Cough* You know the Google AJAX API does exactly that right? |
Hong Xiaowan | 16 years ago # |
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 | 16 years ago # |
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 | 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 | 16 years ago # |
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 | 16 years ago # |
Also, this plugin URL moved to
http://hongxiaowan.com/google-tagged-links/
Will modify screenshot soon.
Thanks @HaoChi |
Mark Lucovsky | 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 | 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 | 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/.
|