Google Releases Web APIs 144
skunkeh writes "Google have released the first beta of their Web APIs package. Used in conjunction with a free license key this SOAP based web service allows developers to execute up to 1000 automated queries a day, but is currently available for non-commercial use only. The download comes with Java and .NET code examples and includes a WSDL description for use with other SOAP supporting languages." There's also a write up about uses on Userland.
Web API Implementations (Score:5, Informative)
http://www.soapware.org/directory/4/services/googl eApi/implementations [soapware.org]
At the time of posting languages catered for were for AppleScript, Frontier/Radio, Perl, Python and Visual Basic. I've written a basic implementation in PHP which has yet to be added to the list - you can find it here:
http://toys.incutio.com/php/php-google-web-api.htm l [incutio.com]
This is a very cool toy.
Re:Web API Implementations (Score:2, Interesting)
Re:Web API Implementations - Ruby missing (Score:2, Informative)
TCL Implementation (Score:1)
http://gondolin.hist.liv.ac.uk/~cheshire/tclgoogle . tml [liv.ac.uk]
Enjoy!
-- Azaroth
This story refers to (Score:3, Informative)
Unlimited (Score:1)
How many projects can't afford the overhead of a little html parsing but CAN afford to be limited to 1,000 searches/day? I'm sure they'll offer higher limits for a fee, but I think the DIY-html-parsing google "api" is going to keep on working just fine (and for free).
AppleScript for Google API (Score:2, Informative)
has some Applescript for your use
Re:AppleScript for Google API? (Score:1)
-----
Not Found
The requested URL
-----
Did you drop something out of that URL, or did it lose something when it got posted?
Aww, FSCK [cafepress.com]!
Re:AppleScript for Google API? (Score:2)
*shrug*
Re:AppleScript for Google API (Score:4, Informative)
http://radio.weblogs.com/0100012/stories/2002/04/
Re:AppleScript for Google API (Score:1)
Is there a problem with the slashdot script? Spaces seem to appear in the middle of long unbroken lines. Is this an anti-lamer tactic or something?
Re:AppleScript for Google API (Score:1)
It prevents "page-widening" attacks, by breaking up any string that would display in such a way as to force the browser window to be too wide. You'll notice that the extra space is only inserted in the displayed text; the actual link itself is OK.
w00t! (Score:1, Funny)
Re:w00t! (Score:1, Offtopic)
But no searching images or newsgroups... (Score:1)
Maybe some day.
A great corporate move (Score:5, Insightful)
to an Open Source initiative as possible. Remarkable.
Re:A great corporate move (Score:5, Informative)
Re:A great corporate move (Score:5, Insightful)
"of course we do. You think we're doing this out of love? But we don't know what they are just yet, and we want to get things right. So go away, and we'll put out a press release as and when we're ready."
Which is fair enough.
In fact, farther down in the FAQ. (Score:1)
So, yeah, they're definitely interested in it if the developer community is interested in it.
Re:A great corporate move (Score:2, Interesting)
I wonder if Google is already providing some sort of paid service to large corporations. On my website on day I actually got a hit coming from a chap at the Redmond campus of Microsoft, and he was searching via http://www.google.com/microsoft [google.com] : BTW, at the time I'm quite sure that that page actually displayed the Microsoft logo as well.
Re:A great corporate move (Score:2)
Re:A great corporate move (Score:1)
Such as
Linux [google.com]
BSD [google.com]
Uncle Sam [google.com]
And I'm sure there are plenty of others...
Re:A great corporate move (Score:1)
Mac [google.com], of course.
-----
Re:A great corporate move (Score:1)
Re:A great corporate move (Score:1)
Re:A great corporate move (Score:4, Insightful)
Google groups may require a Google account.. (Score:1, Interesting)
Google Web APIs - a tool for software developers to automatically query Google
In the future, your Google account will provide access to all Google programs requiring sign in including: Google Groups, Google AdWords, Google Store, Google in Your Language program...."
Does that mean that accessing the Google Groups is now going to need me to create an account? Hmm..
Re:Google groups may require a Google account.. (Score:2)
Re:Google groups may require a Google account.. (Score:4, Informative)
In the future, your Google account will enable login access to all Google services, including Google Groups posting, Google AdWords, the Google Store, the Google in Your Language program, and more.
(My emphasis)
Notice the difference?
Example of use (Score:5, Informative)
Dave
$ java -cp googleapi.jar com.google.soap.search.GoogleAPIDemo XXmykeyXX search "british empire"
Parameters:
Client key = XXmykeyXX
Directive = search
Args = british empire
Google Search Results:
======================
{
TM = 0.117071
Q = "british empire"
CT = ""
TT = ""
CATs =
{
{SE="", FVN="Top/Regional/Europe/United_Kingdom/Society_a
}
Start Index = 1
End Index = 10
Estimated Total Results Number = 688000
Document Filtering = true
Estimate Correct = false
Rs =
{
[
URL = "http://www.btinternet.com/~britishempire/empire/
Title = "The British Empire"
Snippet = "| Introduction | Articles | Biographies | Timelines
| Discussio
n | Map Room | Armed Forces | Art
Directory Category = {SE="", FVN=""}
Directory Title = ""
Summary = ""
Cached Size = "5k"
Related information present = true
Host Name = ""
],
...
Re:Example of use (Score:1)
Trying to /. google???? (Score:1, Funny)
O'Reilly has some good code and stuff (Score:5, Informative)
http://www.oreillynet.com/cs/weblog/view/wlg/1283 [oreillynet.com]
Google Terms of Service (Score:4, Funny)
No Automated Querying
You may not send automated queries of any sort to Google's system without express permission in advance from Google. Note that "sending automated queries" includes, among other things:
Note that this is not in the Google Api TOS [google.com] wich you must agree to before downloading [google.com] the api. But in the Google Terms of Service [google.com] wich you must agree to before creating a Google account needed to use the Google Api.
Still, it's fun and i'll play with it!
Re:Google Terms of Service (Score:5, Funny)
Your Google Account and license key entitle you to 1,000 automated queries per day.
I happen to have a pair of spare glasses lying around, (+2,75 on each eye) - wanna borrow them?
slashdotted, i think (Score:2, Insightful)
Google is just the juice
Thu, Apr 11, 2002; by Dave Winer.
Good afternoon
A very quick piece today, a story, a question, an answer and a pointer.
The story -- 1995. A new release of Netscape. Can't get through to their servers. This thing is exploding. A mind bomb every minute. Wow. I love this. End of story.
The question: Can it happen again?
The answer..
Yes!
This afternoon Google opened a public SOAP 1.1 interface.
Now, from scripts, we can call Google as if it were a script running locally.
What comes back? Data.
What questions should we ask?
That's where the mind bombs will come from.
In the loop
We've been in the loop with Google, privately, for the last few weeks, so we've had a chance to play with ideas and actually have some.
Yesterday, as a tease, I put a Google Box on Weblogs.Com. Every hour it recalcs, showing the top 10 hits on Google for the term weblog. To my surprise, it changes, it's not constant. And it took me to places I didn't know about. The serendipity of queries that run for a long time. That, imho, is where the juice is in the Google API; and probably many or most of the APIs that are sure to follow; because Google is so popular.
Google hits the ball over the net, then we return the volley. Finally, once again, signs of life. Let's hope we learn from the past -- and keep the spark going -- welcoming competition and learning from it instead of snuffing it out. The intoxication of a new idea every day is too good to not want to be there once again.
Maybe the dark ages are over? I hope so.
Google is just the juice
It's happening in real time. As I write this I'm waiting for the embargo to lift. As soon as that happens, we'll start releasing new parts and samples for Radio and Frontier users that connect to Google's SOAP interface, with simple but geekish instructions for getting started.
Later today Google Boxes will start showing up on Radio weblogs, which you can follow through Weblogs.Com. You'll see SOAP developers, on all platforms, getting to work, creating and publishing the glue that turns the Internet, finally, into a fantastic scripting environment. Google is just the juice we need.
Dave Winer
Staggering Potential (Score:5, Insightful)
Whilst the potential of a regular Google search is large enough, when you consider the Google search modifiers, the potential becomes staggering. Imagine using the following features:
Does anyone happen to know if you can use the other sections of Google (e.g. news, images etc.)?
Is Google the best company ever or what?!
Re:Staggering Potential (Score:2, Funny)
Nope. Microsoft is.
Re:Staggering Potential (Score:2)
Re:Staggering Potential (Score:2, Informative)
From the FAQ:
Can Google APIs be used to access Google Groups? Image search? Directory search?
No. The Google Web APIs service can only be used to search Google's main index of 2 billion Web pages.
--
todays tasks are apparent (Score:1)
I know what I'll be doing when I get to work today. Just my additional 2 cents to this marvelous addition to Google.
Pigeonrank anyone? (Score:1, Funny)
Re:Pigeonrank anyone? (Score:1)
{
public short weight;
public String name;
public void Pigeon(){...}
public void feedPigeon{...}
public gSearchResult searchPigeon{...}
}
Re:Pigeonrank anyone? (Score:4, Funny)
public void Pigeon()
is what makes them crap on your shoulder?
Anyone care to explain... (Score:1, Interesting)
White Hat Research.net [whitehatresearch.net]
Geek Clothes - Including a shirt with the (in)famous Ben Franklin quote! [cafepress.com]
Re:Anyone care to explain... (Score:1)
Re:Anyone care to explain... (Score:5, Informative)
More Advanced Features? (Score:5, Interesting)
I think I speak for most when I ask if you can have your results back in the "interesting" language sets:
why not just use plain http (Score:3, Insightful)
or the like, dispatch them to google port 80, and then parse the results into easily program readable data sets/results? A third party could write this sort of thing easily enough if there was demand for it. I mean, esentially the google search API isn't going to be offering anything not available in the standard forms, is it? Except their spell checker, I believe. [Which you could use via html too, actually, "Did you mean: ______" ]
Re:why not just use plain http (Score:3, Insightful)
Re:why not just use plain http (Score:2)
Re:why not just use plain http (Score:1, Insightful)
What about slashdot? (Score:3, Interesting)
They already do... (Score:3, Interesting)
i've actually used it before with a simple VB app...
email me if you want the code...
Re:They already do... (Score:2)
access to postings (Score:1, Interesting)
NNTP tunneling ? (Score:3, Insightful)
It's not something you have to go to google for, but it'd be nice
Re:NNTP tunneling ? (Score:4, Interesting)
Companies have become happy blocking ports to restrict no-nos: messaging, newsgroups, etc.
I'm wondering how long it will be until we start seeing firewalls that can filter/block SOAP calls for the very reasons you mention. SOAP just forces network admins to move up from ports and protocals to sniffing HTTP requests to keep people from having too much fun.
Enjoy it while it lasts.
Re:NNTP tunneling ? (Score:1)
SOAP clients send their data using M-POST, which mandates the server understand the Interface URI header, and the method-name header.
This should allow network admins to restrict/allow specifically what they desire, and not force them to have to turn off SOAP through a firewall as a whole.
Re:NNTP tunneling ? (Score:1)
-Kevin
Oh yes, porn. (Score:1)
only 10 results per search?? (Score:2, Insightful)
HOWEVER...you only get 10 results per search??
Re:only 10 results per search?? (Score:1)
Perform a search on Google. By default you'll get a list of ten results. The "Next" link shows a parameter called "start" that on the first result is 10, the second 20, and so on. So you can get more than 10 results by using multiple queries. This means the maximum number of results per day is 10,000.
Question (Score:2, Funny)
Re:Since when do we like Google? (Score:1)
We like them Monday, Wednesday, and Friday.
We love them Tuesday, Thursday, and Saturday.
And we alternate Sundays.
Get with the program.
--
---
Re: Re:Since when do we like Google? (Score:2)
Synthesis (Score:5, Insightful)
This morning on
All I did was ask google to search for "mailto" and "@msn.com" and lo and behold, she spit back 111,000 hits - hits that contain what look like legit email addresses IN THE THREE LINE SUMMARIES.
The point is, now that google can be automated, what's to stop spammers from SOAPing their way into Google to do their harvesting? Would there be any point over what they're doing now? It might be cheaper, because you only have to run over the google results not the whole sites and since Google caches pages, you can even grab addresses from the past, somewhat.
IT ALSO DEFEATS SPAMBOT TRAPS.
Doesn't this give spammers whole new avenues to exploit?
Worse, are webmasters going to have to put a halt to Google crawls?
Re:Synthesis (Score:2, Informative)
LOL maybe we should just dismantle the whole internet, as clearly the internet is the channel used by spammers! Oh wait. The internet has many many positive uses. Gee!
</sarcasm>
LOL a 4 for Interesting? Oh come on, this is ignorance, not information.
Horrors! Spammers can use this!
Uh 'scuse me but I can write a 10 line perl script that does the same thing. All I have to do is craft a query to google, and put a bunch of work into parsing out the real content from the HTML that comes back. Kind of a pain, but nothing a few regexp can't handle. This API is nothing new, it's just something handy. I'm seriously thinking I can replace a component of a research project here at our research facility with this. Why reinvent the wheel after all?
Worse, are webmasters going to have to put a halt to Google crawls?
It's called robots.txt. Ever run a web server? All this API does is let you do searches to google. Google is google is always searching. That's what robots.txt is for. You are not going to get crawled by this! This is not a BOT, just a QUERY TOOL.
Re:Synthesis (Score:1)
Regarding the PERL scripting, ten years ago, I actually joked with my friends about sending emails to people with batch/script/program attachments that deleted files with a message that sez "run this c00l program d00dez!" but it didn't occur to me that anyone would actually fall for it and that's what the human-engineering-virus "revolution" (Melissa, ILOVEYOU, et. al.) was all about.
(I've also decided on rereading my comments and yours that I should have gone with my first instinct and posted this under the spambot traps article -- in retrospect, it would have been far more appropriate there. Oh, well I had a 50-50 shot and lost - thanks for keeping me honest!)
Re:Synthesis (Score:2)
That's the problem with systems/applications that think they are smarter than the user and hide things from the user. Not showing file extensions, even the DOS batch file @ECHO OFF is a bad idea.
Re:Synthesis (Score:2)
Example from Python (Score:1)
PyGoogle [diveintomark.org] allows you to access the web API from Python. Download here [diveintomark.org]. Python has no SOAP support in the standard library, but a working SOAP library is included with PyGoogle.
-Mark
Dive Into Python [diveintopython.org] - a free Python book for experienced programmers
Re:Example from Python (Score:1)
tried using the code. The page mentions that I need SOAP.py 0.9.7.1, but the included version is 0.9.7
On trying a google search SOAP.py gives me a traceback
Any suggestions?
Google Stock Exchange (Score:2)
Years ago, The Hollywood Stock Exchange [hsx.com] was a somewhat popular game (maybe it still is, but it doesn't really interest me). The general idea being that you could "Buy shares of your favorite actors, movies, and music artists and watch their values rise or fall based on the success of their careers and personal life."
It would be interesting to see a similar game based on the popularity of queries. It's clear from the Google Zeitgeist [google.com] that certain search terms do gain and lose popularity on a regular basis, and for someone tapped in to mainstream culture, it may not be too hard to predict.
I suppose you could do the same thing with the other info there (Browsers, OSs, Current Events, etc.) but I don't think it would be as interesting. Although... Anime searches might be neat.
Anyhow, just an idea I'd love to see someone run with.
-Tommy
Grammar nits (Score:1)
Google is singular. Even though the term represents an organization of many people, it is just one organization, and so the word is singular. You don't say, "The class have learned the material from lesson 5"; you say, "The class has learned the material from lesson 5."
Trust me on this one. It's not like the word "data" where we monkeyed around and changed the semantics.
So it's not, "Google Release Web APIs," it's "Google Releases Web APIs"; and it's not "Google have released ... ," it's "Google has released ... ." I know, it doesn't matter. That doesn't keep it from bothering me.
Re:Grammar nits (Score:2)
Same's true if you watch enough Britcoms or other British imports (damn do they make good crime dramas!).
My 2 cents...
GTRacer
- Should be returning to England in a year or so...
Re:Grammar nits (Score:2, Informative)
Re:Grammar nits (Score:2)
Didn't know that. Cool. I stand corrected.
Interactive Suck-Rules-O-Meter Now? (Score:2)
Umm ok. (Score:1)
LOL maybe we should just dismantle the whole internet, as clearly the internet is the channel used by spammers! Oh wait. The internet has many many positive uses. Gee!
</sarcasm>
LOL a 4 for Interesting? Oh come on, this is ignorance, not information.
Horrors! Spammers can use this!
Uh 'scuse me but I can write a 10 line perl script that does the same thing. All I have to do is craft a query to google, and put a bunch of work into parsing out the real content from the HTML that comes back. Kind of a pain, but nothing a few regexp can't handle. This API is nothing new, it's just something handy. I'm seriously thinking I can replace a component of a research project here at our research facility with this. Why reinvent the wheel after all?
Worse, are webmasters going to have to put a halt to Google crawls?
Huh? What does this API have to do with being crawled by google? All this API does is let you do searches to google. Google is google is always searching. That's what robots.txt is for. You are not going to get crawled by this! This is not a BOT, just a QUERY TOOL.
Re:Umm ok. (Score:1)
they own spell check results? (Score:2)
The Google Rights include rights to the following:......(3) the search results and spell checking you obtain when you use Google Web APIs.
I never thought I'd read the words "Google Rights" in a legal document, but anyway, how can Google own the rights to "spell checking".. what exactly do they own? The words that come back? The association of misspelled words to spelled words? How could you abuse that??
I must say this is incredibly cool though.. however I would much rather see a generic "Search Engine API" that isn't owned by Google, and can be implemented by anyone.
Re:they own spell check results? (Score:1)
It could well become a defacto standard, as they are the first major search engine to do this, and other search engines will want to at the minimum provide a tool for migrating from Google powered applications to thier own, which of course means that one should be able to write to the google API and then use thier tools to port it to whatever one wants.
Notice how Google avoided use of CORBA (Score:1, Insightful)
Not needed (Score:3, Interesting)
Re:Not needed (Score:3, Informative)
Re:Not needed (Score:1)
For the latter, we have the following scenarios which could be interpreted as being automated:
Re:Not needed (Score:1)
I was going to moderate you down, but decided to just respond to you bluntly instead.
You're a fucking idiot.
-Russ
Re:Not needed (Score:1)
Re:Not needed (Score:2)
Re:Not needed (Score:1)
HTML is great to make pages readable for users.
SOAP is great to get stuff from web in format programs understand.
Yes, it's possible to use HTML parsing and stuff for any site (I'm using such tools in Everything2.com), but they all need atrocitious amount of HTML parsing. Thank God for visual-regexp. =)
However, if E2 would use SOAP, I'd just ask them "Give me IDs of writeups matching title "don't force your gray philosophy on me" and it gives them, and I have them in an @array. Period.
(Praying the security bug in SOAP::Lite will be fixed and Nate will make good use of mod_soap =)
Looking for something similar to this (Score:1)
I am a grad student looking to avoid html scrapping for one of my projects.
Thanks
1000 queries per day? Dumb. (Score:1)
Also, the limit on results per query severely limits the usefulness of this API.
Finally, the requirement for a license key sounds a little Microsoftish to me. Since Google is not Microsoft, this is unlikely to work in their favor.
For these reasons, I suspect that the release of this API may hurt Google more than it helps them.
Re:And you thought Microsoft was spying? (Score:4, Insightful)
Your program must include your license key with each query you submit to the Google Web APIs service.
Re:And you thought Microsoft was spying? (Score:2, Funny)
What I find even more amazing is that you seem to expect this unrestricted acces.
Re:And you thought Microsoft was spying? (Score:1, Flamebait)
> automated application
And why shouldn't they?
Re:And you thought Microsoft was spying? (Score:4, Insightful)
Re:And you thought Microsoft was spying? (Score:1)
You're missing the point - it's not that they keep logs of searches (pretty much any web server anywhere is keeping similar logs) and use those searches to sort their database, it's that your searches are specifically traceable to you via your license key if you search through this API. So don't be searching for anything particularly private, unless of course you trust Google more than the average corporation.
I don't see why the ancestor got modded down as "flamebait" - this is a good point. Apparently it's "flamebait" to say anything good about Microsoft (not that I've tried that one) or bad about Google around here :)
Re:And you thought Microsoft was spying? (Score:1)
Ever thought of forbidding people to remember letters they receive?
Everyone can log http requests to hos or her machine, so do you.Microsoft spying on us is different: They sell programs to you that establish internet connections without your consent, or send additional data along with your requests.
Can you see the difference?
Re:And you thought Microsoft was spying? (Score:2)
Gee, and now Google will log every search from your automated application.
And now you can create your own peer-to-peer google search which eliminates the logging altogether.