GET Presence
https://127.0.0.1:{port}/chat/v4/presences Get a list of online friends and their activity
If the player is playing Valorant, private is a base64-encoded JSON string that contains useful information such as party and in-progress game score.
Headers
-
Authorization: Basic {base64 encoded "riot:{lockfile password}"}
URL Parameters
-
{port}The port can be found from the lockfile (located at
%LocalAppData%\Riot Games\Riot Client\Config\lockfile) when the game is running. The file has the formatname:pid:port:password:protocol
Other Variables
-
lockfile passwordThe password can be found from the lockfile (located at
%LocalAppData%\Riot Games\Riot Client\Config\lockfile) when the game is running. The file has the formatname:pid:port:password:protocol
Response
type PresenceResponse = {
presences: {
actor?: unknown | null;
basic: string;
details?: unknown | null;
game_name: string;
game_tag: string;
location?: unknown | null;
msg?: unknown | null;
name: string;
patchline?: unknown | null;
pid: string;
platform?: unknown | null;
private: string | null;
privateJwt?: unknown | null;
product: "valorant" | "league_of_legends";
/** Player UUID */
puuid: string;
region: string;
resource: string;
state: "mobile" | "dnd" | "away" | "chat";
summary: string;
/** Milliseconds since epoch */
time: number;
}[];
}; {
"presences": [
{
"basic": "impedit",
"game_name": "suadeo",
"game_tag": "repellat",
"name": "Stacy Grady",
"pid": "consequatur",
"product": "valorant",
"puuid": "0B59087E-BEF5-51F4-3eac-4bbd6D621fA7",
"region": "adeptio",
"resource": "accusamus",
"state": "away",
"summary": "cupressus",
"time": "+018782-12-05T17:29:19.503Z"
},
{
"basic": "curvo",
"game_name": "acidus",
"game_tag": "strues",
"name": "Jennie Adams",
"pid": "alter",
"product": "league_of_legends",
"puuid": "Fc5Ec9CF-01De-cB8c-7ad2-f32f1bdd0001",
"region": "conculco",
"resource": "cernuus",
"state": "chat",
"summary": "collum",
"time": "+251936-05-28T06:26:13.265Z"
},
{
"basic": "audax",
"game_name": "uterque",
"game_tag": "allatus",
"name": "Nancy Konopelski",
"pid": "acsi",
"product": "valorant",
"puuid": "d6cfFF9A-cda5-390E-12D7-3D1E8D92fFaE",
"region": "voluptatum",
"resource": "acceptus",
"state": "away",
"summary": "thorax",
"time": "+108863-05-16T16:52:26.131Z"
}
]
}