Subscription to this function is not available for your account. To upgrade and receive access to this contact sales@datasportsgroup.com
GET /ice_hockey/get_peoples
Returns person informations and list of teams the person were member of.
Request URL
https://dsg-api.com/clients/{client_name}/ice_hockey/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 season
appearances
number of appearances
assists
number of assists
competition_id
unique identifier for competition
competition_name
name of the competition.
comp_area_id
unique identifier for area.
comp_format
competition format to filter out leagues or cups
goals
number of goals made
penalty_minutes
number of penalty minutes
points
number of points
pp_goals
number of power-play goals
sh_goals
number of short-handed goals
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
assists
number of assists
goals
number of goals made
penalty_minutes
number of penalty minutes
points
number of points
pp_goals
number of power-play goals
sh_goals
number of short-handed goals
main_national_team_career
player statistics in all national team competitions
appearances
number of appearances
assists
number of assists
goals
number of goals made
penalty_minutes
number of penalty minutes
points
number of points
pp_goals
number of power-play goals
sh_goals
number of short-handed goals
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')
short_name
short name of the team.
start_date
Start date of membership, format 'yyyy-mm-dd'.
team_area_id
unique identifier for an area
team_area_name
area name where team is located
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
country_of_birth_area_id
unique identifier for an area
date_of_birth
birth 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
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 player headshot, size can be changed via the picsize parameter
place_of_birth
name of city the person was born
short_name
shortened match name of the person
weight
Weight of person in kilograms.
people_extra
extra details about the people
position
position of the particular player
shoots
shooting style of the player (left or right)
season_statistic
player statistics per season
appearances
number of appearances
assists
number of assists
competition_name
name of the competition.
comp_area_id
unique identifier for area.
comp_format
competition format to filter out leagues or cups
penalty_minutes
number of penalty minutes
points
number of points
pp_goals
number of power-play goals
shirtnumber
shirtnumber for the particular season
sh_goals
number of short-handed goals
start_date
Start date of season, format 'yyyy-mm-dd'.
youth_club_career
player statistics in all youth club competitions
appearances
number of appearances
assists
number of assists
goals
number of goals made
penalty_minutes
number of penalty minutes
points
number of points
pp_goals
number of power-play goals
sh_goals
number of short-handed goals
youth_national_team_career
player statistics in all youth national team competitions
appearances
number of appearances
assists
number of assists
goals
number of goals made
penalty_minutes
number of penalty minutes
points
number of points
pp_goals
number of power-play goals
sh_goals
number of short-handed goals
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}/ice_hockey/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}/ice_hockey/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}/ice_hockey/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}/ice_hockey/get_peoples?id={people_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"1.0","sport":"ice_hockey","lang":"en","method":{"method_id":"82","name":"get_peoples"},"people":{"people_id":"354971","first_name":"Dmitry","last_name":"Buinitsky","match_name":"D. Buinitsky","common_name":"Dmitry Buinitsky","date_of_birth":"1997-03-01","place_of_birth":"Vitebsk","country_of_birth":"Belarus","nationality":"Belarus","gender":"male","height":"184","weight":"78","shoots":"","position":"Forward","player_picture":"https:\/\/www.dsg-images.com\/players\/150x150\/354971.png","membership":{"membership_id":"483577","team_id":"25571","team_name":"HC Dinamo Minsk","short_name":"Dinamo Minsk","team_area":"Belarus","type":"club","start_date":"2015-01-01","end_date":"","role":"player","active":"yes","last_updated":"2017-08-23 17:45:43"},"last_matches":{"match":[{"match_id":"1421113","competition_id":"975","season_id":"17941","round_id":"23640","date":"2018-12-24","time":"15:00:00","date_utc":"2018-12-24","time_utc":"14:00:00","team_a_id":"25571","team_a_name":"HC Dinamo Minsk","team_a_short_name":"Dinamo Minsk","team_a_tla_name":"DIN","team_a_original_name":"HC Dinamo Minsk","team_a_country":"BLR","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25571.png","team_b_id":"25585","team_b_name":"AK Bars Kazan","team_b_short_name":"AK Bars Kazan","team_b_tla_name":"AKB","team_b_original_name":"AK Bars Kazan","team_b_country":"RUS","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25585.png","status":"Played","gameweek":"","winner":"team_A","score_a":"3","score_b":"2","p1s_a":"2","p1s_b":"0","p2s_a":"0","p2s_b":"0","p3s_a":"1","p3s_b":"2","ot_a":"","ot_b":"","so_a":"","so_b":"","venue_type":"home_away","final_period":"ice_p3s","attendance":"12129","venue_id":"9177","venue_name":"Minsk-Arena","venue_city":"Minsk","last_updated":"2019-01-17 23:58:12"},{"match_id":"1421118","competition_id":"975","season_id":"17941","round_id":"23640","date":"2018-12-26","time":"15:00:00","date_utc":"2018-12-26","time_utc":"14:00:00","team_a_id":"25590","team_a_name":"Traktor Chelyabinsk","team_a_short_name":"Traktor","team_a_tla_name":"TRA","team_a_original_name":"Traktor Chelyabinsk","team_a_country":"RUS","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25590.png","team_b_id":"25571","team_b_name":"HC Dinamo Minsk","team_b_short_name":"Dinamo Minsk","team_b_tla_name":"DIN","team_b_original_name":"HC Dinamo Minsk","team_b_country":"BLR","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25571.png","status":"Played","gameweek":"","winner":"team_A","score_a":"2","score_b":"1","p1s_a":"0","p1s_b":"0","p2s_a":"1","p2s_b":"1","p3s_a":"1","p3s_b":"0","ot_a":"","ot_b":"","so_a":"","so_b":"","venue_type":"home_away","final_period":"ice_p3s","attendance":"6975","venue_id":"9187","venue_name":"Traktor Arena","venue_city":"Chelyabinsk","last_updated":"2018-12-26 22:58:08"},{"match_id":"1421127","competition_id":"975","season_id":"17941","round_id":"23640","date":"2018-12-28","time":"15:00:00","date_utc":"2018-12-28","time_utc":"14:00:00","team_a_id":"25586","team_a_name":"Avtomobilist Yekaterinburg","team_a_short_name":"Avtomobilist","team_a_tla_name":"AVT","team_a_original_name":"Avtomobilist Yekaterinburg","team_a_country":"RUS","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25586.png","team_b_id":"25571","team_b_name":"HC Dinamo Minsk","team_b_short_name":"Dinamo Minsk","team_b_tla_name":"DIN","team_b_original_name":"HC Dinamo Minsk","team_b_country":"BLR","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25571.png","status":"Played","gameweek":"","winner":"team_A","score_a":"2","score_b":"1","p1s_a":"1","p1s_b":"1","p2s_a":"0","p2s_b":"0","p3s_a":"1","p3s_b":"0","ot_a":"","ot_b":"","so_a":"","so_b":"","venue_type":"home_away","final_period":"ice_p3s","attendance":"5300","venue_id":"9185","venue_name":"Uralets","venue_city":"Yekaterinburg","last_updated":"2018-12-28 22:58:03"},{"match_id":"1421139","competition_id":"975","season_id":"17941","round_id":"23640","date":"2018-12-30","time":"15:00:00","date_utc":"2018-12-30","time_utc":"14:00:00","team_a_id":"25581","team_a_name":"Lokomotiv Yaroslavl","team_a_short_name":"Lok Yaroslavl","team_a_tla_name":"LOK","team_a_original_name":"Lokomotiv Yaroslavl","team_a_country":"RUS","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25581.png","team_b_id":"25571","team_b_name":"HC Dinamo Minsk","team_b_short_name":"Dinamo Minsk","team_b_tla_name":"DIN","team_b_original_name":"HC Dinamo Minsk","team_b_country":"BLR","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25571.png","status":"Played","gameweek":"","winner":"team_B","score_a":"0","score_b":"3","p1s_a":"0","p1s_b":"1","p2s_a":"0","p2s_b":"1","p3s_a":"0","p3s_b":"1","ot_a":"","ot_b":"","so_a":"","so_b":"","venue_type":"home_away","final_period":"ice_p3s","attendance":"8000","venue_id":"9191","venue_name":"Arena 2000 Lokomotiv","venue_city":"Yaroslavl","last_updated":"2018-12-30 22:58:06"},{"match_id":"1421154","competition_id":"975","season_id":"17941","round_id":"23640","date":"2019-01-04","time":"17:30:00","date_utc":"2019-01-04","time_utc":"16:30:00","team_a_id":"25571","team_a_name":"HC Dinamo Minsk","team_a_short_name":"Dinamo Minsk","team_a_tla_name":"DIN","team_a_original_name":"HC Dinamo Minsk","team_a_country":"BLR","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25571.png","team_b_id":"25575","team_b_name":"SKA Saint Petersburg","team_b_short_name":"SKA","team_b_tla_name":"SKA","team_b_original_name":"SKA Saint Petersburg","team_b_country":"RUS","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25575.png","status":"Played","gameweek":"","winner":"team_B","score_a":"0","score_b":"2","p1s_a":"0","p1s_b":"0","p2s_a":"0","p2s_b":"0","p3s_a":"0","p3s_b":"2","ot_a":"","ot_b":"","so_a":"","so_b":"","venue_type":"home_away","final_period":"ice_p3s","attendance":"15086","venue_id":"9177","venue_name":"Minsk-Arena","venue_city":"Minsk","last_updated":"2019-01-04 23:58:04"},{"match_id":"1421165","competition_id":"975","season_id":"17941","round_id":"23640","date":"2019-01-06","time":"15:00:00","date_utc":"2019-01-06","time_utc":"14:00:00","team_a_id":"25571","team_a_name":"HC Dinamo Minsk","team_a_short_name":"Dinamo Minsk","team_a_tla_name":"DIN","team_a_original_name":"HC Dinamo Minsk","team_a_country":"BLR","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25571.png","team_b_id":"25578","team_b_name":"HC CSKA Moskva","team_b_short_name":"CSKA Moskva","team_b_tla_name":"CSK","team_b_original_name":"HC CSKA Moskva","team_b_country":"RUS","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25578.png","status":"Played","gameweek":"","winner":"team_B","score_a":"1","score_b":"2","p1s_a":"0","p1s_b":"1","p2s_a":"0","p2s_b":"1","p3s_a":"1","p3s_b":"0","ot_a":"","ot_b":"","so_a":"","so_b":"","venue_type":"home_away","final_period":"ice_p3s","attendance":"14886","venue_id":"9177","venue_name":"Minsk-Arena","venue_city":"Minsk","last_updated":"2019-01-06 22:58:10"}]}}}}