Subscription to this function is not available for your account. To upgrade and receive access to this contact sales@datasportsgroup.com
v3 GET /rugby/get_squad
Returns a list of players linked to a team.
Request URL
https://dsg-api.com/clients/{client_name}/rugby/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 (soccer, rugby, australian football)
foot
Best/preferred foot of the player ('both', 'left' or 'right')
position
position value
season_statistic❯
player statistics per season (rugby)
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
conversions
value of the particular stat
drop_goals
value of the particular stat
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
penalties
value of the particular stat
points
value for total points gained
red_cards
value of the particular stat
season_id
unique identifier for season
shirtnumber
shirtnumber value
start_date
start date, format 'yyyy-mm-dd'
subs_on_bench
number of subs on bench
title
title of season
tries
value of the particular stat
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}/rugby/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}/rugby/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}/rugby/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}/rugby/get_squad?team={team_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example200 Success{"datasportsgroup":{"version":"1.0","sport":"rugby","lang":"en","method":{"method_id":"103","name":"get_squad"},"team":{"team_id":"30741","team_name":"Union Bordeaux Bègles","short_name":"Union Bordeaux","tla_name":"UBB","type":"club","gender":"male","status":"active","area_id":"76","area_name":"France","last_updated":"2018-08-25 17:40:27","people":[{"people_id":"224735","membership_id":"2142212","first_name":"Luke Maxwell","last_name":"Jones","match_name":"L. Jones","common_name":"Luke Jones","date_of_birth":"1991-04-02","place_of_birth":"Sydney, NSW","country_of_birth":"Australia","nationality":"Australia","position":"Lock"},{"people_id":"240319","membership_id":"2622514","first_name":"Jefferson","last_name":"Poirot","match_name":"J. Poirot","common_name":"Jefferson Poirot","date_of_birth":"1992-11-01","place_of_birth":"L'Isle-Adam","country_of_birth":"France","nationality":"France","position":"Prop"},{"people_id":"240325","membership_id":"2622536","first_name":"Adrien","last_name":"Pélissié","match_name":"A. Pélissié","common_name":"Adrien Pélissié","date_of_birth":"1990-08-07","place_of_birth":"Septfonds","country_of_birth":"France","nationality":"France","position":"Hooker"},{"people_id":"240329","membership_id":"2622544","first_name":"Marco","last_name":"Tauleigne","match_name":"M. Tauleigne","common_name":"Marco Tauleigne","date_of_birth":"1993-08-30","place_of_birth":"Montélimar","country_of_birth":"France","nationality":"France","position":"Back Row"},{"people_id":"240334","membership_id":"2622561","first_name":"Matthieu","last_name":"Jalibert","match_name":"M. Jalibert","common_name":"Matthieu Jalibert","date_of_birth":"1998-11-06","place_of_birth":"Saint-Germain-en-Laye","country_of_birth":"France","nationality":"France","position":"Fly Half"},{"people_id":"240379","membership_id":"2622738","first_name":"Baptiste","last_name":"Serin","match_name":"B. Serin","common_name":"Baptiste Serin","date_of_birth":"1994-06-20","place_of_birth":"La Teste-de-Buch","country_of_birth":"France","nationality":"France","position":"Scrum Half"},{"people_id":"264136","membership_id":"2718651","first_name":"Laurent","last_name":"Delboulbès","match_name":"L. Delboulbès","common_name":"Laurent Delboulbès","date_of_birth":"1986-11-17","place_of_birth":"Montauban","country_of_birth":"France","nationality":"France","position":"Prop"},{"people_id":"264231","membership_id":"2718814","first_name":"Vadim","last_name":"Cobîlaș","match_name":"V. Cobîlaș","common_name":"Vadim Cobîlaș","date_of_birth":"1983-07-30","place_of_birth":"Soroca","country_of_birth":"Moldova","nationality":"Moldova","position":"Prop"},{"people_id":"264232","membership_id":"2718816","first_name":"Jandré","last_name":"Marais","match_name":"J. Marais","common_name":"Jandré Marais","date_of_birth":"1989-06-14","place_of_birth":"Welkom, Free State","country_of_birth":"South Africa","nationality":"South Africa","position":"Lock"},{"people_id":"264233","membership_id":"2718817","first_name":"Mahamadou","last_name":"Diaby","match_name":"M. Diaby","common_name":"Mahamadou Diaby","date_of_birth":"1990-08-15","place_of_birth":"","country_of_birth":"France","nationality":"France","position":"Flanker"},{"people_id":"451541","membership_id":"2718819","first_name":"Leroy","last_name":"Houston","match_name":"L. Houston","common_name":"Leroy Houston","date_of_birth":"1986-11-10","place_of_birth":"Levin","country_of_birth":"New Zealand","nationality":"Australia","position":"Back Row"},{"people_id":"264235","membership_id":"2718820","first_name":"Yann","last_name":"Lesgourgues","match_name":"Y. Lesgourgues","common_name":"Yann Lesgourgues","date_of_birth":"1991-01-17","place_of_birth":"Bayonne","country_of_birth":"France","nationality":"France","position":"Scrum Half"},{"people_id":"264237","membership_id":"2718822","first_name":"Jean-Baptiste","last_name":"Dubié","match_name":"J. Dubié","common_name":"Jean-Baptiste Dubié","date_of_birth":"1989-07-16","place_of_birth":"","country_of_birth":"France","nationality":"France","position":"Centre"},{"people_id":"264238","membership_id":"2718824","first_name":"Julien","last_name":"Rey","match_name":"J. Rey","common_name":"Julien Rey","date_of_birth":"1986-09-01","place_of_birth":"Toulouse","country_of_birth":"France","nationality":"France","position":"Centre"},{"people_id":"452563","membership_id":"2718833","first_name":"Florian","last_name":"Dufour","match_name":"F. Dufour","common_name":"Florian Dufour","date_of_birth":"1997-10-29","place_of_birth":"","country_of_birth":"France","nationality":"France","position":"Hooker"},{"people_id":"264242","membership_id":"2718834","first_name":"Peni","last_name":"Ravai Kovekalou","match_name":"P. Ravai Kovekalou","common_name":"Peni Ravai","date_of_birth":"1990-06-16","place_of_birth":"","country_of_birth":"Fiji","nationality":"Fiji","position":"Hooker"},{"people_id":"264245","membership_id":"2718837","first_name":"Cyril","last_name":"Cazeaux","match_name":"C. Cazeaux","common_name":"Cyril Cazeaux","date_of_birth":"1995-02-10","place_of_birth":"Dax","country_of_birth":"France","nationality":"France","position":"Lock"},{"people_id":"264248","membership_id":"2718845","first_name":"Jean-Pascal","last_name":"Barraque","match_name":"J. Barraque","common_name":"Jean-Pascal Barraque","date_of_birth":"1991-04-24","place_of_birth":"Le Chesnay","country_of_birth":"France","nationality":"France","position":"Fly Half"},{"people_id":"264367","membership_id":"2719032","first_name":"Nans","last_name":"Ducuing","match_name":"N. Ducuing","common_name":"Nans Ducuing","date_of_birth":"1991-11-06","place_of_birth":"","country_of_birth":"France","nationality":"France","position":"Full Back"},{"people_id":"264372","membership_id":"2719043","first_name":"Blair","last_name":"Connor","match_name":"B. Connor","common_name":"Blair Connor","date_of_birth":"1988-09-29","place_of_birth":"Brisbane, QLD","country_of_birth":"Australia","nationality":"Australia","position":"Wing"},{"people_id":"264373","membership_id":"2719045","first_name":"Luke Gary","last_name":"Braid","match_name":"L. Braid","common_name":"Luke Braid","date_of_birth":"1988-10-05","place_of_birth":"Tauranga","country_of_birth":"New Zealand","nationality":"New Zealand","position":"Flanker"},{"people_id":"264374","membership_id":"2719048","first_name":"Cameron","last_name":"Woki","match_name":"C. Woki","common_name":"Cameron Woki","date_of_birth":"1998-11-07","place_of_birth":"","country_of_birth":"France","nationality":"France","position":"Flanker"},{"people_id":"264376","membership_id":"2719050","first_name":"Thierry","last_name":"Paiva","match_name":"T. Paiva","common_name":"Thierry Paiva","date_of_birth":"1995-11-19","place_of_birth":"","country_of_birth":"France","nationality":"France","position":"Prop"},{"people_id":"264380","membership_id":"2719058","first_name":"Maxime","last_name":"Lamothe","match_name":"M. Lamothe","common_name":"Maxime Lamothe","date_of_birth":"1998-10-03","place_of_birth":"","country_of_birth":"France","nationality":"France","position":"Hooker"},{"people_id":"264386","membership_id":"2719072","first_name":"Neville","last_name":"Edwards","match_name":"N. Edwards","common_name":"Neville Edwards","date_of_birth":"1987-11-22","place_of_birth":"","country_of_birth":"England","nationality":"England","position":"Wing"},{"people_id":"264388","membership_id":"2719073","first_name":"Clément","last_name":"Maynadier","match_name":"C. Maynadier","common_name":"Clément Maynadier","date_of_birth":"1988-10-11","place_of_birth":"Toulouse","country_of_birth":"France","nationality":"France","position":"Hooker"},{"people_id":"452561","membership_id":"2719077","first_name":"Alexandre","last_name":"Roumat","match_name":"A. Roumat","common_name":"Alexandre Roumat","date_of_birth":"1997-06-27","place_of_birth":"Dax","country_of_birth":"France","nationality":"France","position":"Back Row"},{"people_id":"264389","membership_id":"2719081","first_name":"Jules","last_name":"Gimbert","match_name":"J. Gimbert","common_name":"Jules Gimbert","date_of_birth":"1998-03-02","place_of_birth":"","country_of_birth":"France","nationality":"France","position":"Scrum Half"},{"people_id":"452565","membership_id":"2719119","first_name":"Geoffrey","last_name":"Cros","match_name":"G. Cros","common_name":"Geoffrey Cros","date_of_birth":"1997-03-08","place_of_birth":"","country_of_birth":"France","nationality":"France","position":"Full Back"},{"people_id":"264404","membership_id":"2719121","first_name":"Romain","last_name":"Lonca","match_name":"R. Lonca","common_name":"Romain Lonca","date_of_birth":"1991-11-26","place_of_birth":"","country_of_birth":"France","nationality":"France","position":"Full Back"},{"people_id":"452556","membership_id":"2749860","first_name":"Romain","last_name":"Buros","match_name":"R. Buros","common_name":"Romain Buros","date_of_birth":"1997-07-31","place_of_birth":"","country_of_birth":"France","nationality":"France","position":"Full Back"},{"people_id":"264183","membership_id":"2749861","first_name":"Lekso","last_name":"Kaulashvili","match_name":"L. Kaulashvili","common_name":"Lekso Kaulashvili","date_of_birth":"1992-08-27","place_of_birth":"Tbilisi","country_of_birth":"Georgia","nationality":"Georgia","position":"Prop"},{"people_id":"451050","membership_id":"2749862","first_name":"Setareki","last_name":"Tamanivalu","match_name":"S. Tamanivalu","common_name":"Seta Tamanivalu","date_of_birth":"1992-07-23","place_of_birth":"Lautoka","country_of_birth":"Fiji","nationality":"New Zealand","position":"Centre"},{"people_id":"264004","membership_id":"2749863","first_name":"Semi","last_name":"Radrara Turagasoli Waqavatu","match_name":"S. Radrara","common_name":"Semi Radrara","date_of_birth":"1992-06-13","place_of_birth":"Suva","country_of_birth":"Fiji","nationality":"Fiji","position":"Wing"},{"people_id":"264223","membership_id":"2749864","first_name":"Brock","last_name":"James","match_name":"B. James","common_name":"Brock James","date_of_birth":"1981-10-22","place_of_birth":"","country_of_birth":"Australia","nationality":"Australia","position":"Fly Half"},{"people_id":"263950","membership_id":"2749865","first_name":"George","last_name":"Tilsley","match_name":"G. Tilsley","common_name":"George Tilsley","date_of_birth":"1992-02-27","place_of_birth":"","country_of_birth":"New Zealand","nationality":"New Zealand","position":"Full Back"},{"people_id":"450960","membership_id":"2749866","first_name":"Eto","last_name":"Nabuli","match_name":"E. Nabuli","common_name":"Eto Nabuli","date_of_birth":"1988-08-24","place_of_birth":"Sigatoka","country_of_birth":"Fiji","nationality":"Australia","position":"Wing"},{"people_id":"450967","membership_id":"2749867","first_name":"Kane","last_name":"Douglas","match_name":"K. Douglas","common_name":"Kane Douglas","date_of_birth":"1989-06-01","place_of_birth":"Maclean, NSW","country_of_birth":"Australia","nationality":"Australia","position":"Lock"},{"people_id":"264097","membership_id":"2749868","first_name":"Ulupano","last_name":"Seuteni","match_name":"U. Seuteni","common_name":"UJ Seuteni","date_of_birth":"1993-12-09","place_of_birth":"Adelaide, SA","country_of_birth":"Australia","nationality":"Australia","position":"Centre"},{"people_id":"264371","membership_id":"2749869","first_name":"Afaesetiti","last_name":"Amosa","match_name":"A. Amosa","common_name":"Afa Amosa","date_of_birth":"1990-10-11","place_of_birth":"","country_of_birth":"Samoa","nationality":"Samoa","position":"Lock"},{"people_id":"264059","membership_id":"2749870","first_name":"Viliamu","last_name":"Afatia","match_name":"V. Afatia","common_name":"Viliamu Afatia","date_of_birth":"1990-05-24","place_of_birth":"Apia","country_of_birth":"Samoa","nationality":"Samoa","position":"Prop"},{"people_id":"452480","membership_id":"2749871","first_name":"Lasha","last_name":"Tabidze","match_name":"L. Tabidze","common_name":"Lasha Tabidze","date_of_birth":"1997-07-04","place_of_birth":"","country_of_birth":"Georgia","nationality":"Georgia","position":"Prop"},{"people_id":"452564","membership_id":"2749872","first_name":"Nathan","last_name":"Decron","match_name":"N. Decron","common_name":"Nathan Decron","date_of_birth":"1998-02-17","place_of_birth":"","country_of_birth":"France","nationality":"France","position":"Centre"},{"people_id":"3143955","membership_id":"2761050","first_name":"Nicolas","last_name":"Plazy","match_name":"N. Plazy","common_name":"Nicolas Plazy","date_of_birth":"1994-05-17","place_of_birth":"","country_of_birth":"France","nationality":"France","position":"Wing"},{"people_id":"3153607","membership_id":"2765723","first_name":"Lucas","last_name":"Meret","match_name":"L. Meret","common_name":"Lucas Meret","date_of_birth":"1995-01-30","place_of_birth":"","country_of_birth":"France","nationality":"France","position":"Fly Half"},{"people_id":"3153608","membership_id":"2765724","first_name":"Beka","last_name":"Gorgadze","match_name":"B. Gorgadze","common_name":"Beka Gorgadze","date_of_birth":"1996-02-08","place_of_birth":"","country_of_birth":"France","nationality":"France","position":"Back Row"},{"people_id":"3168740","membership_id":"2816340","first_name":"Lucas","last_name":"Lebraud","match_name":"L. Lebraud","common_name":"Lucas Lebraud","date_of_birth":"1997-04-08","place_of_birth":"","country_of_birth":"France","nationality":"France","position":"Centre"},{"people_id":"243188","membership_id":"2837467","first_name":"Mariano","last_name":"Galarza","match_name":"M. Galarza","common_name":"Mariano Galarza","date_of_birth":"1986-11-12","place_of_birth":"","country_of_birth":"Argentina","nationality":"Argentina","position":"Lock"},{"people_id":"3254983","membership_id":"3000634","first_name":"Enzo","last_name":"Baggiani","match_name":"E. Baggiani","common_name":"Enzo Baggiani","date_of_birth":"","place_of_birth":"","country_of_birth":"France","nationality":"France","position":"Prop"},{"people_id":"2137226","membership_id":"3000635","first_name":"Greg","last_name":"Peterson","match_name":"G. Peterson","common_name":"Greg Peterson","date_of_birth":"1991-03-26","place_of_birth":"","country_of_birth":"Scotland","nationality":"Scotland","position":"Lock"}]},"staff":[]}}