No Subscription to this function
GET /soccer/get_season_team
Returns all teams which are of the seasons
Request URL
https://dsg-api.com/clients/{client_name}/soccer/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)
lang
string
two-character language code, defaults to 'en'
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}/soccer/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}/soccer/get_season_team?season_id={season_id}&client={client_name}&authkey={client_authkey}"
response = requests.get("https://dsg-api.com/clients/{client_name}/soccer/get_season_team?season_id={season_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"2.0","sport":"soccer","lang":"en","method":{"method_id":"5","name":"get_season_team"},"competition":{"competition_id":"2","name":"Premier League","teamtype":"male","type":"club","format":"domestic_league","area_id":"68","area_name":"England","last_updated":"2019-07-31 10:18:32","season":{"season_id":"16336","title":"2018\/2019","original_name":"Premier League","start_date":"2018-08-10","end_date":"2019-05-12","logo":"http:\/\/www.dsg-images.com\/comps\/200x200\/2_1.png","last_updated":"2019-05-13 18:25:11","team":[{"team_id":"2169","team_name":"AFC Bournemouth","original_team_name":"AFC Bournemouth","short_name":"Bournemouth","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/2169.png","last_updated":"2019-03-30 14:55:40"},{"team_id":"467","team_name":"Arsenal FC","original_team_name":"Arsenal FC","short_name":"Arsenal","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/467.png","last_updated":"2015-08-03 02:04:51"},{"team_id":"510","team_name":"Brighton & Hove Albion FC","original_team_name":"Brighton & Hove Albion FC","short_name":"Brighton Hove","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/510.png","last_updated":"2016-04-29 01:06:39"},{"team_id":"492","team_name":"Burnley FC","original_team_name":"Burnley FC","short_name":"Burnley","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/492.png","last_updated":"2016-01-12 14:57:28"},{"team_id":"495","team_name":"Cardiff City FC","original_team_name":"Cardiff City FC","short_name":"Cardiff","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/495.png","last_updated":"2015-08-03 12:42:16"},{"team_id":"471","team_name":"Chelsea FC","original_team_name":"Chelsea FC","short_name":"Chelsea","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/471.png","last_updated":"2019-03-31 13:59:03"},{"team_id":"508","team_name":"Crystal Palace FC","original_team_name":"Crystal Palace FC","short_name":"Crystal Palace","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/508.png","last_updated":"2016-09-11 00:49:23"},{"team_id":"473","team_name":"Everton FC","original_team_name":"Everton FC","short_name":"Everton","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/473.png","last_updated":"2015-08-03 02:04:35"},{"team_id":"460","team_name":"Fulham FC","original_team_name":"Fulham FC","short_name":"Fulham","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/460.png","last_updated":"2015-08-03 02:07:15"},{"team_id":"494","team_name":"Huddersfield Town AFC","original_team_name":"Huddersfield Town AFC","short_name":"Huddersfield","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/494.png","last_updated":"2016-01-12 14:57:22"},{"team_id":"489","team_name":"Leicester City FC","original_team_name":"Leicester City FC","short_name":"Leicester City","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/489.png","last_updated":"2016-01-24 23:12:14"},{"team_id":"462","team_name":"Liverpool FC","original_team_name":"Liverpool FC","short_name":"Liverpool","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/462.png","last_updated":"2015-08-03 02:04:51"},{"team_id":"464","team_name":"Manchester City FC","original_team_name":"Manchester City FC","short_name":"Man City","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/464.png","last_updated":"2019-03-30 12:50:32"},{"team_id":"475","team_name":"Manchester United FC","original_team_name":"Manchester United FC","short_name":"Man United","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/475.png","last_updated":"2019-03-30 14:56:33"},{"team_id":"466","team_name":"Newcastle United FC","original_team_name":"Newcastle United FC","short_name":"Newcastle","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/466.png","last_updated":"2015-08-03 02:06:17"},{"team_id":"506","team_name":"Southampton FC","original_team_name":"Southampton FC","short_name":"Southampton","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/506.png","last_updated":"2019-03-30 14:41:18"},{"team_id":"472","team_name":"Tottenham Hotspur FC","original_team_name":"Tottenham Hotspur FC","short_name":"Tottenham","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/472.png","last_updated":"2015-08-03 02:03:55"},{"team_id":"511","team_name":"Watford FC","original_team_name":"Watford FC","short_name":"Watford","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/511.png","last_updated":"2016-01-24 23:12:15"},{"team_id":"496","team_name":"West Ham United FC","original_team_name":"West Ham United FC","short_name":"West Ham","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/496.png","last_updated":"2015-08-03 02:04:35"},{"team_id":"459","team_name":"Wolverhampton Wanderers FC","original_team_name":"Wolverhampton Wanderers FC","short_name":"Wolverhampton","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/459.png","last_updated":"2016-01-12 14:55:06"}]}}}}