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": "sonitus",
"game_name": "commemoro",
"game_tag": "coaegresco",
"name": "Derrick Smith",
"pid": "ciminatio",
"product": "valorant",
"puuid": "c886449C-444f-DEF3-D29f-2a2fe7Cf5d9b",
"region": "abduco",
"resource": "adamo",
"state": "dnd",
"summary": "blanditiis",
"time": "+160922-01-25T06:19:27.998Z"
},
{
"basic": "depereo",
"game_name": "aeneus",
"game_tag": "creta",
"name": "Jason Beier",
"pid": "in",
"product": "valorant",
"puuid": "04C3eA5e-4E56-0cfE-cA5D-1583a794C155",
"region": "clibanus",
"resource": "clamo",
"state": "dnd",
"summary": "utrimque",
"time": null
},
{
"basic": "testimonium",
"game_name": "usus",
"game_tag": "volo",
"name": "Adam Raynor IV",
"pid": "voluptas",
"product": "valorant",
"puuid": "fA27D69c-d9A4-9776-5e3a-A9b9eD85eCCA",
"region": "verbera",
"resource": "cras",
"state": "mobile",
"summary": "curo",
"time": "+088274-11-15T08:27:23.818Z"
},
{
"basic": "acidus",
"game_name": "dolore",
"game_tag": "varietas",
"name": "Dr. Jason King",
"pid": "tutis",
"product": "league_of_legends",
"puuid": "Cc19135d-aA56-febF-afEa-206d56FC7eB1",
"region": "videlicet",
"resource": "thymbra",
"state": "mobile",
"summary": "caecus",
"time": "+121063-01-29T16:25:26.301Z"
}
]
}