UltraNet's API

UltraNet is still work in progress, you will notice that due to the lack of API

Basic API

Basic API is exclusive for non-password dependant end points, so anything here can be accessed even without making an account.

Player count

curl https://duviz.xyz/ultranet/api/players

This will return a json with both the amount of registered players and players that are currently in a level.

This is how the request usually looks:

{
  "playerCount": 50,
  "playersOnline": 5
}

Global chat messages

You can get the six last UltraNet messages in a json without much work

curl https://duviz.xyz/ultranet/api/messages

It will return something like this:

[
  {
    "author": "123",
    "authorName": "Player 1",
    "content": "i have a question tho",
    "time": "Sat, 31 Jan 2026 10:11:12 GMT"
  },
  {
    "author": "123",
    "authorName": "Player 1",
    "content": "what language do you use to mod",
    "time": "Sat, 31 Jan 2026 10:11:18 GMT"
  },
  {
    "author": "123",
    "authorName": "Player 2",
    "content": "ultrakill",
    "time": "Sat, 31 Jan 2026 10:11:22 GMT"
  },
  {
    "author": "123",
    "authorName": "SYSTEM",
    "content": "Python for the server",
    "time": "Sat, 31 Jan 2026 10:11:27 GMT"
  },
  {
    "author": "123",
    "authorName": "SYSTEM",
    "content": "Unity C# for the mod itself",
    "time": "Sat, 31 Jan 2026 10:11:36 GMT"
  },
  {
    "author": "123",
    "authorName": "Player 1",
    "content": "aight ty",
    "time": "Sat, 31 Jan 2026 10:11:42 GMT"
  }
]
  

Author is the id of the sender

AuthorName is the name of the player who sent that message

Content is the content the message contains

Time is the timestamp of the message in a string

Post API

This API requires you to include a token with it.

Send message [JSON POST]

https://duviz.xyz/ultranet/api/sendMessage

This lets you send a message, there are two parameters that must be done.

{
  "token" (your account token)
  "content" (message content)
}