No Subscription to this function
GET /soccer/get_team
Returns a list of team details selected from team or season
Request URL
https://dsg-api.com/clients/{client_name}/soccer/soccer/get_team?team={team_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)
lang
string
two-character language code, defaults to 'en'
team
int Required
team id to get details from
Nodes
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
match
Details about next matches of the particular team
attendance
amount of people that attended the particular match
competition_id
unique identifier for a competition.
competition_name
name of the competition.
date
Date of match, format 'yyyy-mm-dd' (CET)
date_utc
Date of match, format 'yyyy-mm-dd' (UTC)
gameweek
contains the gameweek a match belongs to.
last_updated
when record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
match_id
unique identifier of match.
round_id
unique identifier of round
season_id
unique identifier of season
team_a_country
three-letter-acronym of the area where the home team origins.
team_a_id
unique team ID for the home team.
team_a_logo
URL to the team logo
team_a_name
current name of the home team.
team_a_original_name
the real name at the particular season (so can differ to current name)
team_a_short_name
short name of the home team.
team_a_tla_name
three-letter-acronym of the home team.
team_b_country
three-letter-acronym of the area where the home team origins.
team_b_id
unique team ID for the away team.
team_b_logo
URL to the team logo
team_b_name
current name of the away team.
team_b_original_name
the real name at the particular season (so can differ to current name)
team_b_short_name
short name of the away team.
team_b_tla_name
three-letter-acronym of the away team.
time
start time (CET), format 'hh:mm:ss'.
time_utc
start time (UTC), format 'hh:mm:ss'.
venue_city
city where the venue is based
venue_id
unique identifier of the venue
venue_name
current name of the venue
venue_type
determines if the match is on neutral ground or on home/away basis
method
details about the API function
method_id
unique ID of method.
name
name of method.
related_team
Details about related teams
order
can be used to order the related teams (ascending)
team_id
unique team ID for the team
team_name
current name of the team.
type
type of relation to the main team (reserve, youth, women, related)
team
Basic details about a team
area_id
Unique identifier for area.
area_name
name of area the team is located
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.
short_name
short name of the team.
status
The current status of the team ('active' or 'defunct')
team_id
unique team ID for the team.
team_name
current name of the team.
tla_name
three letter acronym for this team
type
Determines the type of team ('national' or 'club')
team_extra
Extra details about a team
adress
Name of street and street number
adress_city
Name of the city
adress_zip
ZIP code
club_colors
Original colors of club (seperated with / )
email
Official e-mail address.
fax
Fax number
founded
Year club was founded. Format 'yyyy'
nicknames
nickname of the club. Can contain until 3 different ones seperated with a "/"
official_name
The official name of a team
primary_venue_id
venue_id of the home venue or primary used one for the particular team
primary_venue_name
venue name of the home venue or primary used one for the particular team
team_logo
full path URL of team logo
tel
Telephone number
website
Official website address (URL).
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}/soccer/soccer/get_team?team={team_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}/soccer/soccer/get_team?team={team_id}&client={client_name}&authkey={client_authkey}"
response = requests.get("https://dsg-api.com/clients/{client_name}/soccer/soccer/get_team?team={team_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"2.0","sport":"soccer","lang":"en","method":{"method_id":"8","name":"get_team"},"team":{"team_id":"459","team_name":"Wolverhampton Wanderers FC","short_name":"Wolverhampton","tla_name":"WOL","type":"club","gender":"male","status":"active","area_id":"68","area_name":"England","last_updated":"2019-03-30 14:43:57","related_team":[{"team_id":"28117","type":"youth","order":"1","team_name":"Wolverhampton Wanderers FC U23"},{"team_id":"28047","type":"youth","order":"2","team_name":"Wolverhampton Wanderers FC U21"},{"team_id":"39879","type":"youth","order":"3","team_name":"Wolverhampton Wanderers FC U18"}],"team_extra":{"adress":"Waterloo Road","adress_zip":"WV1 4QR","adress_city":"Wolverhampton","tel":"+44 (0871) 2222220","fax":"","website":"http:\/\/www.wolves.co.uk","email":"info@wolves.co.uk","official_name":"Wolverhampton Wanderers Football Club","founded":"1877","club_colors":"Black \/ Gold","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/459.png","nicknames":"Wolves \/ The Wanderers","primary_venue_id":"749","primary_venue_name":"Molineux Stadium"},"team_social_media":{"facebook":"https:\/\/www.facebook.com\/Wolves\/","twitter":"https:\/\/twitter.com\/Wolves","youtube":"https:\/\/www.youtube.com\/user\/Wolves","google_plus":"","instagram":"https:\/\/instagram.com\/Wolves","vk":""},"last_matches":{"match":[{"match_id":"1344179","date":"2019-04-24","time":"20:45:00","date_utc":"2019-04-24","time_utc":"18:45:00","team_a_id":"459","team_a_name":"Wolverhampton Wanderers FC","team_a_short_name":"Wolverhampton","team_a_tla_name":"WOL","team_a_original_name":"Wolverhampton Wanderers FC","team_a_area_id":"68","team_a_country":"ENG","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/459.png","team_b_id":"467","team_b_name":"Arsenal FC","team_b_short_name":"Arsenal","team_b_tla_name":"ARS","team_b_original_name":"Arsenal FC","team_b_area_id":"68","team_b_country":"ENG","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/467.png","status":"Played","gameweek":"31","winner":"team_A","score_a":"3","score_b":"1","p1s_a":"3","p1s_b":"0","p2s_a":"0","p2s_b":"1","ets_a":"","ets_b":"","pen_a":"","pen_b":"","venue_type":"home_away","final_period":"soc_p2s","attendance":"31436","venue_id":"749","venue_name":"Molineux Stadium","venue_city":"Wolverhampton","competition_id":"2","competition_name":"Premier League","season_id":"16336","round_id":"22226","last_updated":"2019-04-24 23:43:09"},{"match_id":"1344229","date":"2019-04-27","time":"16:00:00","date_utc":"2019-04-27","time_utc":"14:00:00","team_a_id":"511","team_a_name":"Watford FC","team_a_short_name":"Watford","team_a_tla_name":"WAT","team_a_original_name":"Watford FC","team_a_area_id":"68","team_a_country":"ENG","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/511.png","team_b_id":"459","team_b_name":"Wolverhampton Wanderers FC","team_b_short_name":"Wolverhampton","team_b_tla_name":"WOL","team_b_original_name":"Wolverhampton Wanderers FC","team_b_area_id":"68","team_b_country":"ENG","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/459.png","status":"Played","gameweek":"36","winner":"team_B","score_a":"1","score_b":"2","p1s_a":"0","p1s_b":"1","p2s_a":"1","p2s_b":"1","ets_a":"","ets_b":"","pen_a":"","pen_b":"","venue_type":"home_away","final_period":"soc_p2s","attendance":"20323","venue_id":"756","venue_name":"Vicarage Road Stadium","venue_city":"Watford","competition_id":"2","competition_name":"Premier League","season_id":"16336","round_id":"22226","last_updated":"2019-04-27 18:58:10"},{"match_id":"1344239","date":"2019-05-04","time":"16:00:00","date_utc":"2019-05-04","time_utc":"14:00:00","team_a_id":"459","team_a_name":"Wolverhampton Wanderers FC","team_a_short_name":"Wolverhampton","team_a_tla_name":"WOL","team_a_original_name":"Wolverhampton Wanderers FC","team_a_area_id":"68","team_a_country":"ENG","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/459.png","team_b_id":"460","team_b_name":"Fulham FC","team_b_short_name":"Fulham","team_b_tla_name":"FUL","team_b_original_name":"Fulham FC","team_b_area_id":"68","team_b_country":"ENG","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/460.png","status":"Played","gameweek":"37","winner":"team_A","score_a":"1","score_b":"0","p1s_a":"0","p1s_b":"0","p2s_a":"1","p2s_b":"0","ets_a":"","ets_b":"","pen_a":"","pen_b":"","venue_type":"home_away","final_period":"soc_p2s","attendance":"30456","venue_id":"749","venue_name":"Molineux Stadium","venue_city":"Wolverhampton","competition_id":"2","competition_name":"Premier League","season_id":"16336","round_id":"22226","last_updated":"2019-05-04 20:53:37"},{"match_id":"1344245","date":"2019-05-12","time":"16:00:00","date_utc":"2019-05-12","time_utc":"14:00:00","team_a_id":"462","team_a_name":"Liverpool FC","team_a_short_name":"Liverpool","team_a_tla_name":"LIV","team_a_original_name":"Liverpool FC","team_a_area_id":"68","team_a_country":"ENG","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/462.png","team_b_id":"459","team_b_name":"Wolverhampton Wanderers FC","team_b_short_name":"Wolverhampton","team_b_tla_name":"WOL","team_b_original_name":"Wolverhampton Wanderers FC","team_b_area_id":"68","team_b_country":"ENG","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/459.png","status":"Played","gameweek":"38","winner":"team_A","score_a":"2","score_b":"0","p1s_a":"1","p1s_b":"0","p2s_a":"1","p2s_b":"0","ets_a":"","ets_b":"","pen_a":"","pen_b":"","venue_type":"home_away","final_period":"soc_p2s","attendance":"53331","venue_id":"150","venue_name":"Anfield","venue_city":"Liverpool","competition_id":"2","competition_name":"Premier League","season_id":"16336","round_id":"22226","last_updated":"2019-05-12 20:03:28"},{"match_id":"1650524","date":"2019-07-25","time":"20:45:00","date_utc":"2019-07-25","time_utc":"18:45:00","team_a_id":"459","team_a_name":"Wolverhampton Wanderers FC","team_a_short_name":"Wolverhampton","team_a_tla_name":"WOL","team_a_original_name":"Wolverhampton Wanderers FC","team_a_area_id":"68","team_a_country":"ENG","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/459.png","team_b_id":"18571","team_b_name":"Crusaders FC","team_b_short_name":"Crusaders","team_b_tla_name":"CRU","team_b_original_name":"Crusaders FC","team_b_area_id":"145","team_b_country":"NIR","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/18571.png","status":"Played","gameweek":"","winner":"team_A","score_a":"2","score_b":"0","p1s_a":"1","p1s_b":"0","p2s_a":"1","p2s_b":"0","ets_a":"","ets_b":"","pen_a":"","pen_b":"","venue_type":"home_away","final_period":"soc_p2s","attendance":"29708","venue_id":"749","venue_name":"Molineux Stadium","venue_city":"Wolverhampton","competition_id":"401","competition_name":"UEFA Europa League","season_id":"21572","round_id":"32408","last_updated":"2019-08-01 16:12:14"},{"match_id":"1650525","date":"2019-08-01","time":"21:00:00","date_utc":"2019-08-01","time_utc":"19:00:00","team_a_id":"18571","team_a_name":"Crusaders FC","team_a_short_name":"Crusaders","team_a_tla_name":"CRU","team_a_original_name":"Crusaders FC","team_a_area_id":"145","team_a_country":"NIR","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/18571.png","team_b_id":"459","team_b_name":"Wolverhampton Wanderers FC","team_b_short_name":"Wolverhampton","team_b_tla_name":"WOL","team_b_original_name":"Wolverhampton Wanderers FC","team_b_area_id":"68","team_b_country":"ENG","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/459.png","status":"Played","gameweek":"","winner":"team_B","score_a":"1","score_b":"4","p1s_a":"1","p1s_b":"3","p2s_a":"0","p2s_b":"1","ets_a":"","ets_b":"","pen_a":"","pen_b":"","venue_type":"home_away","final_period":"soc_p2s","attendance":"2700","venue_id":"1044","venue_name":"Seaview","venue_city":"Belfast","competition_id":"401","competition_name":"UEFA Europa League","season_id":"21572","round_id":"32408","last_updated":"2019-08-04 10:24:33"}]},"next_matches":{"match":[{"match_id":"1747048","date":"2019-08-08","time":"18:00:00","date_utc":"2019-08-08","time_utc":"16:00:00","team_a_id":"15259","team_a_name":"FC Pyunik Yerevan","team_a_short_name":"Pyunik","team_a_tla_name":"PYU","team_a_original_name":"FC Pyunik Yerevan","team_a_country":"ARM","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/15259.png","team_b_id":"459","team_b_name":"Wolverhampton Wanderers FC","team_b_short_name":"Wolverhampton","team_b_tla_name":"WOL","team_b_original_name":"Wolverhampton Wanderers FC","team_b_country":"ENG","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/459.png","status":"Fixture","gameweek":"","winner":"yet unknown","score_a":"","score_b":"","p1s_a":"","p1s_b":"","p2s_a":"","p2s_b":"","ets_a":"","ets_b":"","pen_a":"","pen_b":"","venue_type":"home_away","final_period":"soc_p2s","attendance":"","venue_id":"1104","venue_name":"Vazgen Sargsyan anvan Hanrapetakan Marzadasht","venue_city":"Yerevan","competition_id":"401","competition_name":"UEFA Europa League","season_id":"21572","round_id":"32409","last_updated":"2019-08-02 19:43:03"},{"match_id":"1643607","date":"2019-08-11","time":"15:00:00","date_utc":"2019-08-11","time_utc":"13:00:00","team_a_id":"489","team_a_name":"Leicester City FC","team_a_short_name":"Leicester City","team_a_tla_name":"LEI","team_a_original_name":"Leicester City FC","team_a_country":"ENG","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/489.png","team_b_id":"459","team_b_name":"Wolverhampton Wanderers FC","team_b_short_name":"Wolverhampton","team_b_tla_name":"WOL","team_b_original_name":"Wolverhampton Wanderers FC","team_b_country":"ENG","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/459.png","status":"Fixture","gameweek":"1","winner":"yet unknown","score_a":"","score_b":"","p1s_a":"","p1s_b":"","p2s_a":"","p2s_b":"","ets_a":"","ets_b":"","pen_a":"","pen_b":"","venue_type":"home_away","final_period":"soc_p2s","attendance":"","venue_id":"370","venue_name":"King Power Stadium","venue_city":"Leicester","competition_id":"2","competition_name":"Premier League","season_id":"21558","round_id":"32365","last_updated":"2019-08-05 15:04:41"},{"match_id":"1747049","date":"2019-08-15","time":"20:45:00","date_utc":"2019-08-15","time_utc":"18:45:00","team_a_id":"459","team_a_name":"Wolverhampton Wanderers FC","team_a_short_name":"Wolverhampton","team_a_tla_name":"WOL","team_a_original_name":"Wolverhampton Wanderers FC","team_a_country":"ENG","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/459.png","team_b_id":"15259","team_b_name":"FC Pyunik Yerevan","team_b_short_name":"Pyunik","team_b_tla_name":"PYU","team_b_original_name":"FC Pyunik Yerevan","team_b_country":"ARM","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/15259.png","status":"Fixture","gameweek":"","winner":"yet unknown","score_a":"","score_b":"","p1s_a":"","p1s_b":"","p2s_a":"","p2s_b":"","ets_a":"","ets_b":"","pen_a":"","pen_b":"","venue_type":"home_away","final_period":"soc_p2s","attendance":"","venue_id":"749","venue_name":"Molineux Stadium","venue_city":"Wolverhampton","competition_id":"401","competition_name":"UEFA Europa League","season_id":"21572","round_id":"32409","last_updated":"2019-08-02 19:43:03"},{"match_id":"1643621","date":"2019-08-19","time":"21:00:00","date_utc":"2019-08-19","time_utc":"19:00:00","team_a_id":"459","team_a_name":"Wolverhampton Wanderers FC","team_a_short_name":"Wolverhampton","team_a_tla_name":"WOL","team_a_original_name":"Wolverhampton Wanderers FC","team_a_country":"ENG","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/459.png","team_b_id":"475","team_b_name":"Manchester United FC","team_b_short_name":"Man United","team_b_tla_name":"MUN","team_b_original_name":"Manchester United FC","team_b_country":"ENG","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/475.png","status":"Fixture","gameweek":"2","winner":"yet unknown","score_a":"","score_b":"","p1s_a":"","p1s_b":"","p2s_a":"","p2s_b":"","ets_a":"","ets_b":"","pen_a":"","pen_b":"","venue_type":"home_away","final_period":"soc_p2s","attendance":"","venue_id":"749","venue_name":"Molineux Stadium","venue_city":"Wolverhampton","competition_id":"2","competition_name":"Premier League","season_id":"21558","round_id":"32365","last_updated":"2019-07-08 16:13:30"},{"match_id":"1643631","date":"2019-08-24","time":"16:00:00","date_utc":"2019-08-24","time_utc":"14:00:00","team_a_id":"459","team_a_name":"Wolverhampton Wanderers FC","team_a_short_name":"Wolverhampton","team_a_tla_name":"WOL","team_a_original_name":"Wolverhampton Wanderers FC","team_a_country":"ENG","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/459.png","team_b_id":"492","team_b_name":"Burnley FC","team_b_short_name":"Burnley","team_b_tla_name":"BUR","team_b_original_name":"Burnley FC","team_b_country":"ENG","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/492.png","status":"Fixture","gameweek":"3","winner":"yet unknown","score_a":"","score_b":"","p1s_a":"","p1s_b":"","p2s_a":"","p2s_b":"","ets_a":"","ets_b":"","pen_a":"","pen_b":"","venue_type":"home_away","final_period":"soc_p2s","attendance":"","venue_id":"749","venue_name":"Molineux Stadium","venue_city":"Wolverhampton","competition_id":"2","competition_name":"Premier League","season_id":"21558","round_id":"32365","last_updated":"2019-07-08 16:06:19"},{"match_id":"1643636","date":"2019-09-01","time":"15:00:00","date_utc":"2019-09-01","time_utc":"13:00:00","team_a_id":"473","team_a_name":"Everton FC","team_a_short_name":"Everton","team_a_tla_name":"EVE","team_a_original_name":"Everton FC","team_a_country":"ENG","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/473.png","team_b_id":"459","team_b_name":"Wolverhampton Wanderers FC","team_b_short_name":"Wolverhampton","team_b_tla_name":"WOL","team_b_original_name":"Wolverhampton Wanderers FC","team_b_country":"ENG","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/459.png","status":"Fixture","gameweek":"4","winner":"yet unknown","score_a":"","score_b":"","p1s_a":"","p1s_b":"","p2s_a":"","p2s_b":"","ets_a":"","ets_b":"","pen_a":"","pen_b":"","venue_type":"home_away","final_period":"soc_p2s","attendance":"","venue_id":"368","venue_name":"Goodison Park","venue_city":"Liverpool","competition_id":"2","competition_name":"Premier League","season_id":"21558","round_id":"32365","last_updated":"2019-07-08 16:07:49"}]}}}}