Integrate TinyURL.ca into your applications with our REST API, CLI, and JavaScript SDK
// Install the SDK
npm install @tinyurl-ca/sdk
// Import and create client
import { TinyURLClient } from '@tinyurl-ca/sdk';
const client = new TinyURLClient({
apiKey: 'your_api_key_here'
});
// Create a short link
const link = await client.createLink({
url: 'https://example.com',
customCode: 'my-link',
title: 'My Website'
});
console.log(link.shortUrl); // https://tinyurl.ca/my-link
console.log(link.id); // Link ID for future operationsCommand-line tool for creating and managing short links from your terminal
Install globally:
npm install -g @tinyurl-ca/cliQuick start:
tinyurl config set apiKey your_keyShorten a URL:
tinyurl shorten https://example.comTypeScript-first SDK for Node.js, browsers, and modern frameworks
Install in your project:
npm install @tinyurl-ca/sdkImport and use:
import { TinyURLClient } from '@tinyurl-ca/sdk';
const client = new TinyURLClient({
apiKey: 'your_key'
});
await client.shorten('https://...');Simple, intuitive APIs that work out of the box. Get started in minutes with comprehensive documentation.
API key authentication, rate limiting, and 99.9% uptime SLA. Your links are always accessible.
Track clicks, analyze traffic, and measure link performance through our API and dashboard.
Global CDN ensures fast redirects worldwide. Low latency API responses for optimal user experience.
Create custom short codes that match your brand. Unlimited customization on PRO plans.
Built by developers, for developers. TypeScript support, detailed errors, and excellent DX.