No Subscription to this function
GET /ice_hockey/get_season_team
Returns all teams which are of the seasons
Request URL
https://dsg-api.com/clients/{client_name}/ice_hockey/get_season_team?season_id={season_id}&client={client_name}&authkey={client_authkey}
Parameters
authkey
string Required
client authentification key
client
string Required
unique client ID
ftype
string
changes feed type from XML to json (ftype=json)
season_id
int Required
season id to get teams from
Nodes
competition
Details about competition
area_id
unique identifier for area.
area_name
contains the area name.
competition_id
unique identifier for a competition.
format
competition format to filter out leagues or cups
last_updated
When record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
name
name of the competition.
teamtype
determines the type of team/competition (male,female,male_youth,female_youth)
type
determines if a competition is between club teams (club) or national teams (international).
method
details about the API function
method_id
unique ID of method.
name
name of method.
rounds
Details about round
current_gameweek
displays the gameweek of nearest match to today
end_date
end date, format 'yyyy-mm-dd'.
last_updated
When record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
name
name of round
round_id
unique identifier of round.
start_date
start date, format 'yyyy-mm-dd'.
type
Determines if the round contains a table or a cup structure (knock-out).
season
Details about season
end_date
end date, format 'yyyy-mm-dd'.
last_updated
when record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
logo
full path URL of logo for particular season
original_name
competition name during this season
season_id
unique identifier for season.
start_date
start date, format 'yyyy-mm-dd'.
title
title of season
team
basic team informations
gender
gender of the team ('male', 'male youth', 'female' or 'female youth')
last_updated
when record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
original_team_name
original team name during the season
short_name
short name of the team.
status
The current status of the team ('active' or 'defunct')
team_id
Unique identifier for team
team_logo
full path URL of team logo
team_name
current team name
type
Determines the type of team ('national' or 'club')
Response Headers
200
Success
401
Unauthorized
429
Rate limit exceeded
Code Samples
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://dsg-api.com/clients/{client_name}/ice_hockey/get_season_team?season_id={season_id}&client={client_name}&authkey={client_authkey}");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERPWD, "User:Password");
$content = curl_exec($ch);
curl_close($ch);
?>
curl GET -u "User:Password" "https://dsg-api.com/clients/{client_name}/ice_hockey/get_season_team?season_id={season_id}&client={client_name}&authkey={client_authkey}"
response = requests.get("https://dsg-api.com/clients/{client_name}/ice_hockey/get_season_team?season_id={season_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"1.0","sport":"ice_hockey","lang":"","method":{"method_id":"80","name":"get_season_team"},"competition":{"competition_id":"975","name":"KHL","teamtype":"male","type":"club","format":"domestic_league","area_id":"160","area_name":"Russia","last_updated":"2018-12-24 00:34:36","season":{"season_id":"17941","title":"2018\/2019","original_name":"KHL","start_date":"2018-09-01","end_date":"2019-04-25","logo":"https:\/\/www.dsg-images.com\/comps\/200x200\/975_1.png","last_updated":"2018-08-16 14:18:19","team":[{"team_id":"25592","team_name":"Admiral Vladivostok","original_team_name":"Admiral Vladivostok","short_name":"Admiral","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25592.png","last_updated":"2016-09-17 06:27:56"},{"team_id":"25585","team_name":"AK Bars Kazan","original_team_name":"AK Bars Kazan","short_name":"AK Bars Kazan","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25585.png","last_updated":"2016-09-17 06:28:05"},{"team_id":"25593","team_name":"Amur Khabarovsk","original_team_name":"Amur Khabarovsk","short_name":"Amur","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25593.png","last_updated":"2016-09-17 06:28:14"},{"team_id":"25594","team_name":"Avangard Omsk","original_team_name":"Avangard Omsk","short_name":"Avangard Omsk","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25594.png","last_updated":"2016-09-17 06:28:30"},{"team_id":"25586","team_name":"Avtomobilist Yekaterinburg","original_team_name":"Avtomobilist Yekaterinburg","short_name":"Avtomobilist","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25586.png","last_updated":"2016-09-17 06:28:39"},{"team_id":"25595","team_name":"Barys Nur-Sultan","original_team_name":"Barys Astana","short_name":"Barys","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25595.png","last_updated":"2019-08-05 13:48:16"},{"team_id":"25572","team_name":"Dinamo Riga","original_team_name":"Dinamo Riga","short_name":"Dinamo Riga","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25572.png","last_updated":"2016-09-03 03:11:51"},{"team_id":"25578","team_name":"HC CSKA Moskva","original_team_name":"HC CSKA Moskva","short_name":"CSKA Moskva","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25578.png","last_updated":"2016-09-17 06:28:48"},{"team_id":"25571","team_name":"HC Dinamo Minsk","original_team_name":"HC Dinamo Minsk","short_name":"Dinamo Minsk","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25571.png","last_updated":"2016-09-03 03:02:28"},{"team_id":"25579","team_name":"HC Dynamo Moskva","original_team_name":"HC Dynamo Moskva","short_name":"Dynamo Moskva","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25579.png","last_updated":"2016-08-31 15:44:23"},{"team_id":"25580","team_name":"HC Sochi","original_team_name":"HC Sochi","short_name":"HC Sochi","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25580.png","last_updated":"2016-09-17 06:28:56"},{"team_id":"25577","team_name":"HC Spartak Moskva","original_team_name":"HC Spartak Moskva","short_name":"Spartak Moskva","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25577.png","last_updated":"2016-09-17 06:29:05"},{"team_id":"25576","team_name":"HK Slovan Bratislava","original_team_name":"HK Slovan Bratislava","short_name":"Slovan Bratisl","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25576.png","last_updated":"2016-09-17 06:31:48"},{"team_id":"25573","team_name":"Jokerit","original_team_name":"Jokerit","short_name":"Jokerit","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25573.png","last_updated":"2016-09-03 03:23:56"},{"team_id":"27969","team_name":"Kunlun Red Star","original_team_name":"Kunlun Red Star","short_name":"Kunlun RS","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/27969.png","last_updated":"2016-07-25 16:29:57"},{"team_id":"25581","team_name":"Lokomotiv Yaroslavl","original_team_name":"Lokomotiv Yaroslavl","short_name":"Lok Yaroslavl","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25581.png","last_updated":"2016-08-31 14:58:13"},{"team_id":"25588","team_name":"Metallurg Magnitogorsk","original_team_name":"Metallurg Magnitogorsk","short_name":"Metallurg","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25588.png","last_updated":"2016-09-01 17:58:33"},{"team_id":"25589","team_name":"Neftekhimik Nizhnekamsk","original_team_name":"Neftekhimik Nizhnekamsk","short_name":"Neftekhimik","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25589.png","last_updated":"2016-09-17 06:29:37"},{"team_id":"25597","team_name":"Salavat Yulaev Ufa","original_team_name":"Salavat Yulaev Ufa","short_name":"Salavat","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25597.png","last_updated":"2016-09-17 06:29:48"},{"team_id":"25582","team_name":"Severstal Cherepovets","original_team_name":"Severstal Cherepovets","short_name":"Severstal","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25582.png","last_updated":"2016-08-31 15:18:02"},{"team_id":"25598","team_name":"Sibir Novosibirsk","original_team_name":"Sibir Novosibirsk","short_name":"Sibir","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25598.png","last_updated":"2016-09-17 06:30:13"},{"team_id":"25575","team_name":"SKA Saint Petersburg","original_team_name":"SKA Saint Petersburg","short_name":"SKA","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25575.png","last_updated":"2016-09-03 03:32:38"},{"team_id":"25583","team_name":"Torpedo Nizhny Novgorod","original_team_name":"Torpedo Nizhny Novgorod","short_name":"Torpedo NN","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25583.png","last_updated":"2016-09-17 06:30:24"},{"team_id":"25590","team_name":"Traktor Chelyabinsk","original_team_name":"Traktor Chelyabinsk","short_name":"Traktor","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25590.png","last_updated":"2016-09-17 06:30:33"},{"team_id":"25584","team_name":"Vityaz Podolsk","original_team_name":"Vityaz Podolsk","short_name":"Vityaz Podolsk","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25584.png","last_updated":"2016-09-17 06:30:40"}]},"rounds":[{"round_id":"23641","name":"Conference Quarter-finals","start_date":"2019-02-25","end_date":"2019-03-10","current_gameweek":"","last_updated":"2019-03-09 08:56:31","team":[{"team_id":"25573","team_name":"Jokerit","original_team_name":"Jokerit","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-03 03:23:56"},{"team_id":"25575","team_name":"SKA Saint Petersburg","original_team_name":"SKA Saint Petersburg","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-03 03:32:38"},{"team_id":"25577","team_name":"HC Spartak Moskva","original_team_name":"HC Spartak Moskva","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-17 06:29:05"},{"team_id":"25578","team_name":"HC CSKA Moskva","original_team_name":"HC CSKA Moskva","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-17 06:28:48"},{"team_id":"25579","team_name":"HC Dynamo Moskva","original_team_name":"HC Dynamo Moskva","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-08-31 15:44:23"},{"team_id":"25580","team_name":"HC Sochi","original_team_name":"HC Sochi","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-17 06:28:56"},{"team_id":"25581","team_name":"Lokomotiv Yaroslavl","original_team_name":"Lokomotiv Yaroslavl","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-08-31 14:58:13"},{"team_id":"25583","team_name":"Torpedo Nizhny Novgorod","original_team_name":"Torpedo Nizhny Novgorod","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-17 06:30:24"},{"team_id":"25584","team_name":"Vityaz Podolsk","original_team_name":"Vityaz Podolsk","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-17 06:30:40"},{"team_id":"25585","team_name":"AK Bars Kazan","original_team_name":"AK Bars Kazan","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-17 06:28:05"},{"team_id":"25586","team_name":"Avtomobilist Yekaterinburg","original_team_name":"Avtomobilist Yekaterinburg","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-17 06:28:39"},{"team_id":"25588","team_name":"Metallurg Magnitogorsk","original_team_name":"Metallurg Magnitogorsk","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-01 17:58:33"},{"team_id":"25590","team_name":"Traktor Chelyabinsk","original_team_name":"Traktor Chelyabinsk","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-17 06:30:33"},{"team_id":"25594","team_name":"Avangard Omsk","original_team_name":"Avangard Omsk","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-17 06:28:30"},{"team_id":"25595","team_name":"Barys Nur-Sultan","original_team_name":"Barys Astana","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2019-08-05 13:48:16"},{"team_id":"25597","team_name":"Salavat Yulaev Ufa","original_team_name":"Salavat Yulaev Ufa","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-17 06:29:48"}]},{"round_id":"23642","name":"Conference Semi-finals","start_date":"2019-03-11","end_date":"2019-03-22","current_gameweek":"","last_updated":"2019-03-23 08:05:22","team":[{"team_id":"25575","team_name":"SKA Saint Petersburg","original_team_name":"SKA Saint Petersburg","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-03 03:32:38"},{"team_id":"25578","team_name":"HC CSKA Moskva","original_team_name":"HC CSKA Moskva","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-17 06:28:48"},{"team_id":"25579","team_name":"HC Dynamo Moskva","original_team_name":"HC Dynamo Moskva","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-08-31 15:44:23"},{"team_id":"25581","team_name":"Lokomotiv Yaroslavl","original_team_name":"Lokomotiv Yaroslavl","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-08-31 14:58:13"},{"team_id":"25586","team_name":"Avtomobilist Yekaterinburg","original_team_name":"Avtomobilist Yekaterinburg","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-17 06:28:39"},{"team_id":"25594","team_name":"Avangard Omsk","original_team_name":"Avangard Omsk","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-17 06:28:30"},{"team_id":"25595","team_name":"Barys Nur-Sultan","original_team_name":"Barys Astana","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2019-08-05 13:48:16"},{"team_id":"25597","team_name":"Salavat Yulaev Ufa","original_team_name":"Salavat Yulaev Ufa","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-17 06:29:48"}]},{"round_id":"23643","name":"Conference Finals","start_date":"2019-03-29","end_date":"2019-04-11","current_gameweek":"","last_updated":"2019-04-10 07:24:04","team":[{"team_id":"25575","team_name":"SKA Saint Petersburg","original_team_name":"SKA Saint Petersburg","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-03 03:32:38"},{"team_id":"25578","team_name":"HC CSKA Moskva","original_team_name":"HC CSKA Moskva","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-17 06:28:48"},{"team_id":"25594","team_name":"Avangard Omsk","original_team_name":"Avangard Omsk","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-17 06:28:30"},{"team_id":"25597","team_name":"Salavat Yulaev Ufa","original_team_name":"Salavat Yulaev Ufa","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-17 06:29:48"}]},{"round_id":"23644","name":"Gagarin Cup","start_date":"2019-04-14","end_date":"2019-04-25","current_gameweek":"","last_updated":"2019-04-20 09:02:29","team":[{"team_id":"25578","team_name":"HC CSKA Moskva","original_team_name":"HC CSKA Moskva","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-17 06:28:48"},{"team_id":"25594","team_name":"Avangard Omsk","original_team_name":"Avangard Omsk","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-17 06:28:30"}]}]}}}