get_jolpica_content: Get Jolpica Content

View source: R/utils.R

get_jolpica_contentR Documentation

Get Jolpica Content

Description

Gets Jolpica-F1 content and returns the processed json object if no errors are found. This will automatically fall back from https:// to http:// if Jolpica suffers errors, and will automatically retry up to 5 times by each protocol

Note in 2024 this replaced the deprecated Ergast API. Much of the historical data is duplicated in Jolpica

Usage

get_jolpica_content(url)

Arguments

url

the Jolpica URL tail to get from the API (for example, "{season}/circuits.json?limit=40" is called from load_circuits()).

Value

the result of jsonlite::fromJSON called on Jolpica's return content. Further processing is performed by specific functions


f1dataR documentation built on April 3, 2025, 5:59 p.m.