Alternatives to longurl API?

367 Views Asked by At

I am trying to expand shortened urls using javascript (a chrome extension). Currently I am using LongURL API and it takes too much time to respond. Are there anyother alternatives I could use? Any suggestions?

1

There are 1 best solutions below

5
On

Would you like to code this API yourself? It's incredibly simple. Just make a CURL call to the given URL and fetch the Location of the target URL from the headers.

Example:

curl --head http://bit.ly/1RmnUT