No Subscription to this function
GET /kabaddi/get_seasons
Returns all (authorized) seasons (that have been recently updated).
Request URL
https://dsg-api.com/clients/{client_name}/kabaddi/get_seasons?comp_id={competition_id}&client={client_name}&authkey={client_authkey}
Parameters
authkey
string Required
client authentification key
client
string Required
unique client ID
comp_id
int Required
competition id to get seasons from
ftype
string
changes feed type from XML to json (ftype=json)
lang
string
two-character language code, defaults to 'en'
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.
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
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}/kabaddi/get_seasons?comp_id={competition_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_seasons?comp_id={competition_id}&client={client_name}&authkey={client_authkey}"
response = requests.get("https://dsg-api.com/clients/{client_name}/kabaddi/get_seasons?comp_id={competition_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":"89","name":"get_seasons"},"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":"22192","title":"Season 7","original_name":"VIVO Pro Kabaddi League","start_date":"2019-07-20","end_date":"2019-10-19","logo":"https:\/\/www.dsg-images.com\/comps\/100x100\/1259.png","last_updated":"2019-06-23 12:41:57"},{"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\/100x100\/1259.png","last_updated":"2018-08-24 12:40:12"},{"season_id":"13286","title":"Season 5","original_name":"Vivo Pro Kabaddi","start_date":"2017-07-28","end_date":"2017-10-28","logo":"https:\/\/www.dsg-images.com\/comps\/100x100\/1259.png","last_updated":"2017-07-06 13:18:06"},{"season_id":"13287","title":"Season 4","original_name":"Vivo Pro Kabaddi","start_date":"2016-06-25","end_date":"2016-07-31","logo":"https:\/\/www.dsg-images.com\/comps\/100x100\/1259.png","last_updated":"2017-05-29 20:57:32"},{"season_id":"13288","title":"Season 3","original_name":"Star Sports Pro Kabaddi","start_date":"2016-01-30","end_date":"2016-03-05","logo":"https:\/\/www.dsg-images.com\/comps\/100x100\/1259.png","last_updated":"2017-05-29 20:56:49"},{"season_id":"13289","title":"Season 2","original_name":"Star Sports Pro Kabaddi","start_date":"2015-07-18","end_date":"2015-08-23","logo":"https:\/\/www.dsg-images.com\/comps\/100x100\/1259.png","last_updated":"2017-05-29 20:56:36"},{"season_id":"13290","title":"Season 1","original_name":"Star Sports Pro Kabaddi","start_date":"2014-07-26","end_date":"2014-08-31","logo":"https:\/\/www.dsg-images.com\/comps\/100x100\/1259.png","last_updated":"2017-05-29 20:56:24"}]}}}