Short URL

get
Get Short URL

https://nyxbot.xyz/api/v1/url
Use a GET request to shorten a URL.
Request
Response
Request
Path Parameters
/shorten/:URL
optional
string
Shortens a URL.
Query Parameters
vanity
optional
string
Create a vanity URL with this query param.
uid
required
string
Adding this will permit the person with this ID to edit a vanity URL (in a future API update)
Response
200: OK
Returns a shortened URL
{ "sitename": "{URL Title}", "time": "{Time taken in seconds.}", "request": "{Original URL}", "result": "{Shortened URL}" }
403: Forbidden
If a URL is already shortened, or a vanity exists, the API will return a 403.
{ "sitename": "Cannot shorten an already shortened URL!", "time": "-.--- seconds", "request": "{Original URL}", "result": "Invalid URL!" }

To make sure the original URL gets through correctly,

please make sure your input replaces:

"#" with "(=!hash)"

"?" with "(=!quest).