dot-espn_api: Call the ESPN API

.espn_apiR Documentation

Call the ESPN API

Description

.espn_api() performs a retrying request against the ESPN site or core API and parses the JSON response with the same flattening rules used for NHL API calls.

Usage

.espn_api(path, query = list(), type)

Arguments

path

character path relative to the selected ESPN API host

query

named list of URL query parameters

type

character of 'g' for the site API or 'c' for the core API

Value

parsed JSON object, usually a data.frame or nested list


nhlscraper documentation built on June 29, 2026, 1:06 a.m.