Skip to main content

GET_getByPuuid

await client.GET_getByPuuid(puuid, cluster=None)
Get an account by PUUID (Player Universally Unique Identifier).
ParameterTypeDescription
puuidstrThe player’s PUUID
clusterstr, optionalOverrides the default cluster. Valid values: americas, asia, esports, europe
Returns: AccountDto or dict Raises: InvalidCluster, RiotAPIResponseError

Example

import valaw
import asyncio

async def main():
    client = valaw.Client("YOUR_TOKEN", "americas")
    try:
        account = await client.GET_getByPuuid("player-puuid-here")
        print(f"{account.gameName}#{account.tagLine}")
    finally:
        await client.close()

asyncio.run(main())
The PUUID is a persistent identifier that stays the same even if a player changes their Riot ID.