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
| Name | Required | Description |
|---|---|---|
| api | Yes | Your API token from Dashboard → API. |
| url | Yes | The destination, URL-encoded. http or https only. |
| alias | No | Custom code, 3–30 letters, numbers, - or _. |
| brand | No | softurl (default) or shortxlinks. |
| format | No | json (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."
}List your links
GET/api/v1/links
Returns your 100 most recent links with views and earnings (in USD).
https://oxiana.io/api/v1/links?api=YOUR_API_TOKEN
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.