Subscription to this function is not available for your account. To upgrade and receive access to this contact sales@datasportsgroup.com
GET /american_football/get_squad
Returns a list of players linked to a team.
Request URL
https://dsg-api.com/clients/{client_name}/american_football/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
sport
sport of the API
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 person
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
date the people died
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
current 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 people
position
position of the particular player
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
steam_id
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
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.
title
title of season
tla_name
three letter acronym for this team
type
Determines the type of team ('national' or 'club')
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}/american_football/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}/american_football/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}/american_football/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}/american_football/get_squad?team={team_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"1.0","sport":"american_football","lang":"en","method":{"method_id":"70","name":"get_squad"},"team":{"team_id":"1","team_name":"New York Jets","short_name":"Jets","tla_name":"NYJ","type":"club","gender":"male","status":"active","area_id":"203","area_name":"United States","last_updated":"2017-09-04 20:02:48","people":[{"people_id":"356212","membership_id":"595684","first_name":"James","last_name":"Carpenter","match_name":"J. Carpenter","common_name":"James Carpenter","date_of_birth":"1989-03-22","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Guard"},{"people_id":"356218","membership_id":"595690","first_name":"Buster","last_name":"Skrine","match_name":"B. Skrine","common_name":"Buster Skrine","date_of_birth":"1989-04-26","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Cornerback"},{"people_id":"356219","membership_id":"595691","first_name":"Steve","last_name":"McLendon","match_name":"S. McLendon","common_name":"Steve McLendon","date_of_birth":"1986-01-03","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Defensive Tackle"},{"people_id":"356224","membership_id":"595696","first_name":"Charone","last_name":"Peake","match_name":"C. Peake","common_name":"Charone Peake","date_of_birth":"1992-10-16","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Wide Receiver"},{"people_id":"356239","membership_id":"595711","first_name":"Brent","last_name":"Qvale","match_name":"B. Qvale","common_name":"Brent Qvale","date_of_birth":"1991-03-11","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Offensive Linemen"},{"people_id":"356241","membership_id":"595713","first_name":"Brian","last_name":"Winters","match_name":"B. Winters","common_name":"Brian Winters","date_of_birth":"1991-07-10","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Guard"},{"people_id":"356263","membership_id":"595735","first_name":"Dakota","last_name":"Dozier","match_name":"D. Dozier","common_name":"Dakota Dozier","date_of_birth":"1991-04-30","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Guard"},{"people_id":"356268","membership_id":"595740","first_name":"Robby","last_name":"Anderson","match_name":"R. Anderson","common_name":"Robby Anderson","date_of_birth":"1993-05-09","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Wide Receiver"},{"people_id":"356272","membership_id":"595744","first_name":"Jordan","last_name":"Jenkins","match_name":"J. Jenkins","common_name":"Jordan Jenkins","date_of_birth":"1994-07-01","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Linebacker"},{"people_id":"356273","membership_id":"595745","first_name":"Leonard","last_name":"Williams","match_name":"L. Williams","common_name":"Leonard Williams","date_of_birth":"1994-06-20","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Nose Tackle"},{"people_id":"356276","membership_id":"595748","first_name":"Rontez","last_name":"Miles","match_name":"R. Miles","common_name":"Rontez Miles","date_of_birth":"1988-11-25","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Safety"},{"people_id":"356280","membership_id":"595752","first_name":"Lachlan","last_name":"Edwards","match_name":"L. Edwards","common_name":"Lac Edwards","date_of_birth":"1992-04-27","place_of_birth":"","country_of_birth":"Australia","nationality":"Australia","position":"Punter"},{"people_id":"356284","membership_id":"595756","first_name":"Darron","last_name":"Lee","match_name":"D. Lee","common_name":"Darron Lee","date_of_birth":"1994-10-18","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Linebacker"},{"people_id":"375033","membership_id":"859836","first_name":"Darryl","last_name":"Roberts","match_name":"D. Roberts","common_name":"Darryl Roberts","date_of_birth":"1990-11-26","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Cornerback"},{"people_id":"205539","membership_id":"1334163","first_name":"Jamal Lee","last_name":"Adams","match_name":"J. Adams","common_name":"Jamal Adams","date_of_birth":"1995-10-17","place_of_birth":"Lewisville, TX","country_of_birth":"United States","nationality":"United States","position":"Safety"},{"people_id":"356627","membership_id":"1334173","first_name":"Kelvin","last_name":"Beachum","match_name":"K. Beachum","common_name":"Kelvin Beachum","date_of_birth":"1989-06-08","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Offensive Linemen"},{"people_id":"375539","membership_id":"1334174","first_name":"Terrence","last_name":"Brooks","match_name":"T. Brooks","common_name":"Terrence Brooks","date_of_birth":"1992-03-02","place_of_birth":"Dunnellon, FL","country_of_birth":"United States","nationality":"United States","position":"Defensive Back"},{"people_id":"376992","membership_id":"1334196","first_name":"Jonotthan","last_name":"Harrison","match_name":"J. Harrison","common_name":"Jonotthan Harrison","date_of_birth":"1991-08-25","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Center"},{"people_id":"205557","membership_id":"1334197","first_name":"Thomas","last_name":"Hennessy","match_name":"T. Hennessy","common_name":"Thomas Hennessy","date_of_birth":"1994-06-11","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Long Snapper"},{"people_id":"205573","membership_id":"1334213","first_name":"Derrick","last_name":"Jones","match_name":"D. Jones","common_name":"Derrick Jones","date_of_birth":"1994-12-04","place_of_birth":"Eupora, MS","country_of_birth":"United States","nationality":"United States","position":"Cornerback"},{"people_id":"378216","membership_id":"1334215","first_name":"Jermaine","last_name":"Kearse","match_name":"J. Kearse","common_name":"Jermaine Kearse","date_of_birth":"1990-02-06","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Wide Receiver"},{"people_id":"205574","membership_id":"1334216","first_name":"Jordan","last_name":"Leggett","match_name":"J. Leggett","common_name":"Jordan Leggett","date_of_birth":"1995-01-31","place_of_birth":"Navarre, FL","country_of_birth":"United States","nationality":"United States","position":"Tight End"},{"people_id":"205575","membership_id":"1334218","first_name":"Marcus","last_name":"Maye","match_name":"M. Maye","common_name":"Marcus Maye","date_of_birth":"1993-03-09","place_of_birth":"Melbourne, FL","country_of_birth":"United States","nationality":"United States","position":"Safety"},{"people_id":"375675","membership_id":"1334220","first_name":"Josh","last_name":"McCown","match_name":"J. McCown","common_name":"Josh McCown","date_of_birth":"1979-07-04","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Quarter Back"},{"people_id":"205576","membership_id":"1334222","first_name":"Elijah Lamont","last_name":"McGuire","match_name":"E. McGuire","common_name":"Elijah McGuire","date_of_birth":"1994-06-01","place_of_birth":"Houma, LA","country_of_birth":"United States","nationality":"United States","position":"Running Back"},{"people_id":"377821","membership_id":"1334224","first_name":"Mike","last_name":"Pennel","match_name":"M. Pennel","common_name":"Mike Pennel","date_of_birth":"1991-05-09","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Defensive End"},{"people_id":"376763","membership_id":"1334231","first_name":"Eric","last_name":"Tomlinson","match_name":"E. Tomlinson","common_name":"Eric Tomlinson","date_of_birth":"1992-04-22","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Tight End"},{"people_id":"356653","membership_id":"1336742","first_name":"Neal","last_name":"Sterling","match_name":"N. Sterling","common_name":"Neal Sterling","date_of_birth":"1992-01-14","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Wide Receiver"},{"people_id":"378457","membership_id":"2319255","first_name":"Rashard","last_name":"Robinson","match_name":"R. Robinson","common_name":"Rashard Robinson","date_of_birth":"1995-07-23","place_of_birth":"Pompano Beach, FL","country_of_birth":"United States","nationality":"United States","position":"Cornerback"},{"people_id":"250352","membership_id":"2682829","first_name":"Samuel","last_name":"Darnold","match_name":"S. Darnold","common_name":"Sam Darnold","date_of_birth":"1997-06-05","place_of_birth":"Dana Point, CA","country_of_birth":"United States","nationality":"United States","position":"Quarter Back"},{"people_id":"250865","membership_id":"2683970","first_name":"Nathan","last_name":"Shepherd","match_name":"N. Shepherd","common_name":"Nathan Shepherd","date_of_birth":"1993-10-09","place_of_birth":"Ajax, ON","country_of_birth":"Canada","nationality":"Canada","position":"Defensive End"},{"people_id":"251115","membership_id":"2684736","first_name":"Christopher","last_name":"Herndon IV","match_name":"C. Herndon","common_name":"Chris Herndon","date_of_birth":"1996-02-23","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Tight End"},{"people_id":"251203","membership_id":"2684837","first_name":"Parry","last_name":"Nickerson","match_name":"P. Nickerson","common_name":"Parry Nickerson","date_of_birth":"1994-10-11","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Cornerback"},{"people_id":"251204","membership_id":"2684838","first_name":"Folorunso","last_name":"Fatukasi","match_name":"F. Fatukasi","common_name":"Folorunso Fatukasi","date_of_birth":"1995-03-04","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Defensive End"},{"people_id":"251229","membership_id":"2684863","first_name":"Trenton","last_name":"Cannon","match_name":"T. Cannon","common_name":"Trenton Cannon","date_of_birth":"1994-07-23","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Running Back"},{"people_id":"376983","membership_id":"2757856","first_name":"Henry","last_name":"Anderson","match_name":"H. Anderson","common_name":"Henry Anderson","date_of_birth":"1991-08-03","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Defensive End"},{"people_id":"274983","membership_id":"2757857","first_name":"Ben","last_name":"Braden","match_name":"B. Braden","common_name":"Ben Braden","date_of_birth":"1994-03-09","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Offensive Linemen"},{"people_id":"356463","membership_id":"2757858","first_name":"Brandon","last_name":"Copeland","match_name":"B. Copeland","common_name":"Brandon Copeland","date_of_birth":"1991-07-02","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Defensive End"},{"people_id":"375179","membership_id":"2757861","first_name":"Neville","last_name":"Hewitt","match_name":"N. Hewitt","common_name":"Neville Hewitt","date_of_birth":"1993-04-06","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Linebacker"},{"people_id":"378335","membership_id":"2757862","first_name":"Trumaine","last_name":"Johnson","match_name":"T. Johnson","common_name":"Trumaine Johnson","date_of_birth":"1990-01-01","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Cornerback"},{"people_id":"356794","membership_id":"2757863","first_name":"Spencer","last_name":"Long","match_name":"S. Long","common_name":"Spencer Long","date_of_birth":"1990-11-08","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Center"},{"people_id":"356655","membership_id":"2757864","first_name":"Jason","last_name":"Myers","match_name":"J. Myers","common_name":"Jason Myers","date_of_birth":"1991-05-12","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Placekicker"},{"people_id":"356390","membership_id":"2757868","first_name":"Andre","last_name":"Roberts","match_name":"A. Roberts","common_name":"Andre Roberts","date_of_birth":"1988-01-09","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Wide Receiver"},{"people_id":"376893","membership_id":"2757870","first_name":"Avery","last_name":"Williamson","match_name":"A. Williamson","common_name":"Avery Williamson","date_of_birth":"1992-03-09","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Linebacker"},{"people_id":"3148069","membership_id":"2762096","first_name":"Frankie","last_name":"Luvu","match_name":"F. Luvu","common_name":"Frankie Luvu","date_of_birth":"1996-09-19","place_of_birth":"Tafuna","country_of_birth":"American Samoa","nationality":"American Samoa","position":"Linebacker"},{"people_id":"3199610","membership_id":"2833969","first_name":"Deontay","last_name":"Burnett","match_name":"D. Burnett","common_name":"Deontay Burnett","date_of_birth":"1997-10-04","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Wide Receiver"},{"people_id":"492210","membership_id":"2834338","first_name":"Tarell","last_name":"Basham","match_name":"T. Basham","common_name":"Tarell Basham","date_of_birth":"1994-03-18","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Linebacker"},{"people_id":"375579","membership_id":"2983118","first_name":"Bronson","last_name":"Kaufusi","match_name":"B. Kaufusi","common_name":"Bronson Kaufusi","date_of_birth":"1991-07-06","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Defensive End"},{"people_id":"492465","membership_id":"2985624","first_name":"De'Angelo","last_name":"Henderson","match_name":"D. Henderson","common_name":"De'Angelo Henderson","date_of_birth":"1992-11-24","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Running Back"},{"people_id":"153998","membership_id":"2985625","first_name":"Anthony","last_name":"Wint","match_name":"A. Wint","common_name":"Anthony Wint","date_of_birth":"1995-09-14","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Linebacker"},{"people_id":"275357","membership_id":"2987018","first_name":"Janardreon Quonshun","last_name":"Jones","match_name":"J. Jones","common_name":"J.J. Jones","date_of_birth":"1992-12-06","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Wide Receiver"},{"people_id":"377312","membership_id":"2987116","first_name":"Clive","last_name":"Walford","match_name":"C. Walford","common_name":"Clive Walford","date_of_birth":"1991-10-01","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Tight End"},{"people_id":"299549","membership_id":"2987117","first_name":"Jeremy","last_name":"Clark","match_name":"J. Clark","common_name":"Jeremy Clark","date_of_birth":"1994-06-29","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Defensive Back"},{"people_id":"377888","membership_id":"2987118","first_name":"Emmanuel","last_name":"Lamur","match_name":"E. Lamur","common_name":"Emmanuel Lamur","date_of_birth":"1989-06-08","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Linebacker"},{"people_id":"317195","membership_id":"3078545","first_name":"Quinnen","last_name":"Williams","match_name":"Q. Williams","common_name":"Quinnen Williams","date_of_birth":"1997-12-21","place_of_birth":"Birmingham, AL","country_of_birth":"United States","nationality":"United States","position":"Defensive End"},{"people_id":"317496","membership_id":"3081328","first_name":"Jachai","last_name":"Polite","match_name":"J. Polite","common_name":"Jachai Polite","date_of_birth":"1998-03-30","place_of_birth":"Daytona Beach, FL","country_of_birth":"United States","nationality":"United States","position":"Linebacker"},{"people_id":"317763","membership_id":"3083013","first_name":"Chuma","last_name":"Edoga","match_name":"C. Edoga","common_name":"Chuma Edoga","date_of_birth":"1997-05-25","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Tackle"},{"people_id":"317814","membership_id":"3083084","first_name":"Trevon","last_name":"Wesco","match_name":"T. Wesco","common_name":"Trevon Wesco","date_of_birth":"","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Tight End"},{"people_id":"317871","membership_id":"3083169","first_name":"Blake","last_name":"Cashman","match_name":"B. Cashman","common_name":"Blake Cashman","date_of_birth":"","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Linebacker"},{"people_id":"317941","membership_id":"3083267","first_name":"Blessuan","last_name":"Austin","match_name":"B. Austin","common_name":"Blessuan Austin","date_of_birth":"","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Cornerback"}]},"staff":{"people":{"people_id":"146115","membership_id":"859684","first_name":"Todd","last_name":"Bowles","match_name":"T. Bowles","common_name":"Todd Bowles","date_of_birth":"1963-11-18","place_of_birth":"Elizabeth, NJ","country_of_birth":"United States","nationality":"United States","role":"coach"}}}}