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.
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, the API will return a 403.
{ "sitename": "Cannot shorten an already shortened URL!", "time": "-.--- seconds", "request": "{Original URL}", "result": "Invalid URL!" }

By default, web browsers do NOT send "#" and "?" inputs.

To ensure the API picks up these symbols, please make sure your input replaces:

"#" with "(=!hash)"

"?" with "(=!quest)."