No Subscription to this function
GET /american_football/get_season_team
Returns all teams which are of the seasons
Request URL
https://dsg-api.com/clients/{client_name}/american_football/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}/american_football/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}/american_football/get_season_team?season_id={season_id}&client={client_name}&authkey={client_authkey}"
response = requests.get("https://dsg-api.com/clients/{client_name}/american_football/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":"american_football","lang":"","method":{"method_id":"69","name":"get_season_team"},"competition":{"competition_id":"1","name":"NFL","teamtype":"male","type":"club","format":"domestic_league","area_id":"203","area_name":"United States","last_updated":"2019-01-05 03:12:48","season":{"season_id":"15914","title":"2018\/2019","original_name":"NFL","start_date":"2018-09-06","end_date":"2019-02-04","logo":"https:\/\/www.dsg-images.com\/comps\/200x200\/1.png","last_updated":"2018-04-20 13:09:48","team":[{"team_id":"30","team_name":"Arizona Cardinals","original_team_name":"Arizona Cardinals","short_name":"Cardinals","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/30.png","last_updated":"2016-09-18 21:41:14"},{"team_id":"25","team_name":"Atlanta Falcons","original_team_name":"Atlanta Falcons","short_name":"Falcons","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25.png","last_updated":"2016-09-18 21:40:25"},{"team_id":"7","team_name":"Baltimore Ravens","original_team_name":"Baltimore Ravens","short_name":"Ravens","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/7.png","last_updated":"2016-09-18 21:37:57"},{"team_id":"4","team_name":"Buffalo Bills","original_team_name":"Buffalo Bills","short_name":"Bills","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/4.png","last_updated":"2016-09-18 21:37:31"},{"team_id":"28","team_name":"Carolina Panthers","original_team_name":"Carolina Panthers","short_name":"Panthers","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/28.png","last_updated":"2016-09-18 21:40:58"},{"team_id":"21","team_name":"Chicago Bears","original_team_name":"Chicago Bears","short_name":"Bears","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/21.png","last_updated":"2016-09-18 21:39:54"},{"team_id":"6","team_name":"Cincinnati Bengals","original_team_name":"Cincinnati Bengals","short_name":"Bengals","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/6.png","last_updated":"2016-09-18 21:37:51"},{"team_id":"8","team_name":"Cleveland Browns","original_team_name":"Cleveland Browns","short_name":"Browns","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/8.png","last_updated":"2016-09-18 21:38:03"},{"team_id":"20","team_name":"Dallas Cowboys","original_team_name":"Dallas Cowboys","short_name":"Cowboys","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/20.png","last_updated":"2016-09-18 21:39:46"},{"team_id":"15","team_name":"Denver Broncos","original_team_name":"Denver Broncos","short_name":"Broncos","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/15.png","last_updated":"2016-09-18 21:39:14"},{"team_id":"24","team_name":"Detroit Lions","original_team_name":"Detroit Lions","short_name":"Lions","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/24.png","last_updated":"2016-09-18 21:40:19"},{"team_id":"22","team_name":"Green Bay Packers","original_team_name":"Green Bay Packers","short_name":"Packers","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/22.png","last_updated":"2017-09-05 16:34:24"},{"team_id":"9","team_name":"Houston Texans","original_team_name":"Houston Texans","short_name":"Texans","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/9.png","last_updated":"2016-09-18 21:38:19"},{"team_id":"11","team_name":"Indianapolis Colts","original_team_name":"Indianapolis Colts","short_name":"Colts","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/11.png","last_updated":"2016-09-18 21:38:31"},{"team_id":"12","team_name":"Jacksonville Jaguars","original_team_name":"Jacksonville Jaguars","short_name":"Jaguars","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/12.png","last_updated":"2016-09-18 21:38:50"},{"team_id":"13","team_name":"Kansas City Chiefs","original_team_name":"Kansas City Chiefs","short_name":"Chiefs","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/13.png","last_updated":"2017-09-05 16:41:43"},{"team_id":"16","team_name":"Los Angeles Chargers","original_team_name":"Los Angeles Chargers","short_name":"Chargers","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/16.png","last_updated":"2017-09-05 16:42:31"},{"team_id":"31","team_name":"Los Angeles Rams","original_team_name":"Los Angeles Rams","short_name":"LA Rams","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/31.png","last_updated":"2017-09-05 16:44:21"},{"team_id":"3","team_name":"Miami Dolphins","original_team_name":"Miami Dolphins","short_name":"Dolphins","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/3.png","last_updated":"2016-09-18 21:37:15"},{"team_id":"23","team_name":"Minnesota Vikings","original_team_name":"Minnesota Vikings","short_name":"Vikings","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/23.png","last_updated":"2016-09-18 21:40:13"},{"team_id":"2","team_name":"New England Patriots","original_team_name":"New England Patriots","short_name":"Patriots","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/2.png","last_updated":"2017-09-05 16:39:27"},{"team_id":"27","team_name":"New Orleans Saints","original_team_name":"New Orleans Saints","short_name":"Saints","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/27.png","last_updated":"2017-09-05 16:43:57"},{"team_id":"19","team_name":"New York Giants","original_team_name":"New York Giants","short_name":"Giants","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/19.png","last_updated":"2016-09-18 21:39:40"},{"team_id":"1","team_name":"New York Jets","original_team_name":"New York Jets","short_name":"Jets","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/1.png","last_updated":"2016-09-18 21:36:39"},{"team_id":"14","team_name":"Oakland Raiders","original_team_name":"Oakland Raiders","short_name":"Raiders","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/14.png","last_updated":"2016-09-18 21:39:08"},{"team_id":"17","team_name":"Philadelphia Eagles","original_team_name":"Philadelphia Eagles","short_name":"Eagles","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/17.png","last_updated":"2016-09-18 21:39:28"},{"team_id":"5","team_name":"Pittsburgh Steelers","original_team_name":"Pittsburgh Steelers","short_name":"Steelers","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/5.png","last_updated":"2016-09-18 21:37:39"},{"team_id":"32","team_name":"San Francisco 49ers","original_team_name":"San Francisco 49ers","short_name":"49ers","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/32.png","last_updated":"2017-09-05 16:44:30"},{"team_id":"29","team_name":"Seattle Seahawks","original_team_name":"Seattle Seahawks","short_name":"Seahawks","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/29.png","last_updated":"2016-09-18 21:41:04"},{"team_id":"26","team_name":"Tampa Bay Buccaneers","original_team_name":"Tampa Bay Buccaneers","short_name":"Buccaneers","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/26.png","last_updated":"2017-09-05 16:43:49"},{"team_id":"10","team_name":"Tennessee Titans","original_team_name":"Tennessee Titans","short_name":"Titans","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/10.png","last_updated":"2016-09-18 21:38:25"},{"team_id":"18","team_name":"Washington Redskins","original_team_name":"Washington Redskins","short_name":"Redskins","type":"club","gender":"male","status":"active","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/18.png","last_updated":"2016-09-18 21:39:34"}]},"rounds":[{"round_id":"21522","name":"AFC Wild Card","start_date":"2019-01-05","end_date":"2019-01-07","current_gameweek":"","last_updated":"2018-04-20 13:18:36","team":[{"team_id":"7","team_name":"Baltimore Ravens","original_team_name":"Baltimore Ravens","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-18 21:37:57"},{"team_id":"9","team_name":"Houston Texans","original_team_name":"Houston Texans","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-18 21:38:19"},{"team_id":"11","team_name":"Indianapolis Colts","original_team_name":"Indianapolis Colts","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-18 21:38:31"},{"team_id":"16","team_name":"Los Angeles Chargers","original_team_name":"Los Angeles Chargers","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-09-05 16:42:31"}]},{"round_id":"21523","name":"NFC Wild Card","start_date":"2019-01-05","end_date":"2019-01-07","current_gameweek":"","last_updated":"2018-04-20 13:19:03","team":[{"team_id":"17","team_name":"Philadelphia Eagles","original_team_name":"Philadelphia Eagles","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-18 21:39:28"},{"team_id":"20","team_name":"Dallas Cowboys","original_team_name":"Dallas Cowboys","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-18 21:39:46"},{"team_id":"21","team_name":"Chicago Bears","original_team_name":"Chicago Bears","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-18 21:39:54"},{"team_id":"29","team_name":"Seattle Seahawks","original_team_name":"Seattle Seahawks","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-18 21:41:04"}]},{"round_id":"21524","name":"AFC Divisional Play-offs","start_date":"2019-01-12","end_date":"2019-01-14","current_gameweek":"","last_updated":"2018-04-20 13:20:29","team":[{"team_id":"2","team_name":"New England Patriots","original_team_name":"New England Patriots","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-09-05 16:39:27"},{"team_id":"11","team_name":"Indianapolis Colts","original_team_name":"Indianapolis Colts","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-18 21:38:31"},{"team_id":"13","team_name":"Kansas City Chiefs","original_team_name":"Kansas City Chiefs","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-09-05 16:41:43"},{"team_id":"16","team_name":"Los Angeles Chargers","original_team_name":"Los Angeles Chargers","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-09-05 16:42:31"}]},{"round_id":"21525","name":"NFC Divisional Play-offs","start_date":"2019-01-12","end_date":"2019-01-14","current_gameweek":"","last_updated":"2018-04-20 13:20:20","team":[{"team_id":"17","team_name":"Philadelphia Eagles","original_team_name":"Philadelphia Eagles","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-18 21:39:28"},{"team_id":"20","team_name":"Dallas Cowboys","original_team_name":"Dallas Cowboys","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2016-09-18 21:39:46"},{"team_id":"27","team_name":"New Orleans Saints","original_team_name":"New Orleans Saints","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-09-05 16:43:57"},{"team_id":"31","team_name":"Los Angeles Rams","original_team_name":"Los Angeles Rams","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-09-05 16:44:21"}]},{"round_id":"21526","name":"NFC Championship","start_date":"2019-01-20","end_date":"2019-01-21","current_gameweek":"","last_updated":"2018-04-20 13:21:59","team":[{"team_id":"27","team_name":"New Orleans Saints","original_team_name":"New Orleans Saints","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-09-05 16:43:57"},{"team_id":"31","team_name":"Los Angeles Rams","original_team_name":"Los Angeles Rams","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-09-05 16:44:21"}]},{"round_id":"21527","name":"AFC Championship","start_date":"2019-01-20","end_date":"2019-01-21","current_gameweek":"","last_updated":"2018-04-20 13:21:59","team":[{"team_id":"2","team_name":"New England Patriots","original_team_name":"New England Patriots","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-09-05 16:39:27"},{"team_id":"13","team_name":"Kansas City Chiefs","original_team_name":"Kansas City Chiefs","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-09-05 16:41:43"}]},{"round_id":"21528","name":"Super Bowl","start_date":"2019-02-03","end_date":"2019-02-04","current_gameweek":"","last_updated":"2018-04-20 13:22:29","team":[{"team_id":"2","team_name":"New England Patriots","original_team_name":"New England Patriots","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-09-05 16:39:27"},{"team_id":"31","team_name":"Los Angeles Rams","original_team_name":"Los Angeles Rams","type":"club","gender":"male","status":"active","team_logo":"","last_updated":"2017-09-05 16:44:21"}]}]}}}