URL Link Shortener

FREE
By theapiguy
Updated 4 months ago
Advertising
9.1/10
Popularity Score
374ms
Latency
1%
Success Rate

URL Link Shortener API Documentation

API for custom short URLs

View API Details
Basic Endpoints
GETGet a list of domains
GETCreate a new link
GETGet a list of domains

Get a list of domains

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
activeBOOLEAN
OPTIONALFilter branded domains depending on whether they can be used to brand short links or not
limitNUMBER
OPTIONALHow many branded domains to load
lastSTRING
OPTIONALThe id of the last domain you fetched, see Infinite Scrolling section
orderBySTRING
OPTIONALSorting criteria to apply to your branded domains collection among createdAt, updatedAt and fullName.
typeSTRING
OPTIONALFilter branded domains depending on their type (owned by user, user, or service domains like rebrand.ly, service)
orderDirSTRING
OPTIONALSorting direction to apply to your branded short links collection among desc and asc.
Code Snippet
unirest.get("https://url-link-shortener.p.rapidapi.com/v1/domains?limit=100&orderBy=createdAt&orderDir=desc")
.header("X-RapidAPI-Host", "url-link-shortener.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://url-link-shortener.p.rapidapi.com/v1/domains
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://url-link-shortener.p.rapidapi.com/v1/domains?limit=100&orderBy=createdAt&orderDir=desc")
.header("X-RapidAPI-Host", "url-link-shortener.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication