Subscription to this function is not available for your account. To upgrade and receive access to this contact sales@datasportsgroup.com
v2 GET /soccer/get_season_team Deprecated
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 an area
area_name
name of the area
competition_id
unique identifier for a competition
format
competition format (domestic_league, domestic_cup, domestic_league_cup, domestic_super_cup, international_cup, international_super_cup, playoff, tournament, race, unofficial)
gender
determines the gender of the competition (male or female)
last_updated
When record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
name
name of the competition
type
determines if a competition is between club teams (club) or national teams (international)
datasportsgroup
details about the API version, sport, language and generation timestamp
generated_utc
UTC timestamp when the API output was generated
lang
language of the API call
sport
sport value
version
version of the API
method
details about the API function
method_id
unique ID of method
name
name of method
round
details about the round
end_date
end date, format 'yyyy-mm-dd'
end_date_utc
end date in UTC timezone, format 'yyyy-mm-dd'
end_time
end time, format 'HH:mm:ss'
end_time_utc
end time in UTC timezone, format 'HH:mm:ss'
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'
start_date_utc
start date in UTC timezone, format 'yyyy-mm-dd'.
start_time
start time, format 'HH:mm:ss'
start_time_utc
start time in UTC timezone, format 'HH:mm:ss'
type
determines if the round contains a table or a cup structure (knock-out)
season
details about the 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
Response Headers
200
Success
401
Unauthorized
429
Too Many Requests
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}"
Imports System
Imports System.Net	
Imports System.IO
Imports System.Text

Public Module Module1
	Public Sub Main()
		Dim url As String = "https://dsg-api.com/clients/{client_name}/soccer/get_season_team?season_id={season_id}&client={client_name}&authkey={client_authkey}"
		Dim myReq As WebRequest = WebRequest.Create(url)
		myReq.Credentials = new System.Net.NetworkCredential("{User}", "{Password}")
		Dim wr As WebResponse = myReq.GetResponse()
		Dim receiveStream As Stream = wr.GetResponseStream()
		Dim reader As StreamReader = New StreamReader(receiveStream, Encoding.UTF8)
		Dim content As String = reader.ReadToEnd()
	End Sub
End Module
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"}]}}}}