Skip to main content

Soccer (all) — OpenLigaDB (api.openligadb.de, community German football)

sportsdataverse.soccer — 11 endpoints.

openligadb_current_group​

Current matchday.

Endpoint URL: GET https://api.openligadb.de/getcurrentgroup/{league_slug}

Valid URL: https://api.openligadb.de/getcurrentgroup/bl1

API ParameterPythonPatternRequiredNullableDescription
league_slugleague_slugYLeague shortcut from /getavailableleagues, e.g. bl1 (Bundesliga).

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
group_nameString
group_order_idString
group_idString

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. OpenLigaDB answered 404 (unknown league, season, matchday or match id -- /getnextmatchbyleagueteam 404s once the season is over).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

openligadb_current_group(league_slug='bl1')

openligadb_goalgetters​

Top scorers.

Endpoint URL: GET https://api.openligadb.de/getgoalgetters/{league_slug}/{season}

Valid URL: https://api.openligadb.de/getgoalgetters/bl1/2025

API ParameterPythonPatternRequiredNullableDescription
league_slugleague_slugYLeague shortcut from /getavailableleagues, e.g. bl1 (Bundesliga).
seasonseasonYSeason start year, e.g. 2025 for 2025/26.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
goal_getter_idString
goal_getter_nameString
goal_countInt64

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. OpenLigaDB answered 404 (unknown league, season, matchday or match id -- /getnextmatchbyleagueteam 404s once the season is over).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

openligadb_goalgetters(league_slug='bl1', season='2025')

openligadb_group_matches​

Matches of one matchday.

Endpoint URL: GET https://api.openligadb.de/getmatchdata/{league_slug}/{season}/{group}

Valid URL: https://api.openligadb.de/getmatchdata/bl1/2025/1

API ParameterPythonPatternRequiredNullableDescription
league_slugleague_slugYLeague shortcut from /getavailableleagues, e.g. bl1 (Bundesliga).
seasonseasonYSeason start year, e.g. 2025 for 2025/26.
groupgroupYMatchday number (groupOrderID from /getavailablegroups), e.g. 1.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
match_idString
match_date_timeString
time_zone_idString
league_idString
league_nameString
league_seasonInt64
league_shortcutString
match_date_time_utcString
last_update_date_timeString
match_is_finishedBoolean
match_resultsString
goalsString
locationString
number_of_viewersString
group_group_nameString
group_group_order_idString
group_group_idString
team1_team_idString
team1_team_nameString
team1_short_nameString
team1_team_icon_urlString
team1_team_group_nameString
team2_team_idString
team2_team_nameString
team2_short_nameString
team2_team_icon_urlString
team2_team_group_nameString

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. OpenLigaDB answered 404 (unknown league, season, matchday or match id -- /getnextmatchbyleagueteam 404s once the season is over).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

openligadb_group_matches(group='1', league_slug='bl1', season='2025')

openligadb_groups​

Matchdays of a league-season.

Endpoint URL: GET https://api.openligadb.de/getavailablegroups/{league_slug}/{season}

Valid URL: https://api.openligadb.de/getavailablegroups/bl1/2025

API ParameterPythonPatternRequiredNullableDescription
league_slugleague_slugYLeague shortcut from /getavailableleagues, e.g. bl1 (Bundesliga).
seasonseasonYSeason start year, e.g. 2025 for 2025/26.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
group_nameString
group_order_idString
group_idString

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. OpenLigaDB answered 404 (unknown league, season, matchday or match id -- /getnextmatchbyleagueteam 404s once the season is over).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

openligadb_groups(league_slug='bl1', season='2025')

openligadb_last_change_date​

Last change timestamp (bare ISO string).

Endpoint URL: GET https://api.openligadb.de/getlastchangedate/{league_slug}/{season}/{group}

Valid URL: https://api.openligadb.de/getlastchangedate/bl1/2025/1

API ParameterPythonPatternRequiredNullableDescription
league_slugleague_slugYLeague shortcut from /getavailableleagues, e.g. bl1 (Bundesliga).
seasonseasonYSeason start year, e.g. 2025 for 2025/26.
groupgroupYMatchday number (groupOrderID from /getavailablegroups), e.g. 1.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
valueString

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. OpenLigaDB answered 404 (unknown league, season, matchday or match id -- /getnextmatchbyleagueteam 404s once the season is over).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

openligadb_last_change_date(group='1', league_slug='bl1', season='2025')

openligadb_leagues​

All leagues (shortcut, season, sport).

Endpoint URL: GET https://api.openligadb.de/getavailableleagues

Valid URL: https://api.openligadb.de/getavailableleagues

API ParameterPythonPatternRequiredNullableDescription

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
league_idString
league_nameString
league_shortcutString
league_seasonString
sport_sport_idStringYahoo identifier of the sport the league belongs to.
sport_sport_nameString

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. OpenLigaDB answered 404 (unknown league, season, matchday or match id -- /getnextmatchbyleagueteam 404s once the season is over).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

openligadb_leagues()

openligadb_match​

One match.

Endpoint URL: GET https://api.openligadb.de/getmatchdata/{match_id}

Valid URL: https://api.openligadb.de/getmatchdata/77264

API ParameterPythonPatternRequiredNullableDescription
match_idmatch_idYMatch id (matchID from any getmatchdata list), e.g. 77264.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
match_idString
match_date_timeString
time_zone_idString
league_idString
league_nameString
league_seasonInt64
league_shortcutString
match_date_time_utcString
last_update_date_timeString
match_is_finishedBoolean
match_resultsString
goalsString
locationString
number_of_viewersString
group_group_nameString
group_group_order_idString
group_group_idString
team1_team_idString
team1_team_nameString
team1_short_nameString
team1_team_icon_urlString
team1_team_group_nameString
team2_team_idString
team2_team_nameString
team2_short_nameString
team2_team_icon_urlString
team2_team_group_nameString

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. OpenLigaDB answered 404 (unknown league, season, matchday or match id -- /getnextmatchbyleagueteam 404s once the season is over).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

openligadb_match(match_id='77264')

openligadb_next_match​

Next match of a team (404 text once the season is over).

Endpoint URL: GET https://api.openligadb.de/getnextmatchbyleagueteam/{league_id}/{team_id}

Valid URL: https://api.openligadb.de/getnextmatchbyleagueteam/4937/40

API ParameterPythonPatternRequiredNullableDescription
league_idleague_idYNumeric leagueId from /getavailableleagues of a season still in progress, e.g. 4937 (bl1 2026); a finished season answers 404 text.
team_idteam_idYTeam id (teamId from /getavailableteams), e.g. 40 (FC Bayern München).

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
match_idString
match_date_timeString
time_zone_idString
league_idString
league_nameString
league_seasonInt64
league_shortcutString
match_date_time_utcString
last_update_date_timeString
match_is_finishedBoolean
match_resultsString
goalsString
locationString
number_of_viewersString
group_group_nameString
group_group_order_idString
group_group_idString
team1_team_idString
team1_team_nameString
team1_short_nameString
team1_team_icon_urlString
team1_team_group_nameString
team2_team_idString
team2_team_nameString
team2_short_nameString
team2_team_icon_urlString
team2_team_group_nameString

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. OpenLigaDB answered 404 (unknown league, season, matchday or match id -- /getnextmatchbyleagueteam 404s once the season is over).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

openligadb_next_match(league_id='4937', team_id='40')

openligadb_season_matches​

All matches of a season.

Endpoint URL: GET https://api.openligadb.de/getmatchdata/{league_slug}/{season}

Valid URL: https://api.openligadb.de/getmatchdata/bl1/2025

API ParameterPythonPatternRequiredNullableDescription
league_slugleague_slugYLeague shortcut from /getavailableleagues, e.g. bl1 (Bundesliga).
seasonseasonYSeason start year, e.g. 2025 for 2025/26.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
match_idString
match_date_timeString
time_zone_idString
league_idString
league_nameString
league_seasonInt64
league_shortcutString
match_date_time_utcString
last_update_date_timeString
match_is_finishedBoolean
match_resultsString
goalsString
locationString
number_of_viewersString
group_group_nameString
group_group_order_idString
group_group_idString
team1_team_idString
team1_team_nameString
team1_short_nameString
team1_team_icon_urlString
team1_team_group_nameString
team2_team_idString
team2_team_nameString
team2_short_nameString
team2_team_icon_urlString
team2_team_group_nameString

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. OpenLigaDB answered 404 (unknown league, season, matchday or match id -- /getnextmatchbyleagueteam 404s once the season is over).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

openligadb_season_matches(league_slug='bl1', season='2025')

openligadb_table​

League table.

Endpoint URL: GET https://api.openligadb.de/getbltable/{league_slug}/{season}

Valid URL: https://api.openligadb.de/getbltable/bl1/2025

API ParameterPythonPatternRequiredNullableDescription
league_slugleague_slugYLeague shortcut from /getavailableleagues, e.g. bl1 (Bundesliga).
seasonseasonYSeason start year, e.g. 2025 for 2025/26.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
team_info_idString
team_nameString
short_nameString
team_icon_urlString
pointsInt64
opponent_goalsInt64
goalsInt64
matchesInt64
wonInt64
lostInt64
drawInt64
goal_diffInt64

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. OpenLigaDB answered 404 (unknown league, season, matchday or match id -- /getnextmatchbyleagueteam 404s once the season is over).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

openligadb_table(league_slug='bl1', season='2025')

openligadb_teams​

Teams of a league-season.

Endpoint URL: GET https://api.openligadb.de/getavailableteams/{league_slug}/{season}

Valid URL: https://api.openligadb.de/getavailableteams/bl1/2025

API ParameterPythonPatternRequiredNullableDescription
league_slugleague_slugYLeague shortcut from /getavailableleagues, e.g. bl1 (Bundesliga).
seasonseasonYSeason start year, e.g. 2025 for 2025/26.

Returns​

return_parsed=True (default) — a tidy polars.DataFrame with the columns below; pass return_as_pandas=True for a pandas.DataFrame.

col_nametypedescription
team_idStringESPN numeric identifier for the team.
team_nameString
short_nameString
team_icon_urlString
team_group_nameString

return_parsed=False — the raw JSON Dict payload, unparsed.

Raises​

ExceptionDescription
NoDataErrorThe host answered 404 -- the requested resource does not exist. OpenLigaDB answered 404 (unknown league, season, matchday or match id -- /getnextmatchbyleagueteam 404s once the season is over).
ValueErrorThe host answered 400 / 422 -- the request is wrong; retrying cannot help.
AssetFetchErrorThe fetch failed (a non-2xx answer or a connection failure after retries, e.g. 401/403/429/5xx, or an empty or unreadable 200 body) -- the answer is unknown, not empty.

Example​

openligadb_teams(league_slug='bl1', season='2025')