Free API URL

https://u.nu/api.php

Samplest API Usage

https://u.nu/https://example.com/

Sample API Usage

https://u.nu/api.php?action=shorturl&format=simple&url=https://example.com/&keyword=example

Sample Remote API Call

unu-api-sample.php

Unix shell script to shorten URLs with u.nu URL shortener.

wget https://u.nu/unu
chmod +x unu
sudo mv unu /usr/bin

Now you can simply use the following command unu https://example.com/ to shorten URLs from the shell.

You can also use pipes redirection like echo https://example.com/ | unu

Other Tools

Various Examples

unu in Python

unu in Node.js

Premium API Request

If you want to use our Premium API for your project without restrict, please join our Telegram Group @unu_api.

The bookmarklet

Add this to your bookmarks or drag it to your bookmarks bar to quickly access shortening functions.

Shorten

This bookmarklet takes the page URL and title and opens a new tab, where you can fill out a CAPTCHA. If you have selected text before using the bookmarklet, that will be used as the keyword.

Support for bookmarklets on mobile varies. For example, they work on Chrome for Android but you have to add and sync them from your desktop.