Subscription to this function is not available for your account. To upgrade and receive access to this contact sales@datasportsgroup.com
v3 GET /handball/get_squad
Returns a list of players linked to a team.
Request URL
https://dsg-api.com/clients/{client_name}/handball/get_squad?team={team_id}&client={client_name}&authkey={client_authkey}
API Threshold
  • 10k calls per hour (2.78 calls per second)
  • This threshold applies to ALL your calls you do across the API.
  • Your number of calls get reset every hour at :00
  • If the thresold is reached within the hour you will get a xml/json message accordingly (which is gone when the next hour starts, see previous point)
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 or ftype=json_array)
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_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
position
position value
season_player_statistic
detailed player statistics per season (handball)
goals
value of the particular stat
original_name
competition name during this season
red_cards
value of the particular stat
saves
value of the particular stat
season_id
unique identifier for season
seven_meter_att
number of 7m attempts
seven_meter_goals
number of 7m goals
shots
value of the particular stat
shots_blocked
number of shots blocked
shots_on_target
number of shots on target
title
title of season
two_minutes
value for total sets made
yellow_cards
number of yellow cards
season_player_statistic_avg
detailed average player statistics per season (handball)
goals
average of goals made
original_name
competition name during this season
red_cards
average of red cards
saves
value of the particular stat
season_id
unique identifier for season
seven_meter_att
average of 7m attempts
seven_meter_goals
average of 7m goals
shots
average of shots made
shots_blocked
average of shots blocked
shots_on_target
average of shots on target
title
title of season
two_minutes
average of two minute penalties
yellow_cards
number of yellow cards
season_statistic
player statistics per season (handball)
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
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
red_cards
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
two_minutes
value for total sets made
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}/handball/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}/handball/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}/handball/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}/handball/get_squad?team={team_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"1.0","sport":"handball","lang":"en","method":{"method_id":"141","name":"get_squad"},"team":{"team_id":"26504","team_name":"FRISCH AUF! Göppingen","short_name":"FA Göppingen","tla_name":"FAG","type":"club","gender":"male","status":"active","area_id":"80","area_name":"Germany","last_updated":"2017-08-24 23:09:42","people":[{"people_id":"467088","membership_id":"1314234","first_name":"Primoz","last_name":"Prost","match_name":"P. Prost","common_name":"Primoz Prost","date_of_birth":"1983-07-14","place_of_birth":"","country_of_birth":"Slovenia","nationality":"Slovenia","position":"Goalkeeper"},{"people_id":"202780","membership_id":"1326035","first_name":"Daniel","last_name":"Rebmann","match_name":"D. Rebmann","common_name":"Daniel Rebmann","date_of_birth":"1994-01-16","place_of_birth":"","country_of_birth":"Germany","nationality":"Germany","position":"Goalkeeper"},{"people_id":"467099","membership_id":"1326037","first_name":"Linus","last_name":"Mathes","match_name":"L. Mathes","common_name":"Linus Mathes","date_of_birth":"1996-09-03","place_of_birth":"","country_of_birth":"Germany","nationality":"Germany","position":"Goalkeeper"},{"people_id":"467091","membership_id":"1314237","first_name":"Tim","last_name":"Kneule","match_name":"T. Kneule","common_name":"Tim Kneule","date_of_birth":"1986-08-18","place_of_birth":"","country_of_birth":"Germany","nationality":"Germany","position":"Center Back"},{"people_id":"467092","membership_id":"1314238","first_name":"Jens","last_name":"Schöngarth","match_name":"J. Schöngarth","common_name":"Jens Schöngarth","date_of_birth":"1988-12-07","place_of_birth":"","country_of_birth":"Germany","nationality":"Germany","position":"Right Back"},{"people_id":"467153","membership_id":"1314298","first_name":"Marcel","last_name":"Schiller","match_name":"M. Schiller","common_name":"Marcel Schiller","date_of_birth":"1991-08-15","place_of_birth":"","country_of_birth":"Germany","nationality":"Germany","position":"Left Wing"},{"people_id":"467154","membership_id":"1314299","first_name":"Marco","last_name":"Rentschler","match_name":"M. Rentschler","common_name":"Marco Rentschler","date_of_birth":"1994-12-28","place_of_birth":"","country_of_birth":"Germany","nationality":"Germany","position":"Right Wing"},{"people_id":"466994","membership_id":"1325936","first_name":"Jacob","last_name":"Bagersted","match_name":"J. Bagersted","common_name":"Jacob Bagersted","date_of_birth":"1987-03-25","place_of_birth":"","country_of_birth":"Denmark","nationality":"Denmark","position":"Line Player"},{"people_id":"472668","membership_id":"1325937","first_name":"Sebastian","last_name":"Heymann","match_name":"S. Heymann","common_name":"Sebastian Heymann","date_of_birth":"1998-03-01","place_of_birth":"","country_of_birth":"Germany","nationality":"Germany","position":"Left Back"},{"people_id":"472669","membership_id":"1325938","first_name":"Allan","last_name":"Damgaard Espersen","match_name":"A. Damgaard Espersen","common_name":"Allan Damgaard Espersen","date_of_birth":"1986-04-11","place_of_birth":"","country_of_birth":"Denmark","nationality":"Denmark","position":"Center Back"},{"people_id":"466068","membership_id":"1325939","first_name":"Krešimir","last_name":"Kozina","match_name":"K. Kozina","common_name":"Krešimir Kozina","date_of_birth":"1990-06-25","place_of_birth":"","country_of_birth":"Croatia","nationality":"Croatia","position":"Line Player"},{"people_id":"202782","membership_id":"1326038","first_name":"Tobias","last_name":"Gehrke","match_name":"T. Gehrke","common_name":"Tobias Gehrke","date_of_birth":"1996-01-05","place_of_birth":"","country_of_birth":"Germany","nationality":"Germany","position":"Left Back"},{"people_id":"202783","membership_id":"1326039","first_name":"Joscha","last_name":"Ritterbach","match_name":"J. Ritterbach","common_name":"Joscha Ritterbach","date_of_birth":"1994-01-31","place_of_birth":"","country_of_birth":"Germany","nationality":"Germany","position":"Left Wing"},{"people_id":"272612","membership_id":"2748438","first_name":"Josip","last_name":"Perić","match_name":"J. Perić","common_name":"Josip Perić","date_of_birth":"1992-06-05","place_of_birth":"Ljubuški","country_of_birth":"Bosnia and Herzegovina","nationality":"Bosnia and Herzegovina","position":"Center Back"},{"people_id":"272613","membership_id":"2748439","first_name":"Ivan","last_name":"Slišković","match_name":"I. Slišković","common_name":"Ivan Slišković","date_of_birth":"1991-10-23","place_of_birth":"Split","country_of_birth":"Croatia","nationality":"Croatia","position":"Left Back"},{"people_id":"272614","membership_id":"2748440","first_name":"Tim","last_name":"Sörensen","match_name":"T. Sörensen","common_name":"Tim Sörensen","date_of_birth":"1992-02-10","place_of_birth":"Skive","country_of_birth":"Denmark","nationality":"Denmark","position":"Right Wing"},{"people_id":"466983","membership_id":"2748441","first_name":"Nemanja","last_name":"Zelenović","match_name":"N. Zelenović","common_name":"Nemanja Zelenović","date_of_birth":"1990-02-27","place_of_birth":"Knin","country_of_birth":"Croatia","nationality":"Serbia","position":"Right Back"},{"people_id":"272615","membership_id":"2748442","first_name":"Felix","last_name":"Weisser","match_name":"F. Weisser","common_name":"Felix Weisser","date_of_birth":"1999-07-27","place_of_birth":"","country_of_birth":"Germany","nationality":"Germany","position":"Left Wing"},{"people_id":"272616","membership_id":"2748443","first_name":"Axel","last_name":"Goller","match_name":"A. Goller","common_name":"Axel Goller","date_of_birth":"2000-03-27","place_of_birth":"","country_of_birth":"Germany","nationality":"Germany","position":"Right Wing"},{"people_id":"3198531","membership_id":"2833169","first_name":"Felix","last_name":"Weißer","match_name":"F. Weißer","common_name":"Felix Weißer","date_of_birth":"1999-07-27","place_of_birth":"","country_of_birth":"Germany","nationality":"Germany","position":"Left Wing"}]},"staff":{"people":{"people_id":"494192","membership_id":"2748909","first_name":"Hartmut","last_name":"Mayerhoffer","match_name":"H. Mayerhoffer","common_name":"Hartmut Mayerhoffer","date_of_birth":"1969-07-26","place_of_birth":"","country_of_birth":"Germany","nationality":"Germany","role":"coach"}}}}