API

All Players Playtime

Path

http://{SERVERIP}:{PORT}/Prefech_playTime/info
http://localhost:30120/Prefech_playTime/info

Response Structure

FieldTypeDescription
codeintegerResponse code will be 0 on fail and 200 on success
messagestringInfo about the response might include some info.
playersarrayarry with all player objects

Example Response Object

{
    "message": "200: Success",
    "code": 200,
    "players": {
        "steam:123456789123456": {
            "username": "JokeDevil",
            "steam_hex": "steam:123456789123456",
            "playtime": "465",
            "last_leave": "1658273391",
            "last_join": "1658272972"
        }
    }
}

Authentication

HeaderValue
Authenticationtoken SECRET_TOKEN_HERE

Single Player Playtime

Path

http://{SERVERIP}:{PORT}/Prefech_playTime/info/{STEAM_HEX}
http://localhost:30120/Prefech_playTime/info/steam:123456789123456

Response Structure

FieldTypeDescription
codeintegerResponse code will be 0 on fail and 200 on success
messagestringInfo about the response might include some info.
playerarrayarry with the player object

Example Response Object

{
    "message": "200: Success",
    "code": 200,
    "player": {
        "username": "JokeDevil",
        "steam_hex": "steam:123456789123456",
        "playtime": "465",
        "last_leave": "1658273391",
        "last_join": "1658272972"
    }
}

Authentication

HeaderValue
Authenticationtoken SECRET_TOKEN_HERE