Using url-shortener with shorten.rest

TypeScript integration

Install
npm install url-shortener
Quick start
import Url_shortener from 'url-shortener';

const client = new Url_shortener({ apiKey: "YOUR_API_KEY" });
Get clicks
curl \
  -H "x-api-key: $API_KEY" \
  https://api.shorten.rest/clicks
Get alias
curl \
  -H "x-api-key: $API_KEY" \
  https://api.shorten.rest/aliases
Get aliases by domain
curl \
  -H "x-api-key: $API_KEY" \
  https://api.shorten.rest/aliases/all
SDK on GitHub 📄 API Docs
SDK
url-shortener
TypeScript
API
shorten.rest
shorten.rest
At a glance
Language TypeScript
Endpoints7
Base URLhttps://api.shorten.rest