News for hackers. Stuff that matters.
Re:Google Code Blog: Google URL Shortener gets an API by NathanKP on Monday January 10, 2011 @06:18PM (#2090104)
That's nice. I've been using the following piece of sneaky ghetto code to take advantage of Google Toolbar's URL shortening API:

http://codepaste.net/48qfb7

But now I'll be able to shorten URL's with an official API rather than using a hack. I don't know why Google didn't make a public API from the start.

Re:Google Code Blog: Google URL Shortener gets an API by burgerbrain on Monday January 10, 2011 @06:37PM (#2090152)
Now if only they would start using this. Google Maps' permalinks are absolutely terrible for example...
Re:Google Code Blog: Google URL Shortener gets an API by jedc on Monday January 10, 2011 @07:40PM (#2090337)
1. Go to Google Maps.

2. Click "Labs"

3. Enable "Short URL" lab.

Problem sorted!

Re:Google Code Blog: Google URL Shortener gets an API by schumihan on Monday January 10, 2011 @08:38PM (#2090506)
If I tries to shorten the url of http://google.com several times, goo.gl always give back different result. I just wonder will goo.gl merge theses url together sometime later?

This interesting found implies how goo.gl is designed. They prefer writing directly to avoid duplication check and random seek caused by the check. And they though most of the urls are cold so it is not essential to merge them together to keep the hot cache small.

Or they assume nobody wants to play the system in this way. :-)

Re:Google Code Blog: Google URL Shortener gets an API by slig on Monday January 10, 2011 @09:38PM (#2090629)
They have to do different URLs each time because you get stats for each shortened URL.
Re:Google Code Blog: Google URL Shortener gets an API by antimatter15 on Monday January 10, 2011 @09:27PM (#2090599)
A few apps have been using the exact same API (though it wasn't officially documented until now) for some time now.
Re:Google Code Blog: Google URL Shortener gets an API by frankacter on Tuesday January 11, 2011 @02:06AM (#2091207)
Any insight to whether this would be rolled into a Google Apps for your domain offering?

We're using yourls.org currently for our short domain name and would welcome ($) the opportunity of offloading the traffic to Google's servers.

Re:Google Code Blog: Google URL Shortener gets an API by rdela on Tuesday January 11, 2011 @04:11AM (#2091429)
seen Google Short Links by Google Labs? http://www.google.com/enterprise/marketplace/viewListing?pro...

http://bit.ly/pro/ is also worth a look

Re:Google Code Blog: Google URL Shortener gets an API by frankacter on Thursday January 13, 2011 @01:50AM (#2099086)
Thanks for that.
Re:Google Code Blog: Google URL Shortener gets an API by togasystems on Monday January 10, 2011 @06:04PM (#2090071)
Does it include the QR generator?
Re:Google Code Blog: Google URL Shortener gets an API by RossM on Monday January 10, 2011 @07:04PM (#2090229)
The QR code generator's always been available from the Chart API[1]

[1] http://code.google.com/apis/chart/docs/gallery/qr_codes.html

Re:Google Code Blog: Google URL Shortener gets an API by joshfraser on Monday January 10, 2011 @08:18PM (#2090450)
Thanks Google, but we're already happy with bit.ly. URL shorteners were hot a year ago. Now, not so much.
Re:Google Code Blog: Google URL Shortener gets an API by chrisbroadfoot on Tuesday January 11, 2011 @12:29AM (#2091022)
I guess the mass of people requesting we offer an API for goo.gl says otherwise.