Developers

Shorten links from anywhere.

One GET request creates a monetised SoftURL or ShortXLinks link. The format matches the popular shortener API, so most existing plugins, bots and scripts work by changing the base URL.

Create a short link

GET/api/v1/shorten

Pass your API token and the destination URL. Returns the new short link as JSON.

https://oxiana.io/api/v1/shorten?api=YOUR_API_TOKEN&url=https://example.com/long/page

Log in as a publisher to see this example with your real token.

Parameters

NameRequiredDescription
apiYesYour API token from Dashboard → API.
urlYesThe destination, URL-encoded. http or https only.
aliasNoCustom code, 3–30 letters, numbers, - or _.
brandNosofturl (default) or shortxlinks.
formatNojson (default) or text — text returns only the short URL.

Responses

{
  "status": "success",
  "shortenedUrl": "https://oxiana.io/aB3xYz",
  "code": "aB3xYz",
  "brand": "softurl"
}
{
  "status": "error",
  "message": "That alias is already taken."
}

Account stats

GET/api/v1/stats

Returns your balance, total views and the last 30 days of earnings by day.

https://oxiana.io/api/v1/stats?api=YOUR_API_TOKEN

Errors

Errors return status: "error" with a readable message. HTTP status is 401 for a bad token, 400 for invalid input and 429 when you exceed 120 requests per minute.