Subscription to this function is not available for your account. To upgrade and receive access to this contact sales@datasportsgroup.com
GET /rugby/get_peoples
Returns person informations and list of teams the person were member of.
Request URL
https://dsg-api.com/clients/{client_name}/rugby/get_peoples?id={people_id}&client={client_name}&authkey={client_authkey}
Parameters
authkey
string Required
client authentification key
ftype
string
changes feed type from XML to json (ftype=json)
id
int Required
player id to return
lang
string
two-character language code, defaults to 'en'
Nodes
competition
player statistics per competition
appearances
number of appearances (starting 11 + sub in)
competition_id
unique identifier for a competition.
competition_name
name of the competition.
comp_area_id
unique identifier for area.
comp_format
competition format to filter out leagues or cups
conversions
number of conversions made
drop_goals
number of drop_goals made
lineups
number of games started in lineup
penalties
number of penalties made
points
number of points made
red_cards
number of red cards received
subs_on_bench
number of subs on bench
tries
number of tries made
yellow_cards
number of yellow cards received
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
main_club_career
player statistics in all club competitions
appearances
number of appearances (starting 11 + sub in)
conversions
number of conversions made
drop_goals
number of drop_goals made
lineups
number of games started in lineup
penalties
number of penalties made
points
number of points made
red_cards
number of red cards received
subs_on_bench
number of subs on bench
tries
number of tries made
yellow_cards
number of yellow cards received
main_national_team_career
player statistics in all national team competitions
appearances
number of appearances (starting 11 + sub in)
conversions
number of conversions made
drop_goals
number of drop_goals made
lineups
number of games started in lineup
penalties
number of penalties made
points
number of points made
red_cards
number of red cards received
subs_on_bench
number of subs on bench
tries
number of tries made
yellow_cards
number of yellow cards received
match
Details about match
attendance
amount of people that attended the particular match
competition_id
unique identifier for a competition.
competition_name
name of the competition
date
Date of match, format 'yyyy-mm-dd' (CET)
date_utc
Date of match, format 'yyyy-mm-dd' (UTC)
et_a
extra-time score of home team
et_b
extra-time score of away team
final_period
display the period in which the match finished. ('soc_p2s','soc_ets','soc_pen')
gameweek
contains the gameweek a match belongs to.
last_updated
When record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
match_id
unique identifier of match.
p1s_a
half-time score of home team.
p1s_b
half-time score of away team.
p2s_a
2nd half score of home team
p2s_b
2nd half score of away team
round_id
unique identifier of round
rugby_type
rugby type (Union, League or Sevens)
score_a
full-time score of home team, including any goals in extra-time
score_b
full-time score of home team, including any goals in extra-time
season_id
unique identifier of a particular season
status
status of the game (Playing, Break, Played, Fixture, Postponed, Awarded, Cancelled, Suspended)
team_a_country
three-letter-acronym of the area where the home team origins.
team_a_id
unique team ID for the home team.
team_a_logo
URL to the team logo
team_a_name
current name of the home team.
team_a_original_name
the real name at the particular season (so can differ to current name)
team_a_short_name
short name of the home team.
team_a_tla_name
three-letter-acronym of the home team.
team_b_country
three-letter-acronym of the area where the home team origins.
team_b_id
unique team ID for the away team.
team_b_logo
URL to the team logo
team_b_name
current name of the away team.
team_b_original_name
the real name at the particular season (so can differ to current name)
team_b_short_name
short name of the away team.
team_b_tla_name
three-letter-acronym of the away team.
time
start time (CET), format 'hh:mm:ss'.
time_utc
start time (UTC), format 'hh:mm:ss'.
venue_city
city where the venue is based
venue_id
unique identifier of the venue
venue_name
current name of the venue
venue_type
determines if the match is on neutral ground or on home/away basis
winner
determines the winner of match ('team_A','team_B','draw','yet unknown')
membership
Membership handles the relation from a person to a team
active
Determines if person is still at the team ('yes') or not ('no').
end_date
End date of membership, format 'yyyy-mm-dd'.
last_updated
When record was last updated. Format YYYY-MM-DD HH:MM:SS. CET timezone.
membership_id
Unique identifier for the membership
role
type of role ('player', 'coach' or 'assistant_coach', 'goalkeeper_coach', 'local_coach', 'scout', 'sporting director')
rugby_type
rugby type of the team (Union, League or Sevens)
short_name
short name of the team.
start_date
Start date of membership, format 'yyyy-mm-dd'.
team_area
area name where team is located
team_area_id
unique identifier for an area
team_id
Unique identifier for team
team_name
current team name
type
type of the team ('club', 'national' or 'selection')
method
details about the API function
method_id
unique ID of method.
name
name of method.
people
Basic information about the person
common_name
common name of the person
country_of_birth
name of the country the person was born
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.
match_name
shortened match name of the person
nationality
current nationality of the person
people_id
unique identifier for person
place_of_birth
name of city the person was born
player_picture
full path URL of player headshot, size can be changed via the picsize parameter
position
position of the player
status
status of the player ('active', 'retired' or 'dead')
weight
Weight of person in kilograms.
season_statistic
player statistics per season
appearances
number of appearances (starting 11 + sub in)
competition_name
name of the competition.
comp_area_id
unique identifier for area.
comp_format
competition format to filter out leagues or cups
conversions
number of conversions made
drop_goals
number of drop_goals made
last_updated
when record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
lineups
number of games started in lineup
original_name
competition name during this season
penalties
number of penalties made
points
number of points made
red_cards
number of red cards received
season_id
unique identifier for season
shirtnumber
shirtnumber for the particular season
start_date
Start date of season, format 'yyyy-mm-dd'.
subs_on_bench
number of subs on bench
title
title of season
tries
number of tries made
yellow_cards
number of yellow cards received
youth_club_career
player statistics in all youth club competitions
appearances
number of appearances (starting 11 + sub in)
conversions
number of conversions made
drop_goals
number of drop_goals made
lineups
number of games started in lineup
penalties
number of penalties made
points
number of points made
red_cards
number of red cards received
subs_on_bench
number of subs on bench
tries
number of tries made
yellow_cards
number of yellow cards received
youth_national_team_career
player statistics in all youth national team competitions
appearances
number of appearances (starting 11 + sub in)
conversions
number of conversions made
drop_goals
number of drop_goals made
lineups
number of games started in lineup
penalties
number of penalties made
points
number of points made
red_cards
number of red cards received
subs_on_bench
number of subs on bench
tries
number of tries made
yellow_cards
number of yellow cards received
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_peoples?id={people_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_peoples?id={people_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_peoples?id={people_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_peoples?id={people_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"1.0","sport":"rugby","lang":"en","method":{"method_id":"104","name":"get_peoples"},"people":{"people_id":"224735","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","gender":"male","height":"196","weight":"111","position":"Lock","player_picture":"","career_summary":{"main_club_career":{"appearances":"31","lineups":"30","subs_on_bench":"1","tries":"1","conversions":"0","penalties":"0","drop_goals":"0","points":"5","yellow_cards":"0","red_cards":"0","minutes_played":"0","competition":[{"competition_id":"1100","competition_name":"Super Rugby","comp_area_id":"1","comp_format":"domestic_league","appearances":"13","lineups":"13","subs_on_bench":"0","tries":"0","conversions":"0","penalties":"0","drop_goals":"0","points":"0","yellow_cards":"0","red_cards":"0","minutes_played":""},{"competition_id":"1034","competition_name":"Top 14","comp_area_id":"76","comp_format":"domestic_league","appearances":"18","lineups":"17","subs_on_bench":"1","tries":"1","conversions":"0","penalties":"0","drop_goals":"0","points":"5","yellow_cards":"0","red_cards":"0","minutes_played":""}]},"youth_club_career":[],"main_national_team_career":[],"youth_national_team_career":[]},"membership":[{"membership_id":"2142212","team_id":"30741","team_name":"Union Bordeaux Bègles","short_name":"Union Bordeaux","team_area":"France","type":"club","start_date":"2016-10-01","end_date":"","role":"player","active":"yes","last_updated":"2017-11-25 12:15:29","season_statistic":[{"season_id":"17159","title":"2018\/2019","competition_name":"Top 14","original_name":"Top 14","comp_area_id":"76","comp_format":"domestic_league","appearances":"1","lineups":"1","subs_on_bench":"0","tries":"0","conversions":"0","penalties":"0","drop_goals":"0","points":"0","yellow_cards":"0","red_cards":"0","minutes_played":"","shirtnumber":"4","last_updated":"2018-09-15 18:03:06"},{"season_id":"17143","title":"2017\/2018","competition_name":"Top 14","original_name":"Top 14","comp_area_id":"76","comp_format":"domestic_league","appearances":"17","lineups":"16","subs_on_bench":"1","tries":"1","conversions":"0","penalties":"0","drop_goals":"0","points":"5","yellow_cards":"0","red_cards":"0","minutes_played":"","shirtnumber":"4","last_updated":"2018-07-12 20:00:13"}]},{"membership_id":"2142216","team_id":"30755","team_name":"Australia","short_name":"Australia","team_area":"Australia","type":"national","start_date":"2014-01-01","end_date":"","role":"player","active":"yes","last_updated":"2017-11-25 12:15:29"},{"membership_id":"2142214","team_id":"30769","team_name":"Melbourne Rebels","short_name":"Rebels","team_area":"Australia","type":"club","start_date":"2011-02-01","end_date":"2016-09-30","role":"player","active":"no","last_updated":"2017-11-25 12:15:29","season_statistic":{"season_id":"14352","title":"2016","competition_name":"Super Rugby","original_name":"Super Rugby","comp_area_id":"1","comp_format":"domestic_league","appearances":"13","lineups":"13","subs_on_bench":"0","tries":"0","conversions":"0","penalties":"0","drop_goals":"0","points":"0","yellow_cards":"0","red_cards":"0","minutes_played":"","shirtnumber":"4","last_updated":"2017-11-30 22:55:32"}},{"membership_id":"2142213","team_id":"30757","team_name":"Western Force","short_name":"Western Force","team_area":"Australia","type":"club","start_date":"2010-02-01","end_date":"2010-12-31","role":"player","active":"no","last_updated":"2017-11-25 12:15:29"},{"membership_id":"2142215","team_id":"31295","team_name":"Australia U20","short_name":"Australia U20","team_area":"Australia","type":"national","start_date":"2010-01-01","end_date":"2010-12-31","role":"player","active":"no","last_updated":"2017-11-25 12:15:29"}],"last_matches":{"match":[{"match_id":"1379999","competition_id":"1034","season_id":"17143","round_id":"23098","date":"2018-01-06","time":"14:45:00","date_utc":"2018-01-06","time_utc":"13:45:00","team_a_id":"30741","team_a_name":"Union Bordeaux Bègles","team_a_short_name":"Union Bordeaux","team_a_tla_name":"UBB","team_a_original_name":"Union Bordeaux Bègles","team_a_country":"FRA","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/30741.png","team_b_id":"30746","team_b_name":"Lyon OU","team_b_short_name":"Lyon OU","team_b_tla_name":"LOU","team_b_original_name":"Lyon OU","team_b_country":"FRA","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/30746.png","status":"Played","gameweek":"15","winner":"team_A","score_a":"19","score_b":"10","p1s_a":"6","p1s_b":"0","p2s_a":"13","p2s_b":"10","et_a":"","et_b":"","venue_type":"home_away","final_period":"rug_p2s","attendance":"19185","venue_id":"63","venue_name":"Stade Jacques Chaban-Delmas","venue_city":"Bordeaux","last_updated":"2018-07-11 19:26:44"},{"match_id":"1380006","competition_id":"1034","season_id":"17143","round_id":"23098","date":"2018-01-27","time":"14:45:00","date_utc":"2018-01-27","time_utc":"13:45:00","team_a_id":"30752","team_a_name":"RC Toulonnais","team_a_short_name":"RC Toulonnais","team_a_tla_name":"RCT","team_a_original_name":"RC Toulonnais","team_a_country":"FRA","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/30752.png","team_b_id":"30741","team_b_name":"Union Bordeaux Bègles","team_b_short_name":"Union Bordeaux","team_b_tla_name":"UBB","team_b_original_name":"Union Bordeaux Bègles","team_b_country":"FRA","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/30741.png","status":"Played","gameweek":"16","winner":"team_A","score_a":"36","score_b":"12","p1s_a":"31","p1s_b":"5","p2s_a":"5","p2s_b":"7","et_a":"","et_b":"","venue_type":"home_away","final_period":"rug_p2s","attendance":"15192","venue_id":"12553","venue_name":"Stade Mayol","venue_city":"Toulon","last_updated":"2018-07-11 19:26:44"},{"match_id":"1380018","competition_id":"1034","season_id":"17143","round_id":"23098","date":"2018-02-18","time":"12:30:00","date_utc":"2018-02-18","time_utc":"11:30:00","team_a_id":"30741","team_a_name":"Union Bordeaux Bègles","team_a_short_name":"Union Bordeaux","team_a_tla_name":"UBB","team_a_original_name":"Union Bordeaux Bègles","team_a_country":"FRA","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/30741.png","team_b_id":"30743","team_b_name":"Castres Olympique","team_b_short_name":"Castres Olymp.","team_b_tla_name":"CAS","team_b_original_name":"Castres Olympique","team_b_country":"FRA","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/30743.png","status":"Played","gameweek":"17","winner":"team_B","score_a":"6","score_b":"7","p1s_a":"3","p1s_b":"7","p2s_a":"3","p2s_b":"0","et_a":"","et_b":"","venue_type":"home_away","final_period":"rug_p2s","attendance":"20172","venue_id":"63","venue_name":"Stade Jacques Chaban-Delmas","venue_city":"Bordeaux","last_updated":"2018-07-11 19:26:44"},{"match_id":"1380031","competition_id":"1034","season_id":"17143","round_id":"23098","date":"2018-03-03","time":"20:45:00","date_utc":"2018-03-03","time_utc":"19:45:00","team_a_id":"30741","team_a_name":"Union Bordeaux Bègles","team_a_short_name":"Union Bordeaux","team_a_tla_name":"UBB","team_a_original_name":"Union Bordeaux Bègles","team_a_country":"FRA","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/30741.png","team_b_id":"30753","team_b_name":"Stade Toulousain","team_b_short_name":"St. Toulousain","team_b_tla_name":"STT","team_b_original_name":"Stade Toulousain","team_b_country":"FRA","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/30753.png","status":"Played","gameweek":"19","winner":"team_B","score_a":"19","score_b":"25","p1s_a":"7","p1s_b":"14","p2s_a":"12","p2s_b":"11","et_a":"","et_b":"","venue_type":"home_away","final_period":"rug_p2s","attendance":"24000","venue_id":"63","venue_name":"Stade Jacques Chaban-Delmas","venue_city":"Bordeaux","last_updated":"2018-07-11 19:26:44"},{"match_id":"1380035","competition_id":"1034","season_id":"17143","round_id":"23098","date":"2018-03-10","time":"20:30:00","date_utc":"2018-03-10","time_utc":"19:30:00","team_a_id":"30741","team_a_name":"Union Bordeaux Bègles","team_a_short_name":"Union Bordeaux","team_a_tla_name":"UBB","team_a_original_name":"Union Bordeaux Bègles","team_a_country":"FRA","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/30741.png","team_b_id":"35013","team_b_name":"US Oyonnax Rugby","team_b_short_name":"Oyonnax Rugby","team_b_tla_name":"OYO","team_b_original_name":"US Oyonnax Rugby","team_b_country":"FRA","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/35013.png","status":"Played","gameweek":"20","winner":"team_B","score_a":"20","score_b":"26","p1s_a":"13","p1s_b":"20","p2s_a":"7","p2s_b":"6","et_a":"","et_b":"","venue_type":"home_away","final_period":"rug_p2s","attendance":"20000","venue_id":"63","venue_name":"Stade Jacques Chaban-Delmas","venue_city":"Bordeaux","last_updated":"2018-07-11 19:26:44"},{"match_id":"1382059","competition_id":"1034","season_id":"17159","round_id":"23204","date":"2018-09-15","time":"18:00:00","date_utc":"2018-09-15","time_utc":"16:00:00","team_a_id":"37085","team_a_name":"SU Agen","team_a_short_name":"SU Agen","team_a_tla_name":"SUA","team_a_original_name":"SU Agen","team_a_country":"FRA","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/37085.png","team_b_id":"30741","team_b_name":"Union Bordeaux Bègles","team_b_short_name":"Union Bordeaux","team_b_tla_name":"UBB","team_b_original_name":"Union Bordeaux Bègles","team_b_country":"FRA","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/30741.png","status":"Played","gameweek":"4","winner":"team_A","score_a":"22","score_b":"17","p1s_a":"16","p1s_b":"3","p2s_a":"6","p2s_b":"14","et_a":"","et_b":"","venue_type":"home_away","final_period":"rug_p2s","attendance":"8288","venue_id":"12552","venue_name":"Stade Armandie","venue_city":"Agen","last_updated":"2018-09-18 07:45:15"}]}}}}