Skip to contents

Start with a reproducible example or look up the inputs and return value of a function in the R package reference.

Which price was known at the decision time?

At 14:00:04 an analyst had seen a price of 1.90. A 2.10 update stamped 14:00:03 reached the analyst at 14:00:06. Use the six-message fictional log to find when each price became available. You can run the tutorial in base R or in your browser.

Open the replay tutorial. The tutorial appears in R Weekly, issue 49 of 2026.

Which book offers the better home price?

Two fictional books price the same game. North shows +150 on the home side and −175 on the away side. South shows +145 and −165. North offers the higher home return, while South has the lower excess implied probability across both sides.

Open the editable two-book comparison in webR. Press Run to load the R package and print both measures. Change +145 to +155 and run it again. You can also download the R script to use with the locally installed package.

Try a calculation in a fresh R session

The R-multiverse Community listing and the project’s package repository both distribute the client. The commands below use the project repository and CRAN dependencies. The calculation below runs locally once the package is installed.

install.packages(c("httr2", "jsonlite"), repos = "https://cloud.r-project.org")
install.packages("parlayapiR", repos = "https://jacobiusmakes.github.io/parlayapiR/r",
                 type = "source")

parlayapiR::pa_american_to_decimal(c(-125, 150))
# 1.8  2.5

Check whether two rounded prices really match. The worked example compares American −110 with decimal 1.91 and runs with the same local R helpers.

To explore the shape of a response, use the sports list in sandbox mode. Its synthetic records demonstrate the interface. For a report with two games between the same teams, try choosing the right fixture.

Read an NBA score without a key

The following call returns fictional events. Select one completed event by ID and inspect the team names beside its scores. On a live board, a scheduled game can have an empty score.

games <- parlayapiR::pa_scores("basketball_nba", sandbox = TRUE)
finals <- games[games$completed %in% TRUE, ]
if (nrow(finals)) {
  print(finals[1, c("id", "home_team", "away_team")])
  print(finals$scores[[1]])
}

Look up the score fields and live lookback cost.

Use your own project scope

Choose an event, bookmaker, market, period and outcome. Look up the relevant arguments for game odds, player props or historical odds. Coverage and access depend on the requested scope and account. If you need an account for a private request, get a ParlayAPI key and keep it in your own environment.