Subscription to this function is not available for your account. To upgrade and receive access to this contact sales@datasportsgroup.com
v3 GET /basketball/get_squad
Returns a list of players linked to a team.
Request URL
https://dsg-api.com/clients/{client_name}/basketball/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_avg
detailed average player statistics per season (basketball)
assists
average assists made
blocks
average blocks made
blocks_against
average blocks against
def_rebounds
average defensive rebounds made
efficiency
average of efficiency
field_goals_att
average field goal attempts made
field_goals_made
average field goals made
free_throws_att
average free throws attempts made
free_throws_made
average free throws made
off_rebounds
average offensive rebounds made
original_name
competition name during this season
performance_index_rating
average of performance index rating
personal_fouls_rec
average personal fouls received
plus_minus
average of plus minus
points
average points made
rebounds
average total rebounds made
season_id
unique identifier for season
steals
average steals made
three_points_att
average three points attempts made
three_points_made
average three points made
three_points_perc
average three points percentage
time_played
average time played
title
title of season
two_points_att
average two points attempts made
two_points_made
average two points made
season_statistic
season player statistics (basketball)
appearances
value of the particular stat
assists
number of assists
blocks
number of blocks
blocks_against
number of blocks against
field_goals_att
total field goal attempts made
field_goals_made
total field goals made
free_throws_att
total free throws attempts made
free_throws_made
total free throws made
last_updated
When record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
off_rebounds
total offensive rebounds made
original_name
competition name during this season
personal_fouls
total personal fouls made
personal_fouls_rec
total personal fouls received
plus_minus
total of plus minus
points
value of the particular stat
rebounds
total rebounds made
season_id
unique identifier for season
starting_bench
number of appearances started from the bench
steals
value of the particular stat
three_points_att
total three points attempts made
three_points_made
total three points made
time_played
number of seconds played
title
title of season
turnovers
value of the particular stat
two_points_att
total two points attempts made
two_points_made
total two points made
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}/basketball/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}/basketball/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}/basketball/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}/basketball/get_squad?team={team_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"2.0","sport":"basketball","lang":"en","method":{"method_id":"46","name":"get_squad"},"team":{"team_id":"25473","team_name":"Boston Celtics","short_name":"Celtics","tla_name":"BOS","type":"club","gender":"male","status":"active","area_id":"203","area_name":"United States","last_updated":"2016-10-07 21:38:02","people":[{"people_id":"354139","membership_id":"387749","first_name":"Marcus","last_name":"Smart","match_name":"M. Smart","common_name":"Marcus Smart","date_of_birth":"1994-03-06","place_of_birth":"Flower Mound, TX","country_of_birth":"United States","nationality":"United States","nationality_area_id":"203","position":"Point Guard"},{"people_id":"148011","membership_id":"896218","first_name":"Jaylen","last_name":"Brown","match_name":"J. Brown","common_name":"Jaylen Brown","date_of_birth":"1996-10-24","place_of_birth":"Marietta, GA","country_of_birth":"United States","nationality":"United States","nationality_area_id":"203","position":"Small Forward"},{"people_id":"354392","membership_id":"1475974","first_name":"Gordon","last_name":"Hayward","match_name":"G. Hayward","common_name":"Gordon Hayward","date_of_birth":"1990-03-23","place_of_birth":"Indianapolis, IN","country_of_birth":"United States","nationality":"United States","nationality_area_id":"203","position":"Small Forward"},{"people_id":"424292","membership_id":"1475978","first_name":"Daniel","last_name":"Theis","match_name":"D. Theis","common_name":"Daniel Theis","date_of_birth":"1992-04-04","place_of_birth":"Salzgitter","country_of_birth":"Germany","nationality":"Germany","nationality_area_id":"80","position":"Center"},{"people_id":"757315","membership_id":"1535702","first_name":"Jayson Christopher","last_name":"Tatum","match_name":"J. Tatum","common_name":"Jayson Tatum","date_of_birth":"1998-03-03","place_of_birth":"St. Louis, MO","country_of_birth":"United States","nationality":"United States","nationality_area_id":"203","position":"Small Forward"},{"people_id":"757319","membership_id":"1535703","first_name":"Jesusemilore Talodabijes","last_name":"Ojeleye","match_name":"S. Ojeleye","common_name":"Semi Ojeleye","date_of_birth":"1994-12-05","place_of_birth":"Overland Park, KS","country_of_birth":"United States","nationality":"United States","nationality_area_id":"203","position":"Forward"},{"people_id":"259857","membership_id":"2709125","first_name":"Robert","last_name":"Williams","match_name":"R. Williams","common_name":"Robert Williams","date_of_birth":"1997-10-17","place_of_birth":"Shreveport, LA","country_of_birth":"United States","nationality":"United States","nationality_area_id":"203","position":"Forward"},{"people_id":"421945","membership_id":"2737524","first_name":"Bradley Daniel","last_name":"Wanamaker","match_name":"B. Wanamaker","common_name":"Brad Wanamaker","date_of_birth":"1989-07-25","place_of_birth":"Philadelphia, PA","country_of_birth":"United States","nationality":"United States","nationality_area_id":"203","position":"Point Guard"},{"people_id":"795569","membership_id":"2830780","first_name":"Perry","last_name":"Dozier Jr.","match_name":"P. Dozier","common_name":"P.J. Dozier","date_of_birth":"1996-10-25","place_of_birth":"","country_of_birth":"United States","nationality":"United States","nationality_area_id":"203","position":"Shooting Guard"},{"people_id":"354133","membership_id":"2991703","first_name":"R.J.","last_name":"Hunter","match_name":"R. Hunter","common_name":"R.J. Hunter","date_of_birth":"1993-10-24","place_of_birth":"Indianapolis, IN","country_of_birth":"United States","nationality":"United States","nationality_area_id":"203","position":"Shooting Guard"},{"people_id":"156704","membership_id":"3059480","first_name":"Jonathan","last_name":"Gibson","match_name":"J. Gibson","common_name":"Jonathan Gibson","date_of_birth":"1987-11-08","place_of_birth":"West Covina, CA","country_of_birth":"United States","nationality":"United States","nationality_area_id":"203","position":"Point Guard"},{"people_id":"354795","membership_id":"3176883","first_name":"Kemba","last_name":"Walker","match_name":"K. Walker","common_name":"Kemba Walker","date_of_birth":"1990-05-08","place_of_birth":"Bronx, NY","country_of_birth":"United States","nationality":"United States","nationality_area_id":"203","position":"Point Guard"},{"people_id":"498007","membership_id":"3188298","first_name":"Vincent","last_name":"Poirier","match_name":"V. Poirier","common_name":"Vincent Poirier","date_of_birth":"1993-10-17","place_of_birth":"Clamart","country_of_birth":"France","nationality":"France","nationality_area_id":"76","position":"Center"},{"people_id":"3150528","membership_id":"3198737","first_name":"Javonte Damar","last_name":"Green","match_name":"J. Green","common_name":"Javonte Green","date_of_birth":"1993-07-23","place_of_birth":"","country_of_birth":"United States","nationality":"Montenegro","nationality_area_id":"225","position":"Guard"}]},"staff":{"people":{"people_id":"124895","membership_id":"387756","first_name":"Brad","last_name":"Stevens","match_name":"B. Stevens","common_name":"Brad Stevens","date_of_birth":"1976-10-22","place_of_birth":"Zionsville, IN","country_of_birth":"United States","nationality":"United States","nationality_area_id":"","role":"coach"}}}}