Skip to contents

A thin wrapper around the pbpstats API’s “get-all-season-stats” endpoint.

Usage

get_all_season_stats(league = "nba", entity_type, entity_id)

Arguments

league

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

entity_type

Character. One of:

  • "Player"

  • "Team"

  • "Opponent"

  • "Lineup"

  • "LineupOpponent"

entity_id

Integer or character. The ID of the entity you want.

Value

A data frame (tibble) of season stats as returned by the API.

References

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