T.LY Node URL Shortener API Package

T.LY Node URL Shortener API Package

We’re excited to introduce the T.LY Node.js URL Shortener API, a simple package to shorten URLs directly from your Node.js applications. This package makes it easy for developers to integrate T.LY’s powerful URL-shortening capabilities with just a few lines of code.

Getting Started

To start using the T.LY Node.js package, install it from npm:

npm install tly-api

Create an account, generate an API key, and then you can shorten a URL with the following code:

const TLY = require('tly-api');
const tly = new TLY('YOUR_API_KEY');

(async () => {
    try {
        const shortUrl = await tly.shorten('https://example.com');
        console.log('Shortened URL:', shortUrl);
    } catch (error) {
        console.error('Error:', error);
    }
})();

Features

  • Fast URL shortening – Quickly shorten any long URL
  • Expand short URLs – Retrieve the original URL from a short link
  • Click tracking – Get insights into your link’s performance
  • Easy integration – Lightweight and simple to use

🔗 GitHub Repository

📦 NPM Package

We hope this package makes URL shortening even easier for Node.js developers. Try it out today and let us know what you think!


Author Tim Leland

Tim Leland

Tim Leland brings over 20 years of software development experience to the table, creating products used by millions around the globe. In 2019, he founded T.LY with a vision to build the world’s shortest URL shortener—and since then, the platform’s popularity has soared. Under Tim’s leadership, T.LY has evolved into a top-tier solution recognized for its reliability and ease of use, now serving millions of satisfied users worldwide.

Ready to improve how you manage links?

T.LY URL Shortener makes long links look cleaner and easier to share! Add your own Custom Domains to personalize your brand. Create Smart Links to customize a URL's destination. Generate QR codes to promote your business.

Sign Up for Free
About T.LY
T.LY is the best link management service to track, brand, and share short URLs and QR codes. Install our free Browser Extension with over 450,000 users from the extension store to automatically shorten links in one easy click! We support Chrome, Firefox, Edge and Opera.