Infinite API
List of available routes:
/ping/
Ping the server.
Response:
/users/
/:user
Get the user with the specified name.
Response:
- name: The name of the user.
- id: The ID of the user.
- group: The group of the user.
- game: The game of the user.
- status: The status of the user.
- streamer: Whether the user is a streamer.
/server/
/games
Get all games.
Response:
- name: The name of the game.
- count: The number of players in the game.
- status: The status of the game.
- maps: The maps in the game.
- maxplayers: The maximum number of players in the game.
- maxplayerspergroups: The maximum number of players per group in the game.
- minplayers: The minimum number of players in the game.
- hasJoinable: Whether the game has joinable slots.
- customprelobby: Whether the game has a custom prelobby.
/players
Get all players.
Response:
- name: The name of the player.
- id: The ID of the player.
- group: The group of the player.
- game: The game of the player.
- status: The status of the player.
- streamer: Whether the player is a streamer.
/games/
/:name
Get the game with the specified name.
Response:
- name: The name of the game.
- count: The number of players in the game.
- status: The status of the game.
- maps: The maps in the game.
- maxplayers: The maximum number of players in the game.
- maxplayerspergroups: The maximum number of players per group in the game.
- minplayers: The minimum number of players in the game.
- hasJoinable: Whether the game has joinable slots.
- customprelobby: Whether the game has a custom prelobby.
/getPlayer/
/discord/:id
Get the player with the specified Discord ID.
Response:
- name: The name of the player.
- id: The ID of the player.
- group: The group of the player.
- game: The game of the player.
- status: The status of the player.
- streamer: Whether the player is a streamer.
/permid/:id
Get the player with the specified permission ID.
Response:
- name: The name of the player.
- id: The ID of the player.
- group: The group of the player.
- game: The game of the player.
- status: The status of the player.
- streamer: Whether the player is a streamer.
/getMyPermId/
/:discord
Get the permission ID of the player with the specified Discord ID.
Response:
- id: The permission ID of the player.