Subscription to this function is not available for your account. To upgrade and receive access to this contact sales@datasportsgroup.com
v3 GET /baseball/get_squad
Returns a list of players linked to a team.
Request URL
https://dsg-api.com/clients/{client_name}/baseball/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 (baseball)
bats
which hand player is batting
position
position value
throws
which hand player is throwing
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}/baseball/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}/baseball/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}/baseball/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}/baseball/get_squad?team={team_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example200 Success{"datasportsgroup":{"version":"1.0","sport":"baseball","lang":"en","method":{"method_id":"56","name":"get_squad"},"team":{"team_id":"25447","team_name":"Chicago White Sox","short_name":"White Sox","tla_name":"CHA","type":"club","gender":"male","status":"active","area_id":"203","area_name":"United States","last_updated":"2017-08-14 22:03:28","people":[{"people_id":"124414","membership_id":"385548","first_name":"José","last_name":"Abreu","match_name":"J. Abreu","common_name":"José Abreu","date_of_birth":"1987-01-29","place_of_birth":"Cienfugos","country_of_birth":"Cuba","nationality":"Cuba","position":"First baseman"},{"people_id":"124424","membership_id":"385558","first_name":"Nate","last_name":"Jones","match_name":"N. Jones","common_name":"Nate Jones","date_of_birth":"1986-01-28","place_of_birth":"Covington, KY","country_of_birth":"United States","nationality":"United States","position":"Relief Pitcher"},{"people_id":"124431","membership_id":"385565","first_name":"Yolmer Carlos","last_name":"Sanchez","match_name":"Y. Sanchez","common_name":"Yolmer Sanchez","date_of_birth":"1992-06-29","place_of_birth":"Maracay","country_of_birth":"Venezuela","nationality":"Venezuela","position":"Second baseman"},{"people_id":"354244","membership_id":"389952","first_name":"Tim","last_name":"Anderson","match_name":"T. Anderson","common_name":"Tim Anderson","date_of_birth":"1993-06-23","place_of_birth":"Tuscaloosa, AL","country_of_birth":"United States","nationality":"United States","position":"Shortstop"},{"people_id":"446549","membership_id":"1287413","first_name":"Adam Trevor","last_name":"Engel","match_name":"A. Engel","common_name":"Adam Engel","date_of_birth":"1991-12-09","place_of_birth":"Cincinnati, OH","country_of_birth":"United States","nationality":"United States","position":"Center Fielder"},{"people_id":"386134","membership_id":"1300197","first_name":"Yoan Manuel","last_name":"Moncada","match_name":"Y. Moncada","common_name":"Yoan Moncada","date_of_birth":"1995-05-27","place_of_birth":"","country_of_birth":"Cuba","nationality":"Cuba","position":"Third baseman"},{"people_id":"354931","membership_id":"1312806","first_name":"Reynaldo","last_name":"Lopez","match_name":"R. Lopez","common_name":"Reynaldo Lopez","date_of_birth":"1994-01-04","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Pitcher"},{"people_id":"354347","membership_id":"1324490","first_name":"Lucas","last_name":"Giolito","match_name":"L. Giolito","common_name":"Lucas Giolito","date_of_birth":"1994-07-14","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Pitcher"},{"people_id":"446456","membership_id":"2681879","first_name":"Daniel","last_name":"Palka","match_name":"D. Palka","common_name":"Daniel Palka","date_of_birth":"1991-10-28","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Right Fielder"},{"people_id":"489965","membership_id":"2686587","first_name":"Jace","last_name":"Fry","match_name":"J. Fry","common_name":"Jace Fry","date_of_birth":"1993-07-09","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Pitcher"},{"people_id":"175205","membership_id":"2697140","first_name":"Dylan","last_name":"Covey","match_name":"D. Covey","common_name":"Dylan Covey","date_of_birth":"1991-08-14","place_of_birth":"Glendale, CA","country_of_birth":"United States","nationality":"United States","position":"Pitcher"},{"people_id":"124408","membership_id":"2705919","first_name":"Carlos","last_name":"Rodon","match_name":"C. Rodon","common_name":"Carlos Rodon","date_of_birth":"1992-12-10","place_of_birth":"Miami, FL","country_of_birth":"United States","nationality":"United States","position":"Starting Pitcher"},{"people_id":"386059","membership_id":"2707401","first_name":"Juan","last_name":"Minaya","match_name":"J. Minaya","common_name":"Juan Minaya","date_of_birth":"1990-09-18","place_of_birth":"Maimon","country_of_birth":"Dominican Republic","nationality":"Dominican Republic","position":"Relief Pitcher"},{"people_id":"125762","membership_id":"2709296","first_name":"Leury","last_name":"Garcia","match_name":"L. Garcia","common_name":"Leury Garcia","date_of_birth":"1991-03-18","place_of_birth":"Santiago","country_of_birth":"Dominican Republic","nationality":"Dominican Republic","position":"Second baseman"},{"people_id":"446547","membership_id":"2723058","first_name":"Nicky","last_name":"Delmonico","match_name":"N. Delmonico","common_name":"Nicky Delmonico","date_of_birth":"1992-07-12","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Third baseman"},{"people_id":"460149","membership_id":"2728249","first_name":"Thyago","last_name":"Vieira","match_name":"T. Vieira","common_name":"Thyago Vieira","date_of_birth":"1993-07-01","place_of_birth":"","country_of_birth":"Brazil","nationality":"Brazil","position":"Pitcher"},{"people_id":"467987","membership_id":"2748702","first_name":"Michael","last_name":"Kopech","match_name":"M. Kopech","common_name":"Michael Kopech","date_of_birth":"1996-04-30","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Pitcher"},{"people_id":"3117782","membership_id":"2749687","first_name":"Ryan","last_name":"Burr","match_name":"R. Burr","common_name":"Ryan Burr","date_of_birth":"1994-05-28","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Pitcher"},{"people_id":"3099265","membership_id":"2755482","first_name":"Ian","last_name":"Hamilton","match_name":"I. Hamilton","common_name":"Ian Hamilton","date_of_birth":"1995-06-16","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Pitcher"},{"people_id":"459863","membership_id":"2756156","first_name":"Aaron","last_name":"Bummer","match_name":"A. Bummer","common_name":"Aaron Bummer","date_of_birth":"1993-09-21","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Pitcher"},{"people_id":"500919","membership_id":"2756705","first_name":"Caleb","last_name":"Frare","match_name":"C. Frare","common_name":"Caleb Frare","date_of_birth":"1993-07-08","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Pitcher"},{"people_id":"118320","membership_id":"2757257","first_name":"Wellington Andres","last_name":"Castillo","match_name":"W. Castillo","common_name":"Wellington Castillo","date_of_birth":"1987-04-24","place_of_birth":"San isidro","country_of_birth":"Dominican Republic","nationality":"Dominican Republic","position":"Catcher"},{"people_id":"446646","membership_id":"2757360","first_name":"Ryan","last_name":"Cordell","match_name":"R. Cordell","common_name":"Ryan Cordell","date_of_birth":"1992-03-31","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Center Fielder"},{"people_id":"461377","membership_id":"2759042","first_name":"Jose","last_name":"Ruiz","match_name":"J. Ruiz","common_name":"Jose Ruiz","date_of_birth":"1994-10-21","place_of_birth":"","country_of_birth":"Venezuela","nationality":"Venezuela","position":"Pitcher"},{"people_id":"3244138","membership_id":"2988455","first_name":"Micker","last_name":"Adolfo","match_name":"M. Adolfo","common_name":"Micker Adolfo","date_of_birth":"1996-09-11","place_of_birth":"","country_of_birth":"Dominican Republic","nationality":"Dominican Republic","position":"Outfielder"},{"people_id":"353881","membership_id":"2988457","first_name":"Manuel","last_name":"Banuelos","match_name":"M. Banuelos","common_name":"Manuel Banuelos","date_of_birth":"1991-03-13","place_of_birth":"","country_of_birth":"Mexico","nationality":"Mexico","position":"Starting Pitcher"},{"people_id":"3244139","membership_id":"2988458","first_name":"Luis Alexander","last_name":"Basabe","match_name":"L. Basabe","common_name":"Luis Basabe","date_of_birth":"1996-08-26","place_of_birth":"","country_of_birth":"Venezuela","nationality":"Venezuela","position":"Center Fielder"},{"people_id":"3244140","membership_id":"2988459","first_name":"Dylan","last_name":"Cease","match_name":"D. Cease","common_name":"Dylan Cease","date_of_birth":"1995-12-28","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Pitcher"},{"people_id":"3244141","membership_id":"2988460","first_name":"Ian","last_name":"Clarkin","match_name":"I. Clarkin","common_name":"Ian Clarkin","date_of_birth":"1995-02-14","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Pitcher"},{"people_id":"353517","membership_id":"2988461","first_name":"Alexander Manuel","last_name":"Colomé","match_name":"A. Colomé","common_name":"Alex Colomé","date_of_birth":"1988-12-31","place_of_birth":"Santo Domingo","country_of_birth":"Dominican Republic","nationality":"Dominican Republic","position":"Relief Pitcher"},{"people_id":"354923","membership_id":"2988462","first_name":"Carson","last_name":"Fulmer","match_name":"C. Fulmer","common_name":"Carson Fulmer","date_of_birth":"1993-12-13","place_of_birth":"Lakeland, FL","country_of_birth":"United States","nationality":"United States","position":"Starting Pitcher"},{"people_id":"3098730","membership_id":"2988463","first_name":"Eloy","last_name":"Jimenez","match_name":"E. Jimenez","common_name":"Eloy Jimenez","date_of_birth":"1996-11-27","place_of_birth":"","country_of_birth":"Dominican Republic","nationality":"Dominican Republic","position":"Right Fielder"},{"people_id":"124540","membership_id":"2988464","first_name":"James","last_name":"McCann","match_name":"J. McCann","common_name":"James McCann","date_of_birth":"1990-06-13","place_of_birth":"Santa Barbara, CA","country_of_birth":"United States","nationality":"United States","position":"Catcher"},{"people_id":"3244142","membership_id":"2988465","first_name":"Kodi","last_name":"Medeiros","match_name":"K. Medeiros","common_name":"Kodi Medeiros","date_of_birth":"1996-05-25","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Pitcher"},{"people_id":"353470","membership_id":"2988466","first_name":"Ivan","last_name":"Nova","match_name":"I. Nova","common_name":"Ivan Nova","date_of_birth":"1987-01-12","place_of_birth":"Palenque","country_of_birth":"Dominican Republic","nationality":"Dominican Republic","position":"Starting Pitcher"},{"people_id":"3082149","membership_id":"2988467","first_name":"Jordan","last_name":"Stephens","match_name":"J. Stephens","common_name":"Jordan Stephens","date_of_birth":"1992-09-12","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Pitcher"},{"people_id":"126277","membership_id":"2988468","first_name":"Charlie","last_name":"Tilson","match_name":"C. Tilson","common_name":"Charlie Tilson","date_of_birth":"1992-12-02","place_of_birth":"Wilmette, IL","country_of_birth":"United States","nationality":"United States","position":"Center Fielder"},{"people_id":"3098731","membership_id":"2988469","first_name":"Seby","last_name":"Zavala","match_name":"S. Zavala","common_name":"Seby Zavala","date_of_birth":"1993-08-28","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Catcher"},{"people_id":"353371","membership_id":"3041628","first_name":"Kelvin De Jesus","last_name":"Herrera","match_name":"K. Herrera","common_name":"Kelvin Herrera","date_of_birth":"1989-12-31","place_of_birth":"Tenares","country_of_birth":"Dominican Republic","nationality":"Dominican Republic","position":"Relief Pitcher"},{"people_id":"353381","membership_id":"3059239","first_name":"Ervin Ramon","last_name":"Santana","match_name":"E. Santana","common_name":"Ervin Santana","date_of_birth":"1982-12-12","place_of_birth":"San Cristóbal","country_of_birth":"Dominican Republic","nationality":"Dominican Republic","position":"Starting Pitcher"},{"people_id":"354106","membership_id":"3062982","first_name":"Joshua Michael","last_name":"Osich","match_name":"J. Osich","common_name":"Josh Osich","date_of_birth":"1988-09-03","place_of_birth":"Boise, ID","country_of_birth":"United States","nationality":"United States","position":"Relief Pitcher"},{"people_id":"124133","membership_id":"3086711","first_name":"Evan","last_name":"Marshall","match_name":"E. Marshall","common_name":"Evan Marshall","date_of_birth":"1990-04-18","place_of_birth":"Sunnyvale, CA","country_of_birth":"United States","nationality":"United States","position":"Relief Pitcher"},{"people_id":"124133","membership_id":"3136507","first_name":"Evan","last_name":"Marshall","match_name":"E. Marshall","common_name":"Evan Marshall","date_of_birth":"1990-04-18","place_of_birth":"Sunnyvale, CA","country_of_birth":"United States","nationality":"United States","position":"Relief Pitcher"},{"people_id":"125751","membership_id":"3141584","first_name":"Odrisamer","last_name":"Despaigne","match_name":"O. Despaigne","common_name":"Odrisamer Despaigne","date_of_birth":"1987-04-04","place_of_birth":"La Habana","country_of_birth":"Cuba","nationality":"Cuba","position":"Starting Pitcher"},{"people_id":"3298449","membership_id":"3149743","first_name":"Zack","last_name":"Collins","match_name":"Z. Collins","common_name":"Zack Collins","date_of_birth":"1995-02-06","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"Catcher"},{"people_id":"354058","membership_id":"3157297","first_name":"Jonathan Henry","last_name":"Jay","match_name":"J. Jay","common_name":"Jon Jay","date_of_birth":"1985-03-15","place_of_birth":"Miami, FL","country_of_birth":"United States","nationality":"United States","position":"Center Fielder"},{"people_id":"124499","membership_id":"3163075","first_name":"Ross","last_name":"Detwiler","match_name":"R. Detwiler","common_name":"Ross Detwiler","date_of_birth":"1986-03-06","place_of_birth":"St. Louis, MO","country_of_birth":"United States","nationality":"United States","position":"Relief Pitcher"},{"people_id":"354333","membership_id":"3184398","first_name":"A.J.","last_name":"Reed","match_name":"A. Reed","common_name":"A.J. Reed","date_of_birth":"1993-05-10","place_of_birth":"Terre Haute, IN","country_of_birth":"United States","nationality":"United States","position":"First baseman"},{"people_id":"353557","membership_id":"3188669","first_name":"Ryan Matthew","last_name":"Goins","match_name":"R. Goins","common_name":"Ryan Goins","date_of_birth":"1988-02-13","place_of_birth":"Temple, TX","country_of_birth":"United States","nationality":"United States","position":"Shortstop"},{"people_id":"126173","membership_id":"3190210","first_name":"Jimmy","last_name":"Cordero","match_name":"J. Cordero","common_name":"Jimmy Cordero","date_of_birth":"1991-10-19","place_of_birth":"San Cristóbal","country_of_birth":"Dominican Republic","nationality":"Dominican Republic","position":"Relief Pitcher"},{"people_id":"446520","membership_id":"3198868","first_name":"Matt","last_name":"Skole","match_name":"M. Skole","common_name":"Matt Skole","date_of_birth":"1989-07-30","place_of_birth":"","country_of_birth":"United States","nationality":"United States","position":"First baseman"},{"people_id":"353603","membership_id":"3201768","first_name":"Hector Felipe","last_name":"Santiago","match_name":"H. Santiago","common_name":"Hector Santiago","date_of_birth":"1987-12-16","place_of_birth":"Newark, NJ","country_of_birth":"United States","nationality":"United States","position":"Starting Pitcher"}]},"staff":{"people":{"people_id":"175211","membership_id":"1250709","first_name":"Rick","last_name":"Renteria","match_name":"R. Renteria","common_name":"Rick Renteria","date_of_birth":"1961-12-25","place_of_birth":"Harbor City, CA","country_of_birth":"United States","nationality":"United States","role":"coach"}}}}