Skip to contents

One game's periods with the points each team scored in each, overtime periods included (ids 11+).

Endpoint: GET https://embed-api.eui.connect.sportradar.com/v1/embed/{website_id}/fixture_detail?sub=statistics

home_points / away_points are the points scored IN that period, not the running score. Overtime periods are period_id 11, 12, ... (not 5).

Usage

atrium_fixture_periods(website_id, fixture_id, locale = NULL)

Arguments

website_id

(integer required): Site config id: which league site's widget this is (12 LNB France, 14 LNBP Mexico, 3 NBL1 Australia, 13 El Salvador, 22 Panama, 236 Austria, 326 Montenegro). Not a league id: one site serves several competitions.

fixture_id

(character required): Game UUID (fixture_id in atrium_fixtures()), e.g. "0dc631bd-c34c-11f1-8d16-4d5a21afb79d".

locale

(character optional): Locale of the labels, e.g. "en-EN" or "fr-FR". Omitted = the site's own language. Ids and codes never change.

Value

A hoopR_data tibble, one row per (fixture_id, period_id):

col_nametypedescription
website_idintegerSite config id the body came from (12 LNB, 14 LNBP, 3 NBL1, 13 El Salvador, 22 Panama, 236 Austria, 326 Montenegro), read from the body's links.self.
fixture_idcharacterGame UUID (fixture); the key of every game frame and of the fixture_detail routes.
season_idcharacterSeason UUID of the game.
period_idintegerPeriod number: 1-4 regulation, 11, 12, ... overtimes (not 5).
labelcharacterShort period label in the site's language (Q1, P1), as sent.
is_overtimelogicalTrue for an overtime period.
is_shootoutlogicalTrue for a shootout period.
startedlogicalTrue once the period has started.
endedlogicalTrue once the period has ended.
duration_minutesintegerLength of the period in minutes.
elapsed_minutes_before_periodintegerMinutes of game time played before the period starts (40 for the first overtime).
home_entity_idcharacterTeam UUID of the home team, from the fixture's isHome flag.
away_entity_idcharacterTeam UUID of the away team, from the fixture's isHome flag.
home_pointsintegerPoints the home team scored in this period (not the running score).
away_pointsintegerPoints the away team scored in this period (not the running score).

Details

Source, terms of use, request pacing, seasons, ids, coverage and error classes of this family: see the notes in atrium_fixtures().

 atrium_fixture_periods(website_id = 14, fixture_id = "0dc631bd-c34c-11f1-8d16-4d5a21afb79d")