Skip to main content

Sportradar Atrium — additional Python functions — Dates and seasons

atrium_season_id​

atrium_season_id(website_id: 'int', season: 'int', competition_id: 'Optional[str]' = None, **kwargs: 'Any') -> 'str'

The seasonId of a site's season, from its END year and optionally its competition.

Parameters

ParameterTypeDefaultDescription
website_idintthe site (see SITES: 12 LNB, 14 LNBP, 3 NBL1, 13 El Salvador, 22 Panama, 326 Montenegro).
seasonintthe sdv season END year (2026 = 2025-26 on LNB; the calendar year on the other sites).
competition_idOptional[str]Nonethe competition when the site lists several for that year (see atrium_seasons). Omit it when the year is unique.

Returns

The season's UUID, for the season_id argument of every season-scoped wrapper.

Raises

ExceptionDescription
ValueErrorseason is not an integer, the site is not in SITES, it lists no seasons (236), or the year is shared by several competitions and competition_id is missing.
sportsdataverse.errors.NoDataErrorThe site lists no such season.
AssetFetchErrorThe season list could not be fetched or is not the site's.

Example

from sportsdataverse.basketball.atrium import atrium_season_id
atrium_season_id(14, 2026, competition_id="16be8396-24fb-11ef-9ab7-df6be196e88f")