No Subscription to this function
GET /rugby/get_season_team
Returns all teams which are of the seasons
Request URL
https://dsg-api.com/clients/{client_name}/rugby/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 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.
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
team
basic team informations
gender
gender of the team ('male', 'male youth', 'female' or 'female youth')
last_updated
when record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
original_team_name
original team name during the season
short_name
short name of the team.
status
The current status of the team ('active' or 'defunct')
team_id
Unique identifier for team
team_logo
full path URL of team logo
team_name
current team name
type
Determines the type of team ('national' or 'club')
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}/rugby/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}/rugby/get_season_team?season_id={season_id}&client={client_name}&authkey={client_authkey}"
response = requests.get("https://dsg-api.com/clients/{client_name}/rugby/get_season_team?season_id={season_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"1.0","sport":"rugby","lang":"","method":{"method_id":"102","name":"get_season_team"},"competition":{"competition_id":"1034","name":"Top 14","teamtype":"male","type":"club","format":"domestic_league","area_id":"76","area_name":"France","last_updated":"2018-07-12 11:01:50","season":{"season_id":"17159","title":"2018\/2019","original_name":"Top 14","start_date":"2018-08-25","end_date":"2019-06-02","logo":"https:\/\/www.dsg-images.com\/comps\/200x200\/1034.png","last_updated":"2018-08-24 08:48:18","team":[{"team_id":"30744","team_name":"ASM Clermont Auvergne","original_team_name":"ASM Clermont Auvergne","short_name":"Clermont","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/30744.png","last_updated":"2017-05-19 15:09:14"},{"team_id":"30743","team_name":"Castres Olympique","original_team_name":"Castres Olympique","short_name":"Castres Olymp.","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/30743.png","last_updated":"2017-05-19 15:07:57"},{"team_id":"30745","team_name":"FC Grenoble","original_team_name":"FC Grenoble","short_name":"FC Grenoble","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/30745.png","last_updated":"2017-05-19 15:11:05"},{"team_id":"30746","team_name":"Lyon OU","original_team_name":"Lyon OU","short_name":"Lyon OU","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/30746.png","last_updated":"2017-05-19 15:11:58"},{"team_id":"30747","team_name":"Montpellier Hérault Rugby","original_team_name":"Montpellier Hérault Rugby","short_name":"Montpellier","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/30747.png","last_updated":"2017-05-19 15:13:09"},{"team_id":"30749","team_name":"Racing 92","original_team_name":"Racing 92","short_name":"Racing 92","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/30749.png","last_updated":"2017-05-19 15:14:58"},{"team_id":"30752","team_name":"RC Toulonnais","original_team_name":"RC Toulonnais","short_name":"RC Toulonnais","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/30752.png","last_updated":"2017-05-19 15:17:44"},{"team_id":"30748","team_name":"Section Paloise","original_team_name":"Section Paloise","short_name":"Section Palois","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/30748.png","last_updated":"2017-05-19 15:14:04"},{"team_id":"30751","team_name":"Stade Français","original_team_name":"Stade Français","short_name":"Stade Français","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/30751.png","last_updated":"2017-05-19 15:16:51"},{"team_id":"30750","team_name":"Stade Rochelais","original_team_name":"Stade Rochelais","short_name":"Stade Rochel.","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/30750.png","last_updated":"2017-05-19 15:15:53"},{"team_id":"30753","team_name":"Stade Toulousain","original_team_name":"Stade Toulousain","short_name":"St. Toulousain","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/30753.png","last_updated":"2017-05-19 15:18:49"},{"team_id":"37085","team_name":"SU Agen","original_team_name":"SU Agen","short_name":"SU Agen","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/37085.png","last_updated":"2018-07-11 18:54:54"},{"team_id":"30741","team_name":"Union Bordeaux Bègles","original_team_name":"Union Bordeaux Bègles","short_name":"Union Bordeaux","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/30741.png","last_updated":"2017-05-19 15:06:29"},{"team_id":"35744","team_name":"USA Perpignan","original_team_name":"USA Perpignan","short_name":"Perpignan","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/35744.png","last_updated":"2018-02-25 22:25:19"}]},"rounds":[{"round_id":"23205","name":"Pre Playoff","start_date":"2019-05-31","end_date":"2019-05-31","current_gameweek":"27","last_updated":"2018-07-15 21:12:59","team":[{"team_id":"30746","team_name":"Lyon OU","original_team_name":"Lyon OU","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-05-19 15:11:58"},{"team_id":"30747","team_name":"Montpellier Hérault Rugby","original_team_name":"Montpellier Hérault Rugby","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-05-19 15:13:09"},{"team_id":"30749","team_name":"Racing 92","original_team_name":"Racing 92","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-05-19 15:14:58"},{"team_id":"30750","team_name":"Stade Rochelais","original_team_name":"Stade Rochelais","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-05-19 15:15:53"}]},{"round_id":"23206","name":"Semi-finals","start_date":"2019-06-07","end_date":"2019-06-07","current_gameweek":"","last_updated":"2018-07-15 21:12:59","team":[{"team_id":"30744","team_name":"ASM Clermont Auvergne","original_team_name":"ASM Clermont Auvergne","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-05-19 15:09:14"},{"team_id":"30746","team_name":"Lyon OU","original_team_name":"Lyon OU","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-05-19 15:11:58"},{"team_id":"30750","team_name":"Stade Rochelais","original_team_name":"Stade Rochelais","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-05-19 15:15:53"},{"team_id":"30753","team_name":"Stade Toulousain","original_team_name":"Stade Toulousain","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-05-19 15:18:49"}]},{"round_id":"23207","name":"Final","start_date":"2019-06-14","end_date":"2019-06-14","current_gameweek":"","last_updated":"2018-07-15 21:12:59","team":[{"team_id":"30744","team_name":"ASM Clermont Auvergne","original_team_name":"ASM Clermont Auvergne","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-05-19 15:09:14"},{"team_id":"30753","team_name":"Stade Toulousain","original_team_name":"Stade Toulousain","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-05-19 15:18:49"}]}]}}}