To get shortened URL we can use the following jQuery URL Shortener plugin which uses Google URL Shortener API:

To use the Google URL Shortener API service, we need the API key and we have to enable the Google URL Shortener service as well. (Courtesy limit: 1,000,000 requests/day for non-paid user)

To learn more about Google URL Shortener API, please follow:

amit's picture

Anyone interested to learn the algorithm behind the shortening logic can try the following, one of my old open source project:

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.