Search⌘ K
AI Features

Shorten URL

Discover how to automate URL shortening with Node.js by integrating the Bitly API. Learn to validate URLs, obtain access tokens, and generate shortened links to streamline social media sharing and track link performance.

Social media is paramount to the success of any company. As a games studio, for example, you would have to market your game and provide links. These links can be long and take up quite a lot of space, which is a problem when you have character limits.

Link shorteners

Bitly and TinyURL services are referred to as link shorteners. They take a long URL and shrink it into a smaller equivalent. Take this URL from my blog as an example:

Long URL

http://smks.co.uk/travel/bali-2017/bali-2017-part-12/

After running it through a service such as Bitly:

Short URL

http://bit.ly/2jklAQb

The benefits are more than just having fewer characters. If you sign up for one of the services, you ...