Subscription to this function is not available for your account. To upgrade and receive access to this contact sales@datasportsgroup.com
v2 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
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 call
sport
sport value
version
version of the API
method
details about the API function
method_id
unique ID of method
name
name of method
people
basic information about the squad member
age
current age of the person
common_name
common name of the person
country_of_birth
name of the country the person was born
country_of_birth_area_id
unique identifier for an area
date_of_birth
birth date of the person
date_of_death
death 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
last_updated
When record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
membership_id
unique identifier for the membership
nationality
nationality of the person
nationality_area_id
unique identifier for an area
people_id
unique identifier for person
people_picture
full path URL of people headshot, size can be changed via the picsize parameter
place_of_birth
name of city the person was born
role
type of role ('player', 'coach' or 'assistant_coach', 'goalkeeper_coach', 'local_coach', 'scout', 'sporting director')
short_name
shortened name of the person
status
status of the player ('active', 'retired' or 'dead')
weight
weight of person in kilograms
people_extra
extra details about the person (hockey, ice hockey, water polo)
position
position value
shoots
shooting style of the player (left or right)
season_statistic
season player statistics (water polo)
appearances
value of the particular stat
competition_name
name of the competition
comp_area_id
unique identifier for competition area
comp_format
competition format to filter out leagues or cups
exclusions
value of the particular stat
fouls
value of the particular stat
goals
value of the particular stat
last_updated
When record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
original_name
competition name during this season
penalties
value of the particular stat
season_id
unique identifier for season
shirtnumber
shirtnumber value
start_date
start date, format 'yyyy-mm-dd'
title
title of season
social_media
details about the social media channels
esea
ESEA Profile URL
esl_gaming
ESL Profile URL
facebook
facebook channel URL
faceit
Faceit Profile URL
instagram
instagram channel URL
reddit
reddit channel URL
steamid
steam ID channel URL
strava
strava Profile URL
tiktok
Tiktok Profile URL
twitch
Twitch channel URL
twitter
twitter channel URL
vk
vk channel URL
website
official website address (URL)
youtube
youtube channel URL
team
details about a team
area_id
unique identifier for an area
area_name
name of the area
discipline_id
unique identifier of the discipline
discipline_name
name of the discipline
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
shortened name of the person
status
the current status of the team ('active' or 'defunct')
team_id
unique identifier of the team
team_name
current team name
title
title of season
tla_name
three letter acronym for this team
type
determines the type of team ('national' or 'club' or 'selection')
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}/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}"
Imports System
Imports System.Net	
Imports System.IO
Imports System.Text

Public Module Module1
	Public Sub Main()
		Dim url As String = "https://dsg-api.com/clients/{client_name}/water_polo/get_squad?team={team_id}&client={client_name}&authkey={client_authkey}"
		Dim myReq As WebRequest = WebRequest.Create(url)
		myReq.Credentials = new System.Net.NetworkCredential("{User}", "{Password}")
		Dim wr As WebResponse = myReq.GetResponse()
		Dim receiveStream As Stream = wr.GetResponseStream()
		Dim reader As StreamReader = New StreamReader(receiveStream, Encoding.UTF8)
		Dim content As String = reader.ReadToEnd()
	End Sub
End Module
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"}}}}