Skip to content

Instantly share code, notes, and snippets.

@DeveloperMarius
Last active May 28, 2024 15:55
Show Gist options
  • Save DeveloperMarius/9e117e254b49bc131cae98c9099734c6 to your computer and use it in GitHub Desktop.
Save DeveloperMarius/9e117e254b49bc131cae98c9099734c6 to your computer and use it in GitHub Desktop.
Sport1 Public API

Sport1 Public API

Die www.sport1.de Webseite verwendet eine public api zum Anzeigen der Inhalte.
Die öffentliche API kann verwendet werden, um Daten von Fußball, Handball, Basketball, etc. Spiele zu erhalten.
Zum Anfragen der Wettbewerbes-Ids habe ich keinen Endpunkt gefunden. Daher sind diese zu einigen Wettbewerben und Ligen unten aufgelistet.

Allgemeine Endpunkte

Die folgenden Endpunkte sind getestet für Fußball und Handball.

Seasons

Seasons: GET https://api.sport1.info/v2/de/{sport}/competition/{competition}/season

Beispiel: https://api.sport1.info/v2/de/soccer/competition/opta_87/season

Spielplan / Spieltage

Endpoint: GET https://api.sport1.info/v2/de/{sport}/competition/{competition}/season/{season}/competitionGameplan

Beispiel: https://api.sport1.info/v2/de/soccer/competition/opta_87/season/opta_2023/competitionGameplan

Informationen pro Spiel

Dieser Endpunkt ist nicht für Fußball verfügbar, bitte verwende den Liveticker.

Endpunkt: GET https://api.sport1.info/v2/de/{sport}/match/{match}

Beispiel: https://api.sport1.info/v2/de/handball/match/sr:match:42307993

Live Ticker

Der Live Ticker ist nach meinen begrenzten Tests nur für den Fußball verfügbar (Gerne pro Sportart testen).

Endpoint: GET https://api.sport1.info/v2/de/{sport}/ticker/{match}

Beispiel: https://api.sport1.info/v2/de/soccer/ticker/opta_2379211

Teams

Endpoint: https://api.sport1.info/v2/de/{sport}/competition/{competition}/standings

Beispiel: https://api.sport1.info/v2/de/soccer/competition/opta_87/standings

Matches pro Spieltag

Default

Dieser Endpunkt kann verwendet werden, wenn der Spietag keinen Typ hat. Das ist überwiegend bei Fußball der Fall.

Endpoint: GET https://api.sport1.info/v2/de/{sport}/competition/{competition}/season/{season}/matchDay/{matchday}/gameplan/competitionMatches

Beispiel: https://api.sport1.info/v2/de/soccer/competition/opta_22/season/opta_2023/matchDay/34/gameplan/competitionMatches

League

Sollte der Typ des Spieltags league sein, kann dieser Endpunkt verwendet werden.

Endpoint: GET https://api.sport1.info/v2/de/{sport}/competition/{competition}/season/{season}/round/{round}/gameplan/competitionMatches/phase/{phase}

Beispiel: https://api.sport1.info/v2/de/handball/competition/sr:tournament:149/season/sr:season:107903/round/33/gameplan/competitionMatches/phase/PHASE_REGULAR_SEASON

Cup

Sollte der Typ des Spieltags cup sein, kann dieser Endpunkt verwendet werden.

Im Fall von isPlayoff:

Endpoint: GET https://api.sport1.info/v2/de/{sport}/competition/{competition}/season/{season}/roundType/{round_type}/gameplan/playoffMatches/playDown/{isPlayDown}

Beispiel: https://api.sport1.info/v2/de/basketball/competition/sr:tournament:227/season/sr:season:107755/roundType/SEMI_FINALS/gameplan/playoffMatches/playDown/false

Sonst:

Endpoint: GET https://api.sport1.info/v2/de/{sport}/competition/{competition}/season/{season}/roundType/{round_type}/gameplan/competitionMatches

Beispiel: https://api.sport1.info/v2/de/basketball/competition/sr:tournament:227/season/sr:season:107755/roundType/FINAL/gameplan/competitionMatches

Fußball

Sport: soccer
Slug: fussball
Spietage: 1-34

Competition Id Slug
1 Bundesliga opta_22 bundesliga
2 Bundesliga opta_87 2-bundesliga
CHAMPIONS LEAGUE opta_5 champions-league
DFB-POKAL opta_231 dfb-pokal
FRAUEN-BUNDESLIGA opta_564 frauen-bundesliga

Handball

Sport: handball
Spietage: 1-34

Competition Id
Bundesliga sr:tournament:149
HANDBALL CHAMPIONS LEAGUE sr:tournament:30
HDHB-POKAL sr:tournament:57
HANDBALL BUNDESLIGA FRAUEN sr:tournament:245

Basketball

Sport: basketball

Competition Id
BBL sr:tournament:227
EUROLEAGUE sr:tournament:138
BBL-POKAL sr:tournament:359
BASKETBALL CHAMPIONS LEAGUE sr:tournament:14051

Icehockey

Sport: icehockey

Competition Id
DEL sr:tournament:225
DEUTSCHLAND CUP sr:tournament:863
CHAMPIONS HOCKEY LEAGUE sr:tournament:494
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment