No Subscription to this function
GET /water_polo/get_squad
Returns a list of players linked to a team.
Request URL
https://dsg-api.com/clients/{client_name}/water_polo/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
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
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}/water_polo/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}/water_polo/get_squad?team={team_id}&client={client_name}&authkey={client_authkey}"
response = requests.get("https://dsg-api.com/clients/{client_name}/water_polo/get_squad?team={team_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"2.0","sport":"water_polo","lang":"en","method":{"method_id":"217","name":"get_squad"},"team":{"team_id":"36690","team_name":"South Africa","short_name":"South Africa","tla_name":"RSA","type":"national","gender":"male","status":"active","area_id":"175","area_name":"South Africa","last_updated":"2018-06-24 12:16:54","people":[{"people_id":"276351","membership_id":"2762198","first_name":"Lwazi","last_name":"Madi","match_name":"L. Madi","common_name":"Lwazi Madi","date_of_birth":"1994-12-12","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":"Goalkeeper"},{"people_id":"311499","membership_id":"3041867","first_name":"Keegan","last_name":"Clark","match_name":"K. Clark","common_name":"Keegan Clark","date_of_birth":"1999-02-01","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":"Goalkeeper"},{"people_id":"276352","membership_id":"2762199","first_name":"Miguel","last_name":"Morais","match_name":"M. Morais","common_name":"Miguel Morais","date_of_birth":"1999-06-21","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":"Field Player"},{"people_id":"276354","membership_id":"2762201","first_name":"Ethan James Jagger","last_name":"Coryndon-Baker","match_name":"E. Coryndon-Baker","common_name":"Ethan Coryndon-Baker","date_of_birth":"1999-07-23","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":"Field Player"},{"people_id":"276355","membership_id":"2762202","first_name":"Garreth","last_name":"Prout","match_name":"G. Prout","common_name":"Garreth Prout","date_of_birth":"1990-03-23","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":"Field Player"},{"people_id":"276356","membership_id":"2762203","first_name":"Nic","last_name":"Downes","match_name":"N. Downes","common_name":"Nic Downes","date_of_birth":"1996-07-30","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":"Field Player"},{"people_id":"276357","membership_id":"2762204","first_name":"Lood","last_name":"Rabie","match_name":"L. Rabie","common_name":"Lood Rabie","date_of_birth":"1990-05-18","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":"Centre Forward"},{"people_id":"276360","membership_id":"2762207","first_name":"Mark","last_name":"Spencer","match_name":"M. Spencer","common_name":"Mark Spencer","date_of_birth":"1991-07-06","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":"Field Player"},{"people_id":"311500","membership_id":"3041868","first_name":"Dylan","last_name":"Cronje","match_name":"D. Cronje","common_name":"Dylan Cronje","date_of_birth":"","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":""},{"people_id":"311501","membership_id":"3041869","first_name":"Oliver","last_name":"Daffarn","match_name":"O. Daffarn","common_name":"Oliver Daffarn","date_of_birth":"","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":""},{"people_id":"311502","membership_id":"3041870","first_name":"Richard","last_name":"Downes","match_name":"R. Downes","common_name":"Richard Downes","date_of_birth":"1988-02-07","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":""},{"people_id":"311503","membership_id":"3041871","first_name":"William","last_name":"Dowsett","match_name":"W. Dowsett","common_name":"William Dowsett","date_of_birth":"","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":""},{"people_id":"311504","membership_id":"3041872","first_name":"Jason","last_name":"Evezard","match_name":"J. Evezard","common_name":"Jason Evezard","date_of_birth":"1997-08-17","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":""},{"people_id":"311505","membership_id":"3041873","first_name":"Todd","last_name":"Howard","match_name":"T. Howard","common_name":"Todd Howard","date_of_birth":"","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":""},{"people_id":"311506","membership_id":"3041874","first_name":"Yaseen","last_name":"Margro","match_name":"Y. Margro","common_name":"Yaseen Margro","date_of_birth":"","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":""},{"people_id":"311507","membership_id":"3041875","first_name":"Gareth","last_name":"May","match_name":"G. May","common_name":"Gareth May","date_of_birth":"1996-09-11","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":""},{"people_id":"311508","membership_id":"3041876","first_name":"Liam","last_name":"Neill","match_name":"L. Neill","common_name":"Liam Neill","date_of_birth":"1997-10-26","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":""},{"people_id":"311509","membership_id":"3041877","first_name":"Tim","last_name":"Rezelman","match_name":"T. Rezelman","common_name":"Tim Rezelman","date_of_birth":"","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":""},{"people_id":"311510","membership_id":"3041878","first_name":"Oliver","last_name":"Roarke","match_name":"O. Roarke","common_name":"Oliver Roarke","date_of_birth":"","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":""},{"people_id":"311511","membership_id":"3041879","first_name":"David","last_name":"Rom","match_name":"D. Rom","common_name":"David Rom","date_of_birth":"","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":""},{"people_id":"311512","membership_id":"3041880","first_name":"Ross","last_name":"Stone","match_name":"R. Stone","common_name":"Ross Stone","date_of_birth":"","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","position":""}]},"staff":{"people":{"people_id":"276362","first_name":"Paul","last_name":"Martin","match_name":"P. Martin","common_name":"Paul Martin","date_of_birth":"","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","role":"coach"}}}}