yourls.networknetwork services: short links
| |
|
services link shortener looking glass (off) whois (off) usage (html) usage (text) operator login network
[ upstream ]
|
[ edge-1 ]-----[ core ]
| |
[ cust-a ] [ lab-r
ASN and peering details: ask the NOC. |
MAINTENANCE: looking glass and whois are temporarily disabled while the border router is replaced. Expected back 14 March 2003. usageyourls.network: a free URL shortener. No sign-up and no API token.
Make a link. The answer is the short link on one line:
https://www.yourls.network/create.php?longurl=https://example.com/a/long/address
From a shell:
curl -G https://www.yourls.network/create.php --data-urlencode 'longurl=https://example.com/page?a=1&b=2'
curl https://www.yourls.network/create.php -d 'longurl=https://example.com/a/long/address'
Pick the short name yourself, 1 to 64 letters, digits, - or _:
https://www.yourls.network/create.php?alias=my-name&longurl=https://example.com/a/long/address
As JSON:
https://www.yourls.network/create.php?format=json&longurl=https://example.com/a/long/address
curl https://www.yourls.network/create.php -H 'Accept: application/json' -d 'longurl=https://example.com/page'
Follow a link, or see where it leads without going there:
https://www.yourls.network/<code> redirects
https://www.yourls.network/<code>+ the address as text
https://www.yourls.network/<code>.json the address and when the link was made
Put longurl last, or percent-encode it: an address written out as it is
runs to the end of the line, with its own ? and & in it.
The same address gives the same short link every time, unless you name
it yourself. A name that is taken answers 409. Links do not expire.
|