Subscription to this function is not available for your account. To upgrade and receive access to this contact sales@datasportsgroup.com
v2 GET /basketball/get_season_team Deprecated
Returns all teams which are of the seasons
Request URL
https://dsg-api.com/clients/{client_name}/basketball/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 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
tour
details about the tour
gender
gender of the tour
name
name of the particular tour
tour_id
unique tour identifier
tour_type
defines if the tournament is part of a tour or not. If not then value "non-tour"
tour_season
details about a tour season
logo
full path URL of logo for particular tour_season
name
name of the tour_season
title
title of the particular tour season
tour_season_id
unique identifier of a tour 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}/basketball/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}/basketball/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}/basketball/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}/basketball/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":"basketball","lang":"en","method":{"method_id":"45","name":"get_season_team"},"competition":{"competition_id":"933","name":"NBA","teamtype":"male","type":"club","format":"domestic_league","area_id":"203","area_name":"United States","last_updated":"2018-12-24 00:35:19","season":{"season_id":"17932","title":"2018\/2019","original_name":"NBA","start_date":"2018-10-16","end_date":"2019-06-18","last_updated":"2018-09-24 08:45:50","team":[{"team_id":"25498","team_name":"Atlanta Hawks","original_team_name":"Atlanta Hawks","short_name":"Hawks","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25498.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25473","team_name":"Boston Celtics","original_team_name":"Boston Celtics","short_name":"Celtics","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25473.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25475","team_name":"Brooklyn Nets","original_team_name":"Brooklyn Nets","short_name":"Nets","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25475.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25500","team_name":"Charlotte Hornets","original_team_name":"Charlotte Hornets","short_name":"Hornets","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25500.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25493","team_name":"Chicago Bulls","original_team_name":"Chicago Bulls","short_name":"Bulls","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25493.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25492","team_name":"Cleveland Cavaliers","original_team_name":"Cleveland Cavaliers","short_name":"Cavaliers","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25492.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25484","team_name":"Dallas Mavericks","original_team_name":"Dallas Mavericks","short_name":"Mavericks","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25484.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25477","team_name":"Denver Nuggets","original_team_name":"Denver Nuggets","short_name":"Nuggets","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25477.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25494","team_name":"Detroit Pistons","original_team_name":"Detroit Pistons","short_name":"Pistons","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25494.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25489","team_name":"Golden State Warriors","original_team_name":"Golden State Warriors","short_name":"Warriors","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25489.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25483","team_name":"Houston Rockets","original_team_name":"Houston Rockets","short_name":"Rockets","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25483.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25495","team_name":"Indiana Pacers","original_team_name":"Indiana Pacers","short_name":"Pacers","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25495.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25490","team_name":"Los Angeles Clippers","original_team_name":"Los Angeles Clippers","short_name":"Clippers","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25490.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25487","team_name":"Los Angeles Lakers","original_team_name":"Los Angeles Lakers","short_name":"Lakers","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25487.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25486","team_name":"Memphis Grizzlies","original_team_name":"Memphis Grizzlies","short_name":"Grizzlies","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25486.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25499","team_name":"Miami Heat","original_team_name":"Miami Heat","short_name":"Heat","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25499.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25496","team_name":"Milwaukee Bucks","original_team_name":"Milwaukee Bucks","short_name":"Bucks","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25496.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25480","team_name":"Minnesota Timberwolves","original_team_name":"Minnesota Timberwolves","short_name":"Timberwolves","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25480.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25485","team_name":"New Orleans Pelicans","original_team_name":"New Orleans Pelicans","short_name":"Pelicans","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25485.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25476","team_name":"New York Knicks","original_team_name":"New York Knicks","short_name":"Knicks","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25476.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25481","team_name":"Oklahoma City Thunder","original_team_name":"Oklahoma City Thunder","short_name":"Thunder","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25481.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25497","team_name":"Orlando Magic","original_team_name":"Orlando Magic","short_name":"Magic","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25497.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25474","team_name":"Philadelphia 76ers","original_team_name":"Philadelphia 76ers","short_name":"76ers","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25474.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25488","team_name":"Phoenix Suns","original_team_name":"Phoenix Suns","short_name":"Suns","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25488.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25478","team_name":"Portland Trail Blazers","original_team_name":"Portland Trail Blazers","short_name":"Trail Blazers","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25478.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25491","team_name":"Sacramento Kings","original_team_name":"Sacramento Kings","short_name":"Kings","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25491.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25482","team_name":"San Antonio Spurs","original_team_name":"San Antonio Spurs","short_name":"Spurs","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25482.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25502","team_name":"Toronto Raptors","original_team_name":"Toronto Raptors","short_name":"Raptors","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25502.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25479","team_name":"Utah Jazz","original_team_name":"Utah Jazz","short_name":"Jazz","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25479.png","last_updated":"2015-02-01 06:23:00"},{"team_id":"25501","team_name":"Washington Wizards","original_team_name":"Washington Wizards","short_name":"Wizards","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25501.png","last_updated":"2015-02-01 06:23:00"}]},"rounds":[{"round_id":"23600","name":"Western Conference - Round 1","start_date":"2019-04-14","end_date":"2019-04-30","last_updated":"2019-04-28 07:20:43","team":[{"team_id":"25477","team_name":"Denver Nuggets","original_team_name":"Denver Nuggets","short_name":"Nuggets","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25478","team_name":"Portland Trail Blazers","original_team_name":"Portland Trail Blazers","short_name":"Trail Blazers","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25479","team_name":"Utah Jazz","original_team_name":"Utah Jazz","short_name":"Jazz","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25481","team_name":"Oklahoma City Thunder","original_team_name":"Oklahoma City Thunder","short_name":"Thunder","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25482","team_name":"San Antonio Spurs","original_team_name":"San Antonio Spurs","short_name":"Spurs","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25483","team_name":"Houston Rockets","original_team_name":"Houston Rockets","short_name":"Rockets","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25489","team_name":"Golden State Warriors","original_team_name":"Golden State Warriors","short_name":"Warriors","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25490","team_name":"Los Angeles Clippers","original_team_name":"Los Angeles Clippers","short_name":"Clippers","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"}]},{"round_id":"23601","name":"Eastern Conference - Round 1","start_date":"2019-04-14","end_date":"2019-04-30","last_updated":"2019-04-24 07:25:30","team":[{"team_id":"25473","team_name":"Boston Celtics","original_team_name":"Boston Celtics","short_name":"Celtics","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25474","team_name":"Philadelphia 76ers","original_team_name":"Philadelphia 76ers","short_name":"76ers","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25475","team_name":"Brooklyn Nets","original_team_name":"Brooklyn Nets","short_name":"Nets","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25494","team_name":"Detroit Pistons","original_team_name":"Detroit Pistons","short_name":"Pistons","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25495","team_name":"Indiana Pacers","original_team_name":"Indiana Pacers","short_name":"Pacers","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25496","team_name":"Milwaukee Bucks","original_team_name":"Milwaukee Bucks","short_name":"Bucks","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25497","team_name":"Orlando Magic","original_team_name":"Orlando Magic","short_name":"Magic","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25502","team_name":"Toronto Raptors","original_team_name":"Toronto Raptors","short_name":"Raptors","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"}]},{"round_id":"23602","name":"Western Conference - Semi-final","start_date":"2019-05-01","end_date":"2019-05-16","last_updated":"2019-05-11 08:37:26","team":[{"team_id":"25477","team_name":"Denver Nuggets","original_team_name":"Denver Nuggets","short_name":"Nuggets","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25478","team_name":"Portland Trail Blazers","original_team_name":"Portland Trail Blazers","short_name":"Trail Blazers","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25483","team_name":"Houston Rockets","original_team_name":"Houston Rockets","short_name":"Rockets","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25489","team_name":"Golden State Warriors","original_team_name":"Golden State Warriors","short_name":"Warriors","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"}]},{"round_id":"23603","name":"Eastern Conference - Semi-final","start_date":"2019-05-01","end_date":"2019-05-16","last_updated":"2019-05-11 08:37:39","team":[{"team_id":"25473","team_name":"Boston Celtics","original_team_name":"Boston Celtics","short_name":"Celtics","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25474","team_name":"Philadelphia 76ers","original_team_name":"Philadelphia 76ers","short_name":"76ers","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25496","team_name":"Milwaukee Bucks","original_team_name":"Milwaukee Bucks","short_name":"Bucks","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25502","team_name":"Toronto Raptors","original_team_name":"Toronto Raptors","short_name":"Raptors","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"}]},{"round_id":"23604","name":"Western Conference - Final","start_date":"2019-05-13","end_date":"2019-05-30","last_updated":"2019-05-21 07:16:16","team":[{"team_id":"25478","team_name":"Portland Trail Blazers","original_team_name":"Portland Trail Blazers","short_name":"Trail Blazers","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25489","team_name":"Golden State Warriors","original_team_name":"Golden State Warriors","short_name":"Warriors","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"}]},{"round_id":"23605","name":"Eastern Conference - Final","start_date":"2019-05-13","end_date":"2019-05-30","last_updated":"2019-05-26 17:27:46","team":[{"team_id":"25496","team_name":"Milwaukee Bucks","original_team_name":"Milwaukee Bucks","short_name":"Bucks","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25502","team_name":"Toronto Raptors","original_team_name":"Toronto Raptors","short_name":"Raptors","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"}]},{"round_id":"23606","name":"NBA Finals","start_date":"2019-06-01","end_date":"2019-06-18","last_updated":"2019-06-14 07:16:34","team":[{"team_id":"25489","team_name":"Golden State Warriors","original_team_name":"Golden State Warriors","short_name":"Warriors","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"},{"team_id":"25502","team_name":"Toronto Raptors","original_team_name":"Toronto Raptors","short_name":"Raptors","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2015-02-01 06:23:00"}]}]}}}