To get shortened URL we can use the following jQuery URL Shortener plugin which uses Google URL Shortener API: https://github.com/hayageek/jQuery-URL-shortener

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: https://developers.google.com/url-shortener/?csw=1

amit's picture

Anyone interested to learn the algorithm behind the shortening logic can try the following, one of my old open source project: https://shrinkr.codeplex.com/SourceControl/latest#Source/Shrinkr.Core/In...

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.