Skip to contents

Fetches player props as a flat data frame of paired over/under quotes: one row per bookmaker, player, and market, with line, over_price, under_price, and implied probabilities. This is a ParlayAPI extension endpoint (The Odds API has no flat-props shape).

Usage

pa_props(
  sport,
  markets = NULL,
  bookmakers = NULL,
  player = NULL,
  event_id = NULL,
  odds_format = c("american", "decimal"),
  limit = NULL,
  offset = NULL,
  sandbox = NULL
)

Arguments

sport

A sport key such as "basketball_nba" or a short league name such as "nba", "nfl", "nhl" or "epl". See pa_sports().

markets

Optional prop market keys, e.g. "player_points,player_rebounds".

bookmakers

Optional bookmaker keys to filter to.

player

Optional player name filter (live mode only).

event_id

Optional event id filter (live mode only).

odds_format

"decimal" or "american".

limit, offset

Pagination controls (live mode only).

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 prop quotes.

Examples

# \donttest{
props <- pa_props("basketball_nba", sandbox = TRUE)
head(props[, c("bookmaker", "player_name", "market_key", "line")])
# }