PB Vision schemas: Stats 2.2.1

Version 2.2.1 (latest) · all versions · changelog

Every field of every schema in this package, on one page. Objects allow no keys beyond those listed unless marked may have other keys. A linked type is defined in its own section. Also available as Markdown and as JSON Schema files.

What changed in 2.2.1

Released 2026-08-19.

  • Documentation: player.team_short_length_rallies_won, player.team_medium_length_rallies_won, and player.team_long_length_rallies_won now state that rallies whose winner could not be determined are excluded from the denominator, and that the field is absent when no rally of that length had a determined winner.
  • session.num_players description no longer refers to ball machines or is_ball_machine.

All changes

Stats

/stats/game

Various stats about the game for advanced players.

Version hashes: functional 2300f72312a682de0d9b0adf853ce5c0, full 3736b57d4598d505f2cfcea45d4d2a7d

  • Contains data about the game overall.

  • players array of Player Stats exactly 4 items items may be null

    Each player's advanced stats over the whole game. If the player's location is unknown, the value for that player will be null.

    Each item: Contains player-specific stats over the whole game.

  • Defines aspects of the session or game being played.

  • version Version (string) matches ^\d+\.\d+\.\d+(-[^\s]+)?$

    a version string matching x.x.x where x represents one or more digits

Game Data

/insights/game_data

Contains data about the game overall.

Version hashes: functional b9df94fa021870b5ce0b09cf7e991fbc, full 713b895293fd2b75a081d26bb525cfdf

  • avg_shots number ≥ 1

    Represents the average number of shots per rally.

  • game_outcome array of one of exactly 2 items

    the result (e.g., points scored) by each team

    Each item: Describes the team's result (score or won/lost, if known)

    One of:

    • we don't know the team's score or whether they won or lost

    • string one of "won", "lost"

      whether the team won or lost (we don't know how points they scored)

    • integer ≥ 0

      how many points the team scored (and by comparing it with the other team's score, we can also determine which team win)')

  • kitchen_rallies integer ≥ 0

    Represents the number of rallies where all players get to the kitchen.

  • longest_rally Longest Rally

    Contains the rally index and number of shots for the longest rally in the game.

    • num_shots integer ≥ 0

      Number of shots in the longest rally.

    • rally_idx integer ≥ 0

      The rally which was the longest (0 is the first rally in the game).

  • min_points enum optional one of 11, 15, 21, 25

    Minimal amount of points needed to win, as in "first to 11".

  • relative_adjustments object optional

    Outputs from the retired relative DUPr adjustment models: how strongly they nudged ratings between the two teams (Stage 2) and between partners on each team (Stage 3). Those two models have been removed and nothing writes this any more; it is present only on documents produced before the neural rating model replaced them.

    • Team-differential correction based on comparative performance of the teams. Each player on the higher-ranked team receives +between_teams/4, while the opponents get -between_teams/4. Positive values indicate the model boosted the predicted winners, negative values indicate a penalty.

    • within_teams array of number exactly 2 items

      Partner-differential corrections. Index 0 is the within-team adjustment applied between players 0 and 1, index 1 is applied between players 2 and 3.

  • scoring enum optional one of "side_out", "rally"

    The scoring system most likely used in the game.

  • team_percentage_to_kitchen array of Percentage (number) exactly 2 items items: range [0, 100]

    Percent of rallies where all players on a team successfully arrived at the kitchen.

    Each item: A percentage value between 0 and 100.

Role Data

/insights/role_data

data about this player in each serving and receiving role

Version hashes: functional 2b7739497e8203053b616ba83726b67b, full 8e0fa0fe3ba260a156994e3c5583f0e4

  • receiving Rally data when Receiving

    data while this player's team was receiving

    • oneself Rally Category Counts

      data while this player's team was receiving and this player was the receiver

    • partner Rally Category Counts

      data while this player's team was receiving and this player's partner was the receiver

  • serving Rally data when Serving

    data while this player's team was serving

    • oneself Rally Category Counts

      data while this player's team was serving and this player was the server

    • partner Rally Category Counts

      data while this player's team was serving and this player's partner was the server

Player Stats

/stats/player

Contains player-specific stats over the whole game.

Version hashes: functional a2ee9be438cb891e85da3665d6ff7f04, full b94e549c799cb645c782cb806ae0f9c3

  • The average quality score of all shots taken by the player.

  • The average percentage of court width coverage assigned to the player during rallies, based on their positioning relative to their partner. It's only relevant in doubles; not included for singles games.

  • Stats about backhands. Omitted if the player did not hit any backhands.

  • ball_directions Ball Directions

    Categorizes ball directions across a player's shots (9 total).

  • dinks Shot Stats optional

    Stats about dink. Omitted if the player did not hit any dink.

  • Stats about drives. Omitted if the player did not hit any drives.

  • drops Shot Stats optional

    Stats about drops. Omitted if the player did not hit any drops.

  • Stats about fifths. Omitted if the player did not hit any fifths.

  • The total number of final shots by the player.

  • Stats about forehands. Omitted if the player did not hit any forehands.

  • Stats about fourths. Omitted if the player did not hit any fourths.

  • The total number of ground strokes by the player.

  • Stats about shots from the kitchen or near the kitchen area. Omitted if the player did not hit any shots from the kitchen or near the kitchen area.

  • kitchen_arrival_percentage Kitchen Arrival Opportunity Stats

    Counts of fair kitchen-arrival opportunities (denominator) and successful arrivals (numerator), broken down by serving/returning roles for the player and their partner.

    • returning object
      • oneself object
        • Number of rallies where the player had a fair opportunity to arrive within a few feet of the kitchen when on the returning team, as the returner (requires at least 3 non-fault shots).

        • Number of rallies where the player successfully arrived within a few feet of the kitchen when on the returning team, as the returner (requires at least 3 non-fault shots).

      • partner object
        • Number of rallies where the player had a fair opportunity to arrive within a few feet of the kitchen when on the returning team, as the partner of the returner (requires at least 3 non-fault shots).

        • Number of rallies where the player successfully arrived within a few feet of the kitchen when on the returning team, as the partner of the returner (requires at least 3 non-fault shots).

    • serving object
      • oneself object
        • Number of rallies where the player had a fair opportunity to arrive within a few feet of the kitchen when on the serving team, as the server (requires at least 4 non-fault shots).

        • Number of rallies where the player successfully arrived within a few feet of the kitchen when on the serving team, as the server (requires at least 4 non-fault shots).

      • partner object
        • Number of rallies where the player had a fair opportunity to arrive within a few feet of the kitchen when on the serving team, as the partner of the server (requires at least 4 non-fault shots).

        • Number of rallies where the player successfully arrived within a few feet of the kitchen when on the serving team, as the partner of the server (requires at least 4 non-fault shots).

  • Stats about shots as the left-side player. Omitted if the player did not hit any shots as the left-side player.

  • lobs Shot Stats optional

    Stats about lobs. Omitted if the player did not hit any lobs.

  • Stats about shots from the mid-court area. Omitted if the player did not hit any shots from the mid-court area.

  • Stats about shots from near the baseline area. Omitted if the player did not hit any shots from near the baseline area.

  • Stats about shots taken near the left sideline. Omitted if the player did not hit any shots taken near the left sideline.

  • Stats about shots taken near the middle line. Omitted if the player did not hit any shots taken near the middle line.

  • Stats about shots taken near the right sideline. Omitted if the player did not hit any shots taken near the right sideline.

  • The percentage of shots that hit the net out of the total attempts.

  • The net impact score is a measure of the player's overall impact on the game's outcome.

  • The percentage of shots hit out of the total attempts.

  • Stats about passing shots. Omitted if the player did not hit any passing shots.

  • Stats about poaches. Omitted if the player did not hit any poaches.

  • Stats about resets. Omitted if the player did not hit any resets.

  • Stats about returns. Omitted if the player did not hit any returns.

  • Stats about shots as the right-side player. Omitted if the player did not hit any shots as the right-side player.

  • data about this player in each serving and receiving role

  • Stats about serves. Omitted if the player did not hit any serves.

  • The total number of shots by the player.

  • Stats about smash shots. Omitted if the player did not hit any smash shots.

  • Stats about speedups. Omitted if the player did not hit any speedups.

  • team integer range [0, 1]

    The team to which the player belongs.

  • The number of 5th shots taken by the player as a percentage of the total 5th shots taken by the team.

  • The number of 4th shots taken by the player as a percentage of the total 4th shots taken by the team. An indicator of 3rd shot targeting.

  • team_kitchen_arrival Team Kitchen Arrival Stats

    Counts of rallies where both teammates had a fair opportunity to arrive at the kitchen (denominator) and both successfully arrived (numerator), broken down by serving/returning roles. Both players on the same team share identical values.

    • returning object
      • Number of rallies where both teammates had a fair opportunity to arrive at the kitchen when on the returning team (requires at least 3 non-fault shots).

      • Number of rallies where both teammates arrived at the kitchen when on the returning team (requires at least 3 non-fault shots and both players having a fair opportunity).

    • serving object
      • Number of rallies where both teammates had a fair opportunity to arrive at the kitchen when on the serving team (requires at least 4 non-fault shots).

      • Number of rallies where both teammates arrived at the kitchen when on the serving team (requires at least 4 non-fault shots and both players having a fair opportunity).

  • The percentage of time when this player was to the left of their partner.

  • Percent of rallies won by this player's team when the rally is 11 or more shots long. Rallies whose winner could not be determined are excluded; absent when no such rally had a determined winner.

  • Percent of rallies won by this player's team when the rally is [6,10] shots long. Rallies whose winner could not be determined are excluded; absent when no such rally had a determined winner.

  • Percent of rallies won by this player's team when the rally is [1,5] shots long. Rallies whose winner could not be determined are excluded; absent when no such rally had a determined winner.

  • The percentage of total team shots taken by the player.

  • The number of 3rd shots taken by the player as a percentage of the total 3rd shots taken by the team.

  • Stats about third shot drives. Omitted if the player did not hit any third shot drives.

  • Stats about third shot drops. Omitted if the player did not hit any third shot drops.

  • Stats about third shot lobs. Omitted if the player did not hit any third shot lobs.

  • Stats about thirds. Omitted if the player did not hit any thirds.

  • The number of feet each player travels between shots in all rallies combined.

  • The total number of volleys by the player.

Shot Stats

/stats/shot

Contains stats about the player's shots.

Version hashes: functional e3c3c45cd3f5d3f651d6d5e0aad74440, full 2a118a9e6cc9c7a824273f2d01e02b68

Count

/types/count · integer ≥ 0

An integer value greater than or equal to 0.

Percentage

/types/percentage · number range [0, 100]

A percentage value between 0 and 100.

Quality Score

/types/quality_score · number range [0, 1]

A measure of quality where 1 is the best score.

Session

/types/session

Defines aspects of the session or game being played.

Version hashes: functional bc2200cd637ec98b8f33e3396ff0f7de, full ac272105692acf5b3bf1dfc6454bf4a2

  • num_players integer range [1, 4]

    The number of players in the session.

  • Index of this session within the play session (starts at 0)

  • session_type enum one of "game", "drill"

    The type of session being played

  • vid string

    Video identifier

Speed

/types/speed · number range [0, 99]

The speed in mph. This accounts the combined velocity in each of the x, y and z dimensions.

Version

/types/version · string matches ^\d+\.\d+\.\d+(-[^\s]+)?$

a version string matching x.x.x where x represents one or more digits