Skip to contents

A thin wrapper around the pbpstats API’s “get-assist-networks” endpoint.

Usage

get_assist_networks(
  league = "nba",
  season,
  season_type = "Regular Season",
  entity_type,
  entity_id,
  game_id = NULL
)

Arguments

league

Character. Which league to query; e.g., "nba" or "wnba"; defaults to "nba".

season

Character or integer. The season to query; e.g., "2024-25"; required for full-season calls; set to NULL if using game_id.

season_type

Character. One of:

  • "Regular Season"

  • "Playoffs"

  • "PlayIn"

  • "All"

; defaults to "Regular Season".

entity_type

Character. One of:

  • "Team"

  • "Lineup"

.

entity_id

Integer or character. The pbpstats ID of the entity.

game_id

Integer or character. The pbpstats ID of a specific game; if non-NULL, season and season_type are ignored.

Value

A tibble of assist network data as returned by the API.

References

Darryl Blackport (2020). PBPStats API, MIT License. https://api.pbpstats.com/docs