Skip to contents

A thin wrapper around the pbpstats API’s “get-games” endpoint (NBA only).

Usage

get_games(season, season_type = "Regular Season")

Arguments

season

Character or integer. The season to query; e.g. "2024-25".

season_type

Character. One of:

  • "Regular Season"

  • "Playoffs"

  • "PlayIn"

  • "All"

; defaults to "Regular Season".

Value

A tibble of games in the specified season as returned by the API.

References

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