Subscribe to Live Analysis Platform Aggregated Statistics

Hudl Statsbomb calculates a set of statistics about each match in real-time split by player and team.

Player stats

Get the player statistics for a specific match. Update the match_id value for a Hudl Statsbomb live match of interest

subscription PlayerStatsQuery {
  live_player_match_aggregated_stat(where: {match_id: {_eq: 117974}}) {
    stat_name
    match_id
    player_id
    team_id
    value
  }
}

A GraphQL subscription is now listening for all player stats in a match with an id of 117974. Every time an update to a stat occurs the response will refresh.

Reveal answer...

Goal Statistics for a Player

subscription GoalsForPlayer {
  live_player_match_aggregated_stat(
      where: {match_id: {_eq: 102855},
              player_id: {_eq: 29724},
              stat_name: {_eq: "goals"}})
  {
    stat_name
    match_id
    player_id
    team_id
    value
  }
}

Reveal answer...

Team stats

Update the match_id value for a Hudl Statsbomb live match of interest.

subscription TeamStatsQuery {
  live_team_match_aggregated_stat(where: {match_id: {_eq: 102855}}) {
    stat_name
    team_id
    match_id
    value
  }
}

A GraphQL subscription is now listening for all team stats in a match with an id of 102855. Every time an update to a stat occurs the response will refresh.

Reveal answer...

Filtering on statistics

The value of statistics can be used to filter the results. For example, to track the total number of goals scored for a team

subscription GoalsPerTeam {
  live_team_match_aggregated_stat(
    where: {match_id: {_eq: 117972},
            stat_name: {_eq: "goals"}})
  {
    stat_name
    team_id
    match_id
    value
  }
}

Reveal answer...

results matching ""

    No results matching ""