No Subscription to this function
GET /cricket/get_team
Returns a list of team details selected from team or season
Request URL
https://dsg-api.com/clients/{client_name}/cricket/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
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
Rate limit exceeded
Code Samples
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://dsg-api.com/clients/{client_name}/cricket/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}/cricket/get_team?team={team_id}&client={client_name}&authkey={client_authkey}"
response = requests.get("https://dsg-api.com/clients/{client_name}/cricket/get_team?team={team_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"1.0","sport":"cricket","lang":"en","method":{"method_id":"188","name":"get_team"},"team":{"team_id":"25796","team_name":"Chennai Super Kings","short_name":"Chennai SK","tla_name":"CSK","type":"club","gender":"male","status":"active","area_id":"94","area_name":"India","last_updated":"2016-11-15 01:14:13","team_extra":{"adress":"","adress_zip":"","adress_city":"","tel":"","fax":"","website":"","email":"","official_name":"","founded":"","club_colors":"","team_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25796.png","nicknames":"","primary_venue_id":"11565","primary_venue_name":"M. A. Chidambaram Stadium"},"team_social_media":{"facebook":"","twitter":"","youtube":"","google_plus":"","instagram":"","vk":""},"last_matches":{"match":[{"match_id":"1610027","date":"2019-04-26","time":"16:30:00","date_utc":"2019-04-26","time_utc":"14:30:00","team_a_id":"25796","team_a_name":"Chennai Super Kings","team_a_short_name":"Chennai SK","team_a_tla_name":"CSK","team_a_original_name":"Chennai Super Kings","team_a_country":"IND","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25796.png","team_b_id":"25797","team_b_name":"Mumbai Indians","team_b_short_name":"Mumbai Indians","team_b_tla_name":"MI","team_b_original_name":"Mumbai Indians","team_b_country":"IND","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25797.png","status":"Played","gameweek":"","winner":"team_B","runs_a":"109","runs_b":"155","wickets_a":"10","wickets_b":"4","overs_a":"17.4","overs_b":"20.0","number_days":"1","result_text":"Mumbai Indians win by 46 runs","toss_team":"25796","toss_decision":"Field","toss_text":"Chennai Super Kings won the toss and elected to bowl.","win_margin":"46","win_type":"runs","duckworth_lewis":"","venue_type":"home_away","final_period":"crc_p2s","attendance":"","venue_id":"11565","venue_name":"M. A. Chidambaram Stadium","venue_city":"Chennai, Tamil Nadu","competition_id":"1048","competition_name":"VIVO IPL","season_id":"20972","round_id":"29790","last_updated":"2019-04-26 20:37:21"},{"match_id":"1610040","date":"2019-05-01","time":"16:30:00","date_utc":"2019-05-01","time_utc":"14:30:00","team_a_id":"25796","team_a_name":"Chennai Super Kings","team_a_short_name":"Chennai SK","team_a_tla_name":"CSK","team_a_original_name":"Chennai Super Kings","team_a_country":"IND","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25796.png","team_b_id":"25802","team_b_name":"Delhi Capitals","team_b_short_name":"Delhi Capitals","team_b_tla_name":"DEL","team_b_original_name":"Delhi Capitals","team_b_country":"IND","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25802.png","status":"Played","gameweek":"","winner":"team_A","runs_a":"179","runs_b":"99","wickets_a":"4","wickets_b":"10","overs_a":"20.0","overs_b":"16.2","number_days":"1","result_text":"Chennai Super Kings win by 80 runs","toss_team":"25802","toss_decision":"Field","toss_text":"Delhi Capitals won the toss and elected to bowl.","win_margin":"80","win_type":"runs","duckworth_lewis":"","venue_type":"home_away","final_period":"crc_p2s","attendance":"","venue_id":"11565","venue_name":"M. A. Chidambaram Stadium","venue_city":"Chennai, Tamil Nadu","competition_id":"1048","competition_name":"VIVO IPL","season_id":"20972","round_id":"29790","last_updated":"2019-05-01 20:18:40"},{"match_id":"1610063","date":"2019-05-05","time":"12:30:00","date_utc":"2019-05-05","time_utc":"10:30:00","team_a_id":"25803","team_a_name":"Kings XI Punjab","team_a_short_name":"Kings XI","team_a_tla_name":"KXI","team_a_original_name":"Kings XI Punjab","team_a_country":"IND","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25803.png","team_b_id":"25796","team_b_name":"Chennai Super Kings","team_b_short_name":"Chennai SK","team_b_tla_name":"CSK","team_b_original_name":"Chennai Super Kings","team_b_country":"IND","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25796.png","status":"Played","gameweek":"","winner":"team_A","runs_a":"173","runs_b":"170","wickets_a":"4","wickets_b":"5","overs_a":"18.0","overs_b":"20.0","number_days":"1","result_text":"Kings XI Punjab win by 6 wickets","toss_team":"25803","toss_decision":"Field","toss_text":"Kings XI Punjab won the toss and elected to bowl.","win_margin":"6","win_type":"wickets","duckworth_lewis":"","venue_type":"home_away","final_period":"crc_p2s","attendance":"","venue_id":"11568","venue_name":"IS Bindra Stadium","venue_city":"Mohali, Punjab","competition_id":"1048","competition_name":"VIVO IPL","season_id":"20972","round_id":"29790","last_updated":"2019-05-05 15:59:44"},{"match_id":"1631580","date":"2019-05-07","time":"16:00:00","date_utc":"2019-05-07","time_utc":"14:00:00","team_a_id":"25797","team_a_name":"Mumbai Indians","team_a_short_name":"Mumbai Indians","team_a_tla_name":"MI","team_a_original_name":"Mumbai Indians","team_a_country":"IND","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25797.png","team_b_id":"25796","team_b_name":"Chennai Super Kings","team_b_short_name":"Chennai SK","team_b_tla_name":"CSK","team_b_original_name":"Chennai Super Kings","team_b_country":"IND","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25796.png","status":"Played","gameweek":"","winner":"team_A","runs_a":"132","runs_b":"131","wickets_a":"4","wickets_b":"4","overs_a":"18.3","overs_b":"20.0","number_days":"1","result_text":"Mumbai Indians win by 6 wickets","toss_team":"25796","toss_decision":"Bat","toss_text":"Chennai Super Kings won the toss and elected to bat.","win_margin":"6","win_type":"wickets","duckworth_lewis":"","venue_type":"home_away","final_period":"crc_p2s","attendance":"","venue_id":"11565","venue_name":"M. A. Chidambaram Stadium","venue_city":"Chennai, Tamil Nadu","competition_id":"1048","competition_name":"VIVO IPL","season_id":"20972","round_id":"31708","last_updated":"2019-05-09 17:06:34"},{"match_id":"1631582","date":"2019-05-10","time":"16:00:00","date_utc":"2019-05-10","time_utc":"14:00:00","team_a_id":"25796","team_a_name":"Chennai Super Kings","team_a_short_name":"Chennai SK","team_a_tla_name":"CSK","team_a_original_name":"Chennai Super Kings","team_a_country":"IND","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25796.png","team_b_id":"25802","team_b_name":"Delhi Capitals","team_b_short_name":"Delhi Capitals","team_b_tla_name":"DEL","team_b_original_name":"Delhi Capitals","team_b_country":"IND","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25802.png","status":"Played","gameweek":"","winner":"team_A","runs_a":"151","runs_b":"147","wickets_a":"4","wickets_b":"9","overs_a":"19.0","overs_b":"20.0","number_days":"1","result_text":"Chennai Super Kings win by 6 wickets","toss_team":"25796","toss_decision":"Field","toss_text":"Chennai Super Kings won the toss and elected to bowl.","win_margin":"6","win_type":"wickets","duckworth_lewis":"","venue_type":"home_away","final_period":"crc_p2s","attendance":"","venue_id":"11976","venue_name":"Visakhapatnam ACA-VDCA Cricket Stadium","venue_city":"Visakhapatnam","competition_id":"1048","competition_name":"VIVO IPL","season_id":"20972","round_id":"31710","last_updated":"2019-05-10 19:35:56"},{"match_id":"1631583","date":"2019-05-12","time":"16:00:00","date_utc":"2019-05-12","time_utc":"14:00:00","team_a_id":"25797","team_a_name":"Mumbai Indians","team_a_short_name":"Mumbai Indians","team_a_tla_name":"MI","team_a_original_name":"Mumbai Indians","team_a_country":"IND","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25797.png","team_b_id":"25796","team_b_name":"Chennai Super Kings","team_b_short_name":"Chennai SK","team_b_tla_name":"CSK","team_b_original_name":"Chennai Super Kings","team_b_country":"IND","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/200x200\/25796.png","status":"Played","gameweek":"","winner":"team_A","runs_a":"149","runs_b":"148","wickets_a":"8","wickets_b":"7","overs_a":"20.0","overs_b":"20.0","number_days":"1","result_text":"Mumbai Indians win by 1 run","toss_team":"25797","toss_decision":"Bat","toss_text":"Mumbai Indians won the toss and elected to bat.","win_margin":"1","win_type":"runs","duckworth_lewis":"","venue_type":"home_away","final_period":"crc_p2s","attendance":"","venue_id":"7936","venue_name":"Rajiv Gandhi International Cricket Stadium","venue_city":"Uppal, Hyderabad","competition_id":"1048","competition_name":"VIVO IPL","season_id":"20972","round_id":"31711","last_updated":"2019-05-12 20:23:01"}]},"next_matches":[]}}}