get_ergast_content: Get Ergast Content

View source: R/utils.R

get_ergast_contentR Documentation

Get Ergast Content

Description

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

[Deprecated]

Note the Ergast Motor Racing Database API will shut down at the end of 2024. This function willbe replaced with a new data-source when one is made available.

Usage

get_ergast_content(url)

Arguments

url

the Ergast 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 Ergast's return content. Further processing is performed by specific functions


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