views:

142

answers:

5

I want to translate bulk numbers of short url's coming streamed from twitter. Rather than accessing each individual request I want to use API's that accept a list of short or tiny URL's and return the original URL's. Are such API's available?

+3  A: 

Not really an API, but this will give you the URL really fast.

curl -I http://budurl.com/12948234 | grep Location | awk '{print $2}'

gahooa
A: 

Have a look at bit.ly API or budurl.com API

Sani Huttunen
That is the bit.ly API... How is it going to help with all the other short URL services?
gahooa
He specifically asked for APIs'.
Sani Huttunen
+2  A: 

99% of all url openers have an API.

For example, there's a PEAR package (PHP) called Services_ShortURL that supports:

  • bit.ly
  • digg
  • is.gd
  • short.ie
  • tr.im
  • tinyurl.com
Till
A: 

There are a few web-sites around that are dedicated services to converting shortened URLs back to their original.

Two I know of that have APIs are LongURL and Untiny.me. I'm in the middle of writing a java library to use both of these.

Evan
A: 

I had written a small script to turn short urls to it's original links. It's based on the http header returned by the short urls.

vsr