VlrDevApi

events.teams()

Get teams participating in an event with their types

Signature

import vlrdevapi as vlr

result = vlr.events.teams(
    event_id: int,
    timeout: float = 5.0
) -> list[Team]

Parameters

Prop

Type

Return Value

Type: list[Team]

Returns a list of teams participating in the event. Each Team object contains:

Prop

Type

Examples

Get Event Teams

Get teams for an event
import vlrdevapi as vlr

# Get teams for an event
teams = vlr.events.teams(event_id=2682)

print(f"Found {len(teams)} teams:")

for team in teams:
    print(f"ID: {team.id}")
    print(f"Name: {team.name}")
    print(f"Type: {team.type or 'N/A'}")
    print("---")

Find Specific Teams

Find specific teams like 100 Thieves and G2 Esports
import vlrdevapi as vlr

teams = vlr.events.teams(event_id=2682)

# Find 100 Thieves (ID: 120)
team_100_thieves = next((t for t in teams if t.id == 120), None)
if team_100_thieves:
    print(f"100 Thieves: {team_100_thieves.type}")  # Should show "Partner Team"

# Find G2 Esports (ID: 11058)
g2_esports = next((t for t in teams if t.id == 11058), None)
if g2_esports:
    print(f"G2 Esports: {g2_esports.type}")  # Should show "Ascension 2023"

Error Handling

  • Network failures: Returns []
  • Invalid event ID: Returns []
  • No teams found: Returns []