Skip to contents

A thin wrapper around any pbpstats API endpoint.

Usage

pbpstats_api(endpoint, league, params = list())

Arguments

endpoint

Character. One of the endpoint names (e.g., "get-games").

league

Character. League slug (e.g., "nba", "wnba", "gleague").

params

Named list of query parameters (e.g., Season, SeasonType, GameId).

Value

A tibble of the parsed JSON response.

References

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