VLRdevAPI

Player Profile

Fetch a consolidated player profile - combines info, current team, top agents, and aliases in one call.

player.profile(player_id) returns a consolidated player profile combining info, current team, and top agent statistics.

Signature

player.profile(player_id: int) -> PlayerProfile

Parameters

Prop

Type

Returns - PlayerProfile

Prop

Type

Examples

Full profile overview

The profile method is a convenience that combines info, current team, and top agents in a single request.

import vlrdevapi

profile = vlrdevapi.player.profile(player_id=438)
print(f"{profile.name} ({profile.real_name})")
print(f"Country: {profile.country}")
team_name = profile.current_team.name if profile.current_team else "(free agent)"
print(f"Team: {team_name}")
print(f"Top agents:")
for a in profile.top_agents[:3]:
    print(f"  {a.agent}: {a.rating} rating, {a.kd} KD")

Extract just the player's social media handles and URLs.

import vlrdevapi

profile = vlrdevapi.player.profile(player_id=438)
print(f"X: {profile.x_handle} ({profile.x_link})")
print(f"Twitch: {profile.twitch_handle} ({profile.twitch_link})")

Curried access

Use the curried player object to access the profile without passing the player ID each time.

import vlrdevapi

player = vlrdevapi.player(438)
profile = player.profile()
best_agent = max(profile.top_agents, key=lambda a: a.rating or 0)
print(f"{profile.name}'s best agent: {best_agent.agent} ({best_agent.rating} rating)")

Last updated on

On this page