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.
Die folgenden Endpunkte sind getestet für Fußball und Handball.
Seasons: GET https://api.sport1.info/v2/de/{sport}/competition/{competition}/season
Beispiel: https://api.sport1.info/v2/de/soccer/competition/opta_87/season
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
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
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
Endpoint: https://api.sport1.info/v2/de/{sport}/competition/{competition}/standings
Beispiel: https://api.sport1.info/v2/de/soccer/competition/opta_87/standings
Dieser Endpunkt kann verwendet werden, wenn der Spietag keinen Typ hat. Das ist überwiegend bei Fußball der Fall.
Sollte der Typ des Spieltags league
sein, kann dieser Endpunkt verwendet werden.
Sollte der Typ des Spieltags cup
sein, kann dieser Endpunkt verwendet werden.
Im Fall von isPlayoff
:
Sonst:
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 |
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 |
Sport: basketball
Competition | Id |
---|---|
BBL | sr:tournament:227 |
EUROLEAGUE | sr:tournament:138 |
BBL-POKAL | sr:tournament:359 |
BASKETBALL CHAMPIONS LEAGUE | sr:tournament:14051 |
Sport: icehockey
Competition | Id |
---|---|
DEL | sr:tournament:225 |
DEUTSCHLAND CUP | sr:tournament:863 |
CHAMPIONS HOCKEY LEAGUE | sr:tournament:494 |