Subscription to this function is not available for your account. To upgrade and receive access to this contact sales@datasportsgroup.com
v3 GET /nba2k/get_tables
Returns the league, home & away tables per season or round.
Request URL
https://dsg-api.com/clients/{client_name}/nba2k/get_tables?type={type}&id={id}&client={client_name}&authkey={client_authkey}
API Threshold
- 10k calls per hour (2.78 calls per second)
- This threshold applies to ALL your calls you do across the API.
- Your number of calls get reset every hour at :00
- If the thresold is reached within the hour you will get a xml/json message accordingly (which is gone when the next hour starts, see previous point)
Parameters
authkey
string Required
client authentification key
client
string Required
unique client ID
date
string
set a date in format yyyy-mm-dd as limit
ftype
string
changes feed type from XML to json (ftype=json or ftype=json_array)
gameweek
int
gameweek value to get table from
id
int Required
object id to return
lang
string
two-character language code, defaults to 'en'
live
string
only 'yes' is valid which will provide a live table
type
string Required
type is either "season" or "round"
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
list❯
details about list type
aggregation_type
aggregation type (scores or wins)
id
unique identifier for a group if type = group, if type = playoff then for a playoff
last_updated
When record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
name
name of either a group or playoff
score_a
playoff score of team_a
score_b
playoff score of team_b
type
list type (regular, group or playoff)
winner_team_id
unique identifier for the winning team of the playoff
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
table❯
details about the table entry (basketball,nba2k)
area_id
unique identifier for an area
form
performance of the last 5 matches in the particular round (W = win, D = draw, L = loss)
games_behind
number of matches behind leading team
home
win-loss record for home matches
live
indicates if there is a live game for the team
matches_lost
value for total lost matches
matches_total
value for total played matches
matches_won
value for total won matches
next_match_id
match_id of the upcoming match in the particular round
next_opponent_name
current team name of the next opponent in the particular round
next_opponent_team_id
team_id of the next opponent in the particular round
original_team_name
original team name during the season
percentage
win percentage (win/loss)
points_against
value for total runs against
points_for
value for total runs scored
position
position value
prev_season
defines last season achievements ('C','CW','P','R')
road
win-loss record for away matches
short_name
shortened name of the person
team_id
unique identifier of the team
team_logo
full path URL of team logo
team_name
current team name
zone
name of table zone
zone_id
unique identifier for a table zone
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}/nba2k/get_tables?type={type}&id={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}/nba2k/get_tables?type={type}&id={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}/nba2k/get_tables?type={type}&id={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}/nba2k/get_tables?type={type}&id={id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example200 Success{"datasportsgroup":{"version":"2.300.3","sport":"esport_nba2k","lang":"en","generated_utc":"2025-08-01T15:06:06+00:00","method":{"method_id":"300","name":"get_tables"},"tour":{"tour_id":"","name":"","gender":"male","tour_type":"non-tour","tour_season":{"tour_season_id":"","title":"","name":"","logo":"","competition":{"competition_id":"4007","name":"eFIBA","gender":"male","type":"international","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2023-01-24 00:14:53","season":{"season_id":"67748","title":"Season 1","original_name":"eFIBA","start_date":"2023-01-20","end_date":"2023-01-26","logo":"https:\/\/www.dsg-images.com\/comps\/200x200\/4007.png","last_updated":"2023-01-24 01:00:09","round":{"round_id":"76322","name":"Regional Qualifier - Asia","start_date":"2023-01-20","start_time":"","start_date_utc":"2023-01-20","start_time_utc":"","end_date":"2023-01-20","end_time":"","end_date_utc":"2023-01-20","end_time_utc":"","type":"table","last_updated":"2023-01-24 00:35:59","list":[{"type":"group","id":"17561","name":"Group 1","last_updated":"2023-01-24 00:34:24","total":{"table":[{"position":"1","team_id":"60116","team_name":"Saudi Arabia","short_name":"Saudi Arabia","original_team_name":"Saudi Arabia","area_id":"164","live":"no","zone":"Next Round","zone_id":"next_round","prev_season":"","form":"W","next_match_id":"","next_opponent_team_id":"","next_opponent_name":"","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/60116.png","values":{"matches_won":"1","matches_lost":"0","percentage":"1.000","matches_total":"1","points_for":"117","points_against":"47","points_difference":"70"}},{"position":"2","team_id":"60113","team_name":"Lebanon","short_name":"Lebanon","original_team_name":"Lebanon","area_id":"112","live":"no","zone":"Next Round","zone_id":"next_round","prev_season":"","form":"L,W","next_match_id":"","next_opponent_team_id":"","next_opponent_name":"","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/60113.png","values":{"matches_won":"1","matches_lost":"1","percentage":"0.500","matches_total":"2","points_for":"147","points_against":"147","points_difference":"0"}},{"position":"3","team_id":"60111","team_name":"Qatar","short_name":"Qatar","original_team_name":"Qatar","area_id":"158","live":"no","zone":"","zone_id":"","prev_season":"","form":"L","next_match_id":"","next_opponent_team_id":"","next_opponent_name":"","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/60111.png","values":{"matches_won":"0","matches_lost":"1","percentage":"0.000","matches_total":"1","points_for":"30","points_against":"100","points_difference":"-70"}}]},"home":{"table":[{"position":"1","team_id":"60116","team_name":"Saudi Arabia","short_name":"Saudi Arabia","original_team_name":"Saudi Arabia","area_id":"164","form":"W","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/60116.png","values":{"matches_won":"1","matches_lost":"0","percentage":"1.000","matches_total":"1","points_for":"117","points_against":"47","points_difference":"70"}},{"position":"2","team_id":"60113","team_name":"Lebanon","short_name":"Lebanon","original_team_name":"Lebanon","area_id":"112","form":"","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/60113.png","values":{"matches_won":"0","matches_lost":"0","percentage":"0.000","matches_total":"0","points_for":"0","points_against":"0","points_difference":"0"}},{"position":"3","team_id":"60111","team_name":"Qatar","short_name":"Qatar","original_team_name":"Qatar","area_id":"158","form":"L","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/60111.png","values":{"matches_won":"0","matches_lost":"1","percentage":"0.000","matches_total":"1","points_for":"30","points_against":"100","points_difference":"-70"}}]},"away":{"table":[{"position":"1","team_id":"60113","team_name":"Lebanon","short_name":"Lebanon","original_team_name":"Lebanon","area_id":"112","form":"W,L","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/60113.png","values":{"matches_won":"1","matches_lost":"1","percentage":"0.500","matches_total":"2","points_for":"147","points_against":"147","points_difference":"0"}},{"position":"2","team_id":"60111","team_name":"Qatar","short_name":"Qatar","original_team_name":"Qatar","area_id":"158","form":"","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/60111.png","values":{"matches_won":"0","matches_lost":"0","percentage":"0.000","matches_total":"0","points_for":"0","points_against":"0","points_difference":"0"}},{"position":"3","team_id":"60116","team_name":"Saudi Arabia","short_name":"Saudi Arabia","original_team_name":"Saudi Arabia","area_id":"164","form":"","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/60116.png","values":{"matches_won":"0","matches_lost":"0","percentage":"0.000","matches_total":"0","points_for":"0","points_against":"0","points_difference":"0"}}]}},{"type":"group","id":"17562","name":"Group 2","last_updated":"2023-01-24 00:36:21","total":{"table":[{"position":"1","team_id":"60115","team_name":"Philippines","short_name":"Philippines","original_team_name":"Philippines","area_id":"154","live":"no","zone":"Next Round","zone_id":"next_round","prev_season":"","form":"W,W","next_match_id":"","next_opponent_team_id":"","next_opponent_name":"","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/60115.png","values":{"matches_won":"2","matches_lost":"0","percentage":"1.000","matches_total":"2","points_for":"133","points_against":"66","points_difference":"67"}},{"position":"2","team_id":"60112","team_name":"Indonesia","short_name":"Indonesia","original_team_name":"Indonesia","area_id":"95","live":"no","zone":"Next Round","zone_id":"next_round","prev_season":"","form":"W,L","next_match_id":"","next_opponent_team_id":"","next_opponent_name":"","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/60112.png","values":{"matches_won":"1","matches_lost":"1","percentage":"0.500","matches_total":"2","points_for":"89","points_against":"109","points_difference":"-20"}},{"position":"3","team_id":"60114","team_name":"Mongolia","short_name":"Mongolia","original_team_name":"Mongolia","area_id":"131","live":"no","zone":"","zone_id":"","prev_season":"","form":"L,L","next_match_id":"","next_opponent_team_id":"","next_opponent_name":"","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/60114.png","values":{"matches_won":"0","matches_lost":"2","percentage":"0.000","matches_total":"2","points_for":"88","points_against":"135","points_difference":"-47"}}]},"home":{"table":[{"position":"1","team_id":"60115","team_name":"Philippines","short_name":"Philippines","original_team_name":"Philippines","area_id":"154","form":"W,W","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/60115.png","values":{"matches_won":"2","matches_lost":"0","percentage":"1.000","matches_total":"2","points_for":"133","points_against":"66","points_difference":"67"}},{"position":"2","team_id":"60112","team_name":"Indonesia","short_name":"Indonesia","original_team_name":"Indonesia","area_id":"95","form":"","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/60112.png","values":{"matches_won":"0","matches_lost":"0","percentage":"0.000","matches_total":"0","points_for":"0","points_against":"0","points_difference":"0"}},{"position":"3","team_id":"60114","team_name":"Mongolia","short_name":"Mongolia","original_team_name":"Mongolia","area_id":"131","form":"L","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/60114.png","values":{"matches_won":"0","matches_lost":"1","percentage":"0.000","matches_total":"1","points_for":"49","points_against":"62","points_difference":"-13"}}]},"away":{"table":[{"position":"1","team_id":"60112","team_name":"Indonesia","short_name":"Indonesia","original_team_name":"Indonesia","area_id":"95","form":"L,W","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/60112.png","values":{"matches_won":"1","matches_lost":"1","percentage":"0.500","matches_total":"2","points_for":"89","points_against":"109","points_difference":"-20"}},{"position":"2","team_id":"60115","team_name":"Philippines","short_name":"Philippines","original_team_name":"Philippines","area_id":"154","form":"","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/60115.png","values":{"matches_won":"0","matches_lost":"0","percentage":"0.000","matches_total":"0","points_for":"0","points_against":"0","points_difference":"0"}},{"position":"3","team_id":"60114","team_name":"Mongolia","short_name":"Mongolia","original_team_name":"Mongolia","area_id":"131","form":"L","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/60114.png","values":{"matches_won":"0","matches_lost":"1","percentage":"0.000","matches_total":"1","points_for":"39","points_against":"73","points_difference":"-34"}}]}}]}}}}}}}