Subscription to this function is not available for your account. To upgrade and receive access to this contact sales@datasportsgroup.com
v2 GET /field_hockey/get_squad
Returns a list of players linked to a team.
Request URL
https://dsg-api.com/clients/{client_name}/field_hockey/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 (field hockey)
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
field_goals
number of field goals
goals
value of the particular stat
green_cards
number of green cards
last_updated
When record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
lineups
number of lineups
original_name
competition name during this season
penalty_corner_goals
number of penalty corners
penalty_strike_goals
number of penalty strike goals
red_cards
value of the particular stat
season_id
unique identifier for season
start_date
start date, format 'yyyy-mm-dd'
subs_on_bench
number of subs on bench
title
title of season
yellow_cards
number of yellow cards
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}/field_hockey/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}/field_hockey/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}/field_hockey/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}/field_hockey/get_squad?team={team_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"2.0","sport":"field_hockey","lang":"en","method":{"method_id":"200","name":"get_squad"},"team":{"team_id":"36640","team_name":"Australia","short_name":"Australia","tla_name":"AUS","type":"national","gender":"male","status":"active","area_id":"19","area_name":"Australia","last_updated":"2018-06-22 18:36:17","people":[{"people_id":"259941","membership_id":"2709247","first_name":"Johan","last_name":"Durst","match_name":"J. Durst","common_name":"Johan Durst","date_of_birth":"1991-03-18","place_of_birth":"Canterbury, NSW","country_of_birth":"Australia","nationality":"Australia","position":"Goalkeeper"},{"people_id":"259942","membership_id":"2709248","first_name":"Tyler","last_name":"Lovell","match_name":"T. Lovell","common_name":"Tyler Lovell","date_of_birth":"1987-05-23","place_of_birth":"Perth, WA","country_of_birth":"Australia","nationality":"Australia","position":"Goalkeeper"},{"people_id":"260176","membership_id":"2709638","first_name":"Andrew","last_name":"Charter","match_name":"A. Charter","common_name":"Andrew Charter","date_of_birth":"1987-03-30","place_of_birth":"Canberra, ACT","country_of_birth":"Australia","nationality":"Australia","position":"Goalkeeper"},{"people_id":"259943","membership_id":"2709249","first_name":"Jake","last_name":"Harvie","match_name":"J. Harvie","common_name":"Jake Harvie","date_of_birth":"1998-03-05","place_of_birth":"Dardanup, WA","country_of_birth":"Australia","nationality":"Australia","position":"Defender"},{"people_id":"259945","membership_id":"2709251","first_name":"Tim","last_name":"Howard","match_name":"T. Howard","common_name":"Tim Howard","date_of_birth":"1996-06-23","place_of_birth":"Wakerley, QLD","country_of_birth":"Australia","nationality":"Australia","position":"Defender"},{"people_id":"259946","membership_id":"2709252","first_name":"Matthew","last_name":"Swann","match_name":"M. Swann","common_name":"Matt Swann","date_of_birth":"1989-05-16","place_of_birth":"Mackay, QLD","country_of_birth":"Australia","nationality":"Australia","position":"Defender"},{"people_id":"260175","membership_id":"2709637","first_name":"Joshua","last_name":"Beltz","match_name":"J. Beltz","common_name":"Josh Beltrz","date_of_birth":"1995-04-24","place_of_birth":"Hobart, TAS","country_of_birth":"Australia","nationality":"Australia","position":"Defender"},{"people_id":"260177","membership_id":"2709639","first_name":"Matthew","last_name":"Dawson","match_name":"M. Dawson","common_name":"Matt Dawson","date_of_birth":"1994-04-27","place_of_birth":"Central Coast, NSW","country_of_birth":"Australia","nationality":"Australia","position":"Defender"},{"people_id":"260178","membership_id":"2709641","first_name":"Corey","last_name":"Weyer","match_name":"C. Weyer","common_name":"Corey Weyer","date_of_birth":"1996-03-28","place_of_birth":"Biggera Waters, QLD","country_of_birth":"Australia","nationality":"Australia","position":"Defender"},{"people_id":"260179","membership_id":"2709642","first_name":"Joshua","last_name":"Simmonds","match_name":"J. Simmonds","common_name":"Joshua Simmonds","date_of_birth":"1995-10-04","place_of_birth":"","country_of_birth":"Australia","nationality":"Australia","position":"Defender"},{"people_id":"259948","membership_id":"2709254","first_name":"Lachlan","last_name":"Sharp","match_name":"L. Sharp","common_name":"Lachlan Sharp","date_of_birth":"1997-07-02","place_of_birth":"Lithgow, NSW","country_of_birth":"Australia","nationality":"Australia","position":"Midfielder"},{"people_id":"259949","membership_id":"2709255","first_name":"Tom","last_name":"Craig","match_name":"T. Craig","common_name":"Tom Craig","date_of_birth":"1995-09-03","place_of_birth":"Lane Cove, NSW","country_of_birth":"Australia","nationality":"Australia","position":"Midfielder"},{"people_id":"259950","membership_id":"2709256","first_name":"Eddward","last_name":"Ockenden","match_name":"E. Ockenden","common_name":"Eddie Ockenden","date_of_birth":"1987-04-03","place_of_birth":"Hobart, TAS","country_of_birth":"Australia","nationality":"Australia","position":"Midfielder"},{"people_id":"259951","membership_id":"2709257","first_name":"Aran","last_name":"Zalewski","match_name":"A. Zalewski","common_name":"Aran Zalewski","date_of_birth":"1991-03-21","place_of_birth":"Margaret River, WA","country_of_birth":"Australia","nationality":"Australia","position":"Midfielder"},{"people_id":"259952","membership_id":"2709258","first_name":"Flynn","last_name":"Ogilvie","match_name":"F. Ogilvie","common_name":"Flynn Ogilvie","date_of_birth":"1993-09-17","place_of_birth":"Wollongong, NSW","country_of_birth":"Australia","nationality":"Australia","position":"Midfielder"},{"people_id":"259953","membership_id":"2709259","first_name":"Daniel","last_name":"Beale","match_name":"D. Beale","common_name":"Daniel Beale","date_of_birth":"1993-02-12","place_of_birth":"Brisbane, QLD","country_of_birth":"Australia","nationality":"Australia","position":"Midfielder"},{"people_id":"259947","membership_id":"2709253","first_name":"Jeremy","last_name":"Hayward","match_name":"J. Hayward","common_name":"Jeremy Hayward","date_of_birth":"1993-03-03","place_of_birth":"Darwin","country_of_birth":"Australia","nationality":"Australia","position":"Forward"},{"people_id":"259954","membership_id":"2709260","first_name":"Jacob","last_name":"Whetton","match_name":"J. Whetton","common_name":"Jake Whetton","date_of_birth":"1991-06-15","place_of_birth":"Brisbane, QLD","country_of_birth":"Australia","nationality":"Australia","position":"Forward"},{"people_id":"259955","membership_id":"2709261","first_name":"Blake","last_name":"Govers","match_name":"B. Govers","common_name":"Blake Govers","date_of_birth":"1996-07-06","place_of_birth":"Wollongong, NSW","country_of_birth":"Australia","nationality":"Australia","position":"Forward"},{"people_id":"259956","membership_id":"2709262","first_name":"Aaron","last_name":"Kleinschmidt","match_name":"A. Kleinschmidt","common_name":"Aaron Kleinschmidt","date_of_birth":"1989-10-01","place_of_birth":"Melbourne, VIC","country_of_birth":"Australia","nationality":"Australia","position":"Forward"},{"people_id":"259957","membership_id":"2709263","first_name":"Trent","last_name":"Mitton","match_name":"T. Mitton","common_name":"Trent Mitton","date_of_birth":"1990-11-26","place_of_birth":"Perth, WA","country_of_birth":"Australia","nationality":"Australia","position":"Forward"},{"people_id":"259958","membership_id":"2709264","first_name":"Tim","last_name":"Brand","match_name":"T. Brand","common_name":"Tim Brand","date_of_birth":"1998-11-06","place_of_birth":"","country_of_birth":"Australia","nationality":"Australia","position":"Forward"},{"people_id":"260181","membership_id":"2709644","first_name":"Thomas","last_name":"Wickham","match_name":"T. Wickham","common_name":"Tom Wickham","date_of_birth":"1990-05-26","place_of_birth":"Morgan, SA","country_of_birth":"Australia","nationality":"Australia","position":"Forward"},{"people_id":"260182","membership_id":"2709645","first_name":"Dylan","last_name":"Wotherspoon","match_name":"D. Wotherspoon","common_name":"Dylan Wotherspoon","date_of_birth":"1993-04-09","place_of_birth":"Murwillumbah, NSW","country_of_birth":"Australia","nationality":"Australia","position":"Forward"},{"people_id":"304530","membership_id":"3007300","first_name":"Jacob","last_name":"Anderson","match_name":"J. Anderson","common_name":"Jacob Anderson","date_of_birth":"1997-03-22","place_of_birth":"","country_of_birth":"Australia","nationality":"Australia","position":""},{"people_id":"308378","membership_id":"3021946","first_name":"Jack","last_name":"Hayes","match_name":"J. Hayes","common_name":"Jack Hayes","date_of_birth":"1994-03-30","place_of_birth":"","country_of_birth":"Australia","nationality":"Australia","position":""},{"people_id":"308379","membership_id":"3021947","first_name":"Jack","last_name":"Welch","match_name":"J. Welch","common_name":"Jack Welch","date_of_birth":"1997-10-26","place_of_birth":"","country_of_birth":"Australia","nationality":"Australia","position":""}]},"staff":{"people":[{"people_id":"260184","first_name":"Colin","last_name":"Batch","match_name":"C. Batch","common_name":"Colin Batch","date_of_birth":"1958-03-27","place_of_birth":"Melbourne, VIC","country_of_birth":"Australia","nationality":"Australia","role":"coach"},{"people_id":"315792","first_name":"Anthony","last_name":"Potter","match_name":"A. Potter","common_name":"Anthony Potter","date_of_birth":"","place_of_birth":"","country_of_birth":"Australia","nationality":"Australia","role":"assistant_coach"}]}}}