No Subscription to this function
GET /kabaddi/get_tables
Returns the league, home & away tables per season or round.
Request URL
https://dsg-api.com/clients/{client_name}/kabaddi/get_tables?type={type}&id={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)
gameweek
int
gameweek value to get table from
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 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).
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
sport
sport of the API
version
version of the API
group
Details about group
group_id
unique identifier to the group.
last_updated
When group was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
name
name of group
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
table
Details about full table
ball
display which ball the commentary belongs to
commentary_id
unique global id for commentaries
created_at
timestamp of creation
form
performance of the last 5 matches in the particular round (W = win, D = draw, L = loss)
home
win-loss record for home matches
matches_lost
value for total lost matches
matches_total
value for total played matches
matches_won
value for total won matches
net_run_rate
value for net run rate (NRR)
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)
period_type
only used for type = Live. determines which inning the commentary belongs to.
points
value for total points gained
points_against
value for total runs against
points_for
value for total points scored
position
current table position
prev_season
defines last season achievements ('C','CW','P','R')
road
win-loss record for away matches
run_difference
value for total run difference
short_name
short name of the team.
team_id
Unique identifier for team.
team_name
current team name
type
valid values are Live, Post-Match and Pre-Match.
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}/kabaddi/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}/kabaddi/get_tables?type={type}&id={id}&client={client_name}&authkey={client_authkey}"
response = requests.get("https://dsg-api.com/clients/{client_name}/kabaddi/get_tables?type={type}&id={id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"1.0","sport":"kabaddi","lang":"en","method":{"method_id":"97","name":"get_tables"},"competition":{"competition_id":"1259","name":"Pro Kabaddi League","teamtype":"male","type":"club","format":"domestic_league","area_id":"94","area_name":"India","last_updated":"2019-06-23 13:16:46","season":{"season_id":"18005","title":"Season 6","original_name":"Pro Kabaddi League","start_date":"2018-10-05","end_date":"2019-01-05","logo":"https:\/\/www.dsg-images.com\/comps\/200x200\/1259.png","last_updated":"2018-08-24 12:40:12","rounds":{"round_id":"23892","name":"Regular Season","start_date":"2018-10-05","end_date":"2018-12-27","type":"table","last_updated":"2018-12-17 17:08:33","group":[{"group_id":"6154","name":"Zone A","last_updated":"2018-08-24 12:41:13","total":{"table":[{"position":"1","team_id":"31328","team_name":"Gujarat FortuneGiants","short_name":"Gujarat","original_team_name":"Gujarat FortuneGiants","zone":"Championship Playoffs","zone_id":"champ_playoffs","prev_season":"","form":"W,W,W,W,W","next_match_id":"","next_opponent_team_id":"","next_opponent_name":"","matches_total":"22","matches_won":"17","matches_lost":"3","matches_tied":"2","score_for":"776","score_against":"659","score_difference":"117","points":"93"},{"position":"2","team_id":"30830","team_name":"U Mumba","short_name":"U Mumba","original_team_name":"U Mumba","zone":"Championship Playoffs","zone_id":"champ_playoffs","prev_season":"","form":"L,D,W,W,W","next_match_id":"","next_opponent_team_id":"","next_opponent_name":"","matches_total":"22","matches_won":"15","matches_lost":"5","matches_tied":"2","score_for":"827","score_against":"638","score_difference":"189","points":"86"},{"position":"3","team_id":"30825","team_name":"Dabang Delhi K.C.","short_name":"Dabang Delhi","original_team_name":"Dabang Delhi K.C.","zone":"Championship Playoffs","zone_id":"champ_playoffs","prev_season":"","form":"W,D,L,W,W","next_match_id":"","next_opponent_team_id":"","next_opponent_name":"","matches_total":"22","matches_won":"11","matches_lost":"9","matches_tied":"2","score_for":"750","score_against":"750","score_difference":"0","points":"68"},{"position":"4","team_id":"30828","team_name":"Puneri Paltan","short_name":"Puneri Paltan","original_team_name":"Puneri Paltan","zone":"","zone_id":"","prev_season":"","form":"W,L,L,L,L","next_match_id":"","next_opponent_team_id":"","next_opponent_name":"","matches_total":"22","matches_won":"8","matches_lost":"12","matches_tied":"2","score_for":"648","score_against":"694","score_difference":"-46","points":"52"},{"position":"5","team_id":"30826","team_name":"Jaipur Pink Panthers","short_name":"Jaipur PP","original_team_name":"Jaipur Pink Panthers","zone":"","zone_id":"","prev_season":"","form":"L,D,L,W,L","next_match_id":"","next_opponent_team_id":"","next_opponent_name":"","matches_total":"22","matches_won":"6","matches_lost":"13","matches_tied":"3","score_for":"711","score_against":"780","score_difference":"-69","points":"43"},{"position":"6","team_id":"30831","team_name":"Haryana Steelers","short_name":"Haryana","original_team_name":"Haryana Steelers","zone":"","zone_id":"","prev_season":"","form":"D,L,L,L,L","next_match_id":"","next_opponent_team_id":"","next_opponent_name":"","matches_total":"22","matches_won":"6","matches_lost":"14","matches_tied":"2","score_for":"715","score_against":"806","score_difference":"-91","points":"42"}]},"home":{"table":[{"position":"1","team_id":"30830","team_name":"U Mumba","short_name":"U Mumba","original_team_name":"U Mumba","matches_total":"13","matches_won":"10","matches_lost":"3","matches_tied":"0","score_for":"473","score_against":"349","score_difference":"124","points":"52"},{"position":"2","team_id":"30825","team_name":"Dabang Delhi K.C.","short_name":"Dabang Delhi","original_team_name":"Dabang Delhi K.C.","matches_total":"13","matches_won":"6","matches_lost":"6","matches_tied":"1","score_for":"438","score_against":"447","score_difference":"-9","points":"35"},{"position":"3","team_id":"31328","team_name":"Gujarat FortuneGiants","short_name":"Gujarat","original_team_name":"Gujarat FortuneGiants","matches_total":"8","matches_won":"6","matches_lost":"1","matches_tied":"1","score_for":"280","score_against":"234","score_difference":"46","points":"34"},{"position":"4","team_id":"30826","team_name":"Jaipur Pink Panthers","short_name":"Jaipur PP","original_team_name":"Jaipur Pink Panthers","matches_total":"14","matches_won":"4","matches_lost":"7","matches_tied":"3","score_for":"466","score_against":"482","score_difference":"-16","points":"31"},{"position":"5","team_id":"30828","team_name":"Puneri Paltan","short_name":"Puneri Paltan","original_team_name":"Puneri Paltan","matches_total":"14","matches_won":"5","matches_lost":"8","matches_tied":"1","score_for":"402","score_against":"422","score_difference":"-20","points":"28"},{"position":"6","team_id":"30831","team_name":"Haryana Steelers","short_name":"Haryana","original_team_name":"Haryana Steelers","matches_total":"11","matches_won":"3","matches_lost":"7","matches_tied":"1","score_for":"362","score_against":"426","score_difference":"-64","points":"21"}]},"away":{"table":[{"position":"1","team_id":"31328","team_name":"Gujarat FortuneGiants","short_name":"Gujarat","original_team_name":"Gujarat FortuneGiants","matches_total":"14","matches_won":"11","matches_lost":"2","matches_tied":"1","score_for":"496","score_against":"425","score_difference":"71","points":"59"},{"position":"2","team_id":"30830","team_name":"U Mumba","short_name":"U Mumba","original_team_name":"U Mumba","matches_total":"9","matches_won":"5","matches_lost":"2","matches_tied":"2","score_for":"354","score_against":"289","score_difference":"65","points":"34"},{"position":"3","team_id":"30825","team_name":"Dabang Delhi K.C.","short_name":"Dabang Delhi","original_team_name":"Dabang Delhi K.C.","matches_total":"9","matches_won":"5","matches_lost":"3","matches_tied":"1","score_for":"312","score_against":"303","score_difference":"9","points":"33"},{"position":"4","team_id":"30828","team_name":"Puneri Paltan","short_name":"Puneri Paltan","original_team_name":"Puneri Paltan","matches_total":"8","matches_won":"3","matches_lost":"4","matches_tied":"1","score_for":"246","score_against":"272","score_difference":"-26","points":"24"},{"position":"5","team_id":"30831","team_name":"Haryana Steelers","short_name":"Haryana","original_team_name":"Haryana Steelers","matches_total":"11","matches_won":"3","matches_lost":"7","matches_tied":"1","score_for":"353","score_against":"380","score_difference":"-27","points":"21"},{"position":"6","team_id":"30826","team_name":"Jaipur Pink Panthers","short_name":"Jaipur PP","original_team_name":"Jaipur Pink Panthers","matches_total":"8","matches_won":"2","matches_lost":"6","matches_tied":"0","score_for":"245","score_against":"298","score_difference":"-53","points":"12"}]}},{"group_id":"6155","name":"Zone B","last_updated":"2018-08-24 12:41:13","total":{"table":[{"position":"1","team_id":"30824","team_name":"Bengaluru Bulls","short_name":"Bengaluru","original_team_name":"Bengaluru Bulls","zone":"Championship Playoffs","zone_id":"champ_playoffs","prev_season":"","form":"W,L,D,W,W","next_match_id":"","next_opponent_team_id":"","next_opponent_name":"","matches_total":"22","matches_won":"13","matches_lost":"7","matches_tied":"2","score_for":"808","score_against":"704","score_difference":"104","points":"78"},{"position":"2","team_id":"30823","team_name":"Bengal Warriors","short_name":"Bengal Warrior","original_team_name":"Bengal Warriors","zone":"Championship Playoffs","zone_id":"champ_playoffs","prev_season":"","form":"L,W,W,L,W","next_match_id":"","next_opponent_team_id":"","next_opponent_name":"","matches_total":"22","matches_won":"12","matches_lost":"8","matches_tied":"2","score_for":"697","score_against":"695","score_difference":"2","points":"69"},{"position":"3","team_id":"31331","team_name":"UP Yoddha","short_name":"UP Yoddha","original_team_name":"UP Yoddha","zone":"Championship Playoffs","zone_id":"champ_playoffs","prev_season":"","form":"W,W,W,D,W","next_match_id":"","next_opponent_team_id":"","next_opponent_name":"","matches_total":"22","matches_won":"8","matches_lost":"10","matches_tied":"4","score_for":"702","score_against":"747","score_difference":"-45","points":"57"},{"position":"4","team_id":"30827","team_name":"Patna Pirates","short_name":"Patna Pirates","original_team_name":"Patna Pirates","zone":"","zone_id":"","prev_season":"","form":"L,L,D,L,L","next_match_id":"","next_opponent_team_id":"","next_opponent_name":"","matches_total":"22","matches_won":"9","matches_lost":"11","matches_tied":"2","score_for":"799","score_against":"835","score_difference":"-36","points":"55"},{"position":"5","team_id":"30829","team_name":"Telugu Titans","short_name":"Telugu Titans","original_team_name":"Telugu Titans","zone":"","zone_id":"","prev_season":"","form":"L,L,L,W,L","next_match_id":"","next_opponent_team_id":"","next_opponent_name":"","matches_total":"22","matches_won":"8","matches_lost":"13","matches_tied":"1","score_for":"647","score_against":"702","score_difference":"-55","points":"51"},{"position":"6","team_id":"31330","team_name":"Tamil Thalaivas","short_name":"Tamil Thalaiva","original_team_name":"Tamil Thalaivas","zone":"","zone_id":"","prev_season":"","form":"D,L,D,L,L","next_match_id":"","next_opponent_team_id":"","next_opponent_name":"","matches_total":"22","matches_won":"5","matches_lost":"13","matches_tied":"4","score_for":"671","score_against":"741","score_difference":"-70","points":"42"}]},"home":{"table":[{"position":"1","team_id":"30827","team_name":"Patna Pirates","short_name":"Patna Pirates","original_team_name":"Patna Pirates","matches_total":"15","matches_won":"7","matches_lost":"7","matches_tied":"1","score_for":"572","score_against":"568","score_difference":"4","points":"39"},{"position":"2","team_id":"30823","team_name":"Bengal Warriors","short_name":"Bengal Warrior","original_team_name":"Bengal Warriors","matches_total":"9","matches_won":"7","matches_lost":"2","matches_tied":"0","score_for":"286","score_against":"261","score_difference":"25","points":"37"},{"position":"3","team_id":"30824","team_name":"Bengaluru Bulls","short_name":"Bengaluru","original_team_name":"Bengaluru Bulls","matches_total":"9","matches_won":"6","matches_lost":"3","matches_tied":"0","score_for":"337","score_against":"284","score_difference":"53","points":"34"},{"position":"4","team_id":"30829","team_name":"Telugu Titans","short_name":"Telugu Titans","original_team_name":"Telugu Titans","matches_total":"7","matches_won":"4","matches_lost":"3","matches_tied":"0","score_for":"217","score_against":"215","score_difference":"2","points":"26"},{"position":"5","team_id":"31330","team_name":"Tamil Thalaivas","short_name":"Tamil Thalaiva","original_team_name":"Tamil Thalaivas","matches_total":"10","matches_won":"3","matches_lost":"5","matches_tied":"2","score_for":"315","score_against":"332","score_difference":"-17","points":"24"},{"position":"6","team_id":"31331","team_name":"UP Yoddha","short_name":"UP Yoddha","original_team_name":"UP Yoddha","matches_total":"9","matches_won":"1","matches_lost":"4","matches_tied":"4","score_for":"272","score_against":"311","score_difference":"-39","points":"20"}]},"away":{"table":[{"position":"1","team_id":"30824","team_name":"Bengaluru Bulls","short_name":"Bengaluru","original_team_name":"Bengaluru Bulls","matches_total":"13","matches_won":"7","matches_lost":"4","matches_tied":"2","score_for":"471","score_against":"420","score_difference":"51","points":"44"},{"position":"2","team_id":"31331","team_name":"UP Yoddha","short_name":"UP Yoddha","original_team_name":"UP Yoddha","matches_total":"13","matches_won":"7","matches_lost":"6","matches_tied":"0","score_for":"430","score_against":"436","score_difference":"-6","points":"37"},{"position":"3","team_id":"30823","team_name":"Bengal Warriors","short_name":"Bengal Warrior","original_team_name":"Bengal Warriors","matches_total":"13","matches_won":"5","matches_lost":"6","matches_tied":"2","score_for":"411","score_against":"434","score_difference":"-23","points":"32"},{"position":"4","team_id":"30829","team_name":"Telugu Titans","short_name":"Telugu Titans","original_team_name":"Telugu Titans","matches_total":"15","matches_won":"4","matches_lost":"10","matches_tied":"1","score_for":"430","score_against":"487","score_difference":"-57","points":"25"},{"position":"5","team_id":"31330","team_name":"Tamil Thalaivas","short_name":"Tamil Thalaiva","original_team_name":"Tamil Thalaivas","matches_total":"12","matches_won":"2","matches_lost":"8","matches_tied":"2","score_for":"356","score_against":"409","score_difference":"-53","points":"18"},{"position":"6","team_id":"30827","team_name":"Patna Pirates","short_name":"Patna Pirates","original_team_name":"Patna Pirates","matches_total":"7","matches_won":"2","matches_lost":"4","matches_tied":"1","score_for":"227","score_against":"267","score_difference":"-40","points":"16"}]}}]}}}}}