Skip to Content
VLRdevAPI

Perfil do Jogador (Player Profile)

Obtenha um perfil consolidado do jogador - reúne dados básicos, equipe atual, principais agentes e pseudônimos em uma única chamada.

player.profile(player_id) retorna um perfil consolidado combinando informações cadastrais, equipe atual e estatísticas dos principais agentes.

Assinatura

player.profile(player_id: int) -> PlayerProfile

Parâmetros

Prop

Type

Retorno - PlayerProfile

Prop

Type

Exemplos

Visão geral completa do perfil

O método profile combina dados cadastrais, equipe atual e principais agentes em uma única consulta simplificada.

import vlrdevapi

profile = vlrdevapi.player.profile(player_id=438)
print(f"{profile.name} ({profile.real_name})")
print(f"País: {profile.country}")
team_name = profile.current_team.name if profile.current_team else "(sem equipe)"
print(f"Equipe: {team_name}")
print("Principais agentes:")
if profile.top_agents:
    for a in profile.top_agents[:3]:
        print(f"  {a.agent}: {a.rating} rating, {a.kd} KD")
else:
    print("  (sem dados de agentes)")

Resumo das redes sociais

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})")

Acesso curried

import vlrdevapi

player = vlrdevapi.player(438)
profile = player.profile()
if profile.top_agents:
    best_agent = max(profile.top_agents, key=lambda a: a.rating or 0)
    print(f"Melhor agente de {profile.name}: {best_agent.agent} ({best_agent.rating} rating)")

Última atualização em

Nesta página