Skip to contents

Fetches the sports catalog. Each row has the sport key (which the other request functions take as their sport argument), a display title, a group, and an active flag.

Usage

pa_sports(all = FALSE, sandbox = NULL)

Arguments

all

Logical, include inactive and out-of-season sports. Ignored in sandbox mode.

sandbox

Logical or NULL. TRUE uses the keyless sandbox endpoint, FALSE the live endpoint, NULL (default) defers to the global pa_sandbox() toggle.

Value

A data frame of sports.

Examples

# \donttest{
sports <- pa_sports(sandbox = TRUE)
sports$key
# }