The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Undoing TinyUrl, Goo.gl, Bitly and other URL shorteners: http://expandurl.appspot.com/

Posted by jpluimers on 2012/01/04

Great stuff: http://expandurl.appspot.com/

Especially when a shortened URL breaks, and you want to find out if the underlying URL got moved to a different place.

--jeroen

via: http://stackoverflow.com/questions/6500721/find-where-a-t-co-link-goes-to

Edit 20240829

The above URL stopped working after a few years, so I dug up the history of it:

In turn, Link Expander, after starting:

The expandurl answer was listed until the end of 2016 at [Wayback/Archive] twitter – Find where a t.co link goes to – Stack Overflow

I’ll use this to promote my own AppEngine-powered service, ExpandURL. It has a nice API that will expand among others t.co URLs. :)
For example, given an example URL http://t.co/gLP0Ucg, the relevant API call would be http://expandurl.appspot.com/expand?url=http%3A%2F%2Ft.co%2FgLP0Ucg. Result:
{
    "status": "OK",
    "end_url": "http:\/\/www.notquitewrong.com\/rosscottinc\/2011\/06\/27\/the-system-506-office-forecast\/",
    "redirects": 1,
    "urls": ["http:\/\/t.co\/gLP0Ucg", "http:\/\/www.notquitewrong.com\/rosscottinc\/2011\/06\/27\/the-system-506-office-forecast\/"],
    "start_url": "http:\/\/t.co\/gLP0Ucg"
}

After that, the answer was removed. Still cool though for [Wayback/Archive] Håvard to have created and maintain that service for quite a while.

The Stack Overflow answer got a nice cURL solution which I will blog about in Fixing the goo-gl URL shortener debacle: 36 affected posts.


 

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.