No Subscription to this function
GET /cricket/get_squad
Returns a list of players linked to a team.
Request URL
https://dsg-api.com/clients/{client_name}/cricket/get_squad?team={team_id}&client={client_name}&authkey={client_authkey}
Parameters
authkey
string Required
client authentification key
client
string Required
unique client ID
detailed
string Required
only 'yes' is valid, enables more details
ftype
string
changes feed type from XML to json (ftype=json)
lang
string
two-character language code, defaults to 'en'
picsize
string
one of 150x150, 50x50, 30x30 or 18x18 to get correct size of player picture.
team
int Required
team id to return
Nodes
method
details about the API function
method_id
unique ID of method.
name
name of method.
people
Basic information about the person
ball_type
ball type of the player
batting_handed
batting hand of the player
bowling_handed
bowling hand of the player
common_name
common name of the person
country_of_birth
name of the country the person was born
date_of_birth
birth date of the person
first_name
first name of the person
gender
gender of the person ('male' or 'female')
height
Height of person in centimeters
last_name
last name of the person
match_name
shortened match name of the person
membership_id
Unique identifier for the membership
nationality
current nationality of the person
people_id
unique identifier for person
place_of_birth
name of city the person was born
player_picture
full path URL of player headshot, size can be changed via the picsize parameter
position
position of the player
weight
Weight of person in kilograms.
staff
Basic details about the staff
common_name
common name of the person
country_of_birth
name of the country the person was born
date_of_birth
birth date of the person
first_name
first name of the person
last_name
last name of the person
match_name
shortened match name of the person
membership_id
Unique identifier for the membership
nationality
current nationality of the person
people_id
unique identifier for person
place_of_birth
name of city the person was born
player_picture
full path URL of player headshot, size can be changed via the picsize parameter
role
type of role ('player', 'coach' or 'assistant_coach', 'goalkeeper_coach', 'local_coach', 'scout', 'sporting director')
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')
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_squad?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_squad?team={team_id}&client={client_name}&authkey={client_authkey}"
response = requests.get("https://dsg-api.com/clients/{client_name}/cricket/get_squad?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":"182","name":"get_squad"},"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","people":[{"people_id":"437690","membership_id":"2670718","first_name":"Kedar Mahadav","last_name":"Jadhav","match_name":"K. Jadhav","common_name":"Kedar Jadhav","date_of_birth":"1985-03-26","place_of_birth":"Puṇe","country_of_birth":"India","nationality":"India","position":"All-rounder"},{"people_id":"437715","membership_id":"2670719","first_name":"Francois","last_name":"du Plessis","match_name":"F. du Plessis","common_name":"Faf du Plessis","date_of_birth":"1984-07-13","place_of_birth":"Pretoria, Gauteng","country_of_birth":"South Africa","nationality":"South Africa","position":"Middle Order Batsman"},{"people_id":"437759","membership_id":"2670720","first_name":"Suresh Kumar","last_name":"Raina","match_name":"S. Raina","common_name":"Suresh Raina","date_of_birth":"1986-11-27","place_of_birth":"Muradnagar","country_of_birth":"India","nationality":"India","position":"Batsman"},{"people_id":"437848","membership_id":"2670721","first_name":"Ambati","last_name":"Rayudu","match_name":"A. Rayudu","common_name":"Ambati Rayudu","date_of_birth":"1985-09-23","place_of_birth":"Guntur, Andhra Pradesh","country_of_birth":"India","nationality":"India","position":"Batsman"},{"people_id":"245642","membership_id":"2670722","first_name":"Dhruv Ranjan","last_name":"Shorey","match_name":"D. Shorey","common_name":"Dhruv Shorey","date_of_birth":"1992-06-05","place_of_birth":"New Delhi, Delhi","country_of_birth":"India","nationality":"India","position":"Top-order Batsman"},{"people_id":"437651","membership_id":"2670723","first_name":"Murali","last_name":"Vijay","match_name":"M. Vijay","common_name":"Murali Vijay","date_of_birth":"1984-04-01","place_of_birth":"Chennai, Tamil Nadu","country_of_birth":"India","nationality":"India","position":"Batsman"},{"people_id":"437749","membership_id":"2670724","first_name":"Dwayne John","last_name":"Bravo","match_name":"D. Bravo","common_name":"Dwayne Bravo","date_of_birth":"1983-10-07","place_of_birth":"Santa Cruz","country_of_birth":"Trinidad and Tobago","nationality":"Trinidad and Tobago","position":"All-rounder"},{"people_id":"437750","membership_id":"2670725","first_name":"Ravindrasinh","last_name":"Jadeja","match_name":"R. Jadeja","common_name":"Ravindra Jadeja","date_of_birth":"1988-12-06","place_of_birth":"Jamnagar","country_of_birth":"India","nationality":"India","position":"All-rounder"},{"people_id":"437808","membership_id":"2670726","first_name":"Karn Vinod","last_name":"Sharma","match_name":"K. Sharma","common_name":"Karn Sharma","date_of_birth":"1987-10-23","place_of_birth":"Meerut, Uttar Pradesh","country_of_birth":"India","nationality":"India","position":"Bowler"},{"people_id":"437693","membership_id":"2670728","first_name":"Shane Robert","last_name":"Watson","match_name":"S. Watson","common_name":"Shane Watson","date_of_birth":"1981-06-17","place_of_birth":"Ipswich, QLD","country_of_birth":"Australia","nationality":"Australia","position":"All-rounder"},{"people_id":"437772","membership_id":"2670729","first_name":"Samuel William","last_name":"Billings","match_name":"S. Billings","common_name":"Sam Billings","date_of_birth":"1991-06-15","place_of_birth":"Pembury, Kent","country_of_birth":"England","nationality":"England","position":"Wicket Keeper"},{"people_id":"437705","membership_id":"2670730","first_name":"Mahendra Singh","last_name":"Dhoni","match_name":"M. Dhoni","common_name":"MS Dhoni","date_of_birth":"1981-07-07","place_of_birth":"Ranchi, Jharkhand","country_of_birth":"India","nationality":"India","position":"Wicket Keeper"},{"people_id":"245644","membership_id":"2670732","first_name":"Narayan","last_name":"Jagadeesan","match_name":"N. Jagadeesan","common_name":"Narayan Jagadeesan","date_of_birth":"1995-12-24","place_of_birth":"Coimbatore","country_of_birth":"India","nationality":"India","position":"Wicket Keeper"},{"people_id":"245645","membership_id":"2670734","first_name":"KM","last_name":"Asif","match_name":"KM Asif","common_name":"KM Asif","date_of_birth":"1993-07-24","place_of_birth":"Edavanna, Kerala","country_of_birth":"India","nationality":"India","position":"Bowler"},{"people_id":"245646","membership_id":"2670736","first_name":"Chaitanya","last_name":"Bishnoi","match_name":"C. Bishnoi","common_name":"Chaitanya Bishnoi","date_of_birth":"1994-08-25","place_of_birth":"New Delhi, Delhi","country_of_birth":"India","nationality":"India","position":"All-rounder"},{"people_id":"437719","membership_id":"2670737","first_name":"Deepak","last_name":"Chahar","match_name":"D. Chahar","common_name":"Deepak Chahar","date_of_birth":"1992-08-07","place_of_birth":"Agra, Uttar Pradesh","country_of_birth":"India","nationality":"India","position":"Bowler"},{"people_id":"245647","membership_id":"2670739","first_name":"Monu","last_name":"Kumar Singh","match_name":"M. Kumar","common_name":"Monu Kumar","date_of_birth":"1994-11-05","place_of_birth":"Ranchi, Jharkhand","country_of_birth":"India","nationality":"India","position":"All-rounder"},{"people_id":"445047","membership_id":"2670740","first_name":"Mitchell Josef","last_name":"Santner","match_name":"M. Santner","common_name":"Mitchell Santner","date_of_birth":"1992-02-05","place_of_birth":"Hamilton","country_of_birth":"New Zealand","nationality":"New Zealand","position":"All-rounder"},{"people_id":"437826","membership_id":"2670743","first_name":"Harbhajan","last_name":"Singh","match_name":"H. Singh","common_name":"Harbhajan Singh","date_of_birth":"1980-07-03","place_of_birth":"Jalandhar, Punjab","country_of_birth":"India","nationality":"India","position":"Bowler"},{"people_id":"437771","membership_id":"2670744","first_name":"Mohammad Imran","last_name":"Tahir","match_name":"I. Tahir","common_name":"Imran Tahir","date_of_birth":"1979-03-27","place_of_birth":"Lahore","country_of_birth":"Pakistan","nationality":"South Africa","position":"Bowler"},{"people_id":"437649","membership_id":"2670746","first_name":"Shardul Narendra","last_name":"Thakur","match_name":"S. Thakur","common_name":"Shardul Thakur","date_of_birth":"1991-10-16","place_of_birth":"Palghar, Maharashtra","country_of_birth":"India","nationality":"India","position":"Bowler"},{"people_id":"508409","membership_id":"2686698","first_name":"David Jonathan","last_name":"Willey","match_name":"D. Willey","common_name":"David Willey","date_of_birth":"1990-02-28","place_of_birth":"Northampton","country_of_birth":"England","nationality":"England","position":"All-rounder"},{"people_id":"286333","membership_id":"2984188","first_name":"Ruturaj Dashrat","last_name":"Gaikwad","match_name":"R. Gaikwad","common_name":"Ruturaj Gaikwad","date_of_birth":"1997-01-31","place_of_birth":"Puṇe","country_of_birth":"India","nationality":"India","position":"Batsman"},{"people_id":"437653","membership_id":"2984190","first_name":"Mohit","last_name":"Sharma","match_name":"M. Sharma","common_name":"Mohit Sharma","date_of_birth":"1988-09-18","place_of_birth":"Faridabad, Haryana","country_of_birth":"India","nationality":"India","position":"Bowler"},{"people_id":"3183909","membership_id":"3055143","first_name":"Scott","last_name":"Kuggeleijn","match_name":"S. Kuggeleijn","common_name":"Scott Kuggeleijn","date_of_birth":"1992-01-03","place_of_birth":"","country_of_birth":"New Zealand","nationality":"New Zealand","position":"Bowler"}],"staff":[]}}}