Subscription to this function is not available for your account. To upgrade and receive access to this contact sales@datasportsgroup.com
GET /australian_football/get_peoples
Returns person informations and list of teams the person were member of.
Request URL
https://dsg-api.com/clients/{client_name}/australian_football/get_peoples?id={people_id}&client={client_name}&authkey={client_authkey}
Parameters
authkey
string Required
client authentification key
client
string Required
unique client ID
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
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
match
Details about match
contestant_a_common_name
common name of the contestant
contestant_a_first_name
first name of the contestant
contestant_a_id
unique identifier for the contestant
contestant_a_last_name
last name of the contestant
contestant_a_match_name
match name of the contestant
contestant_a_nationality_area_id
unique area_id of the contestants nationality
contestant_a_nationality_area_name
nationality of the contestant
contestant_a_nationality_code
area code of contestant_a nationality
contestant_a_seeding
seeding of the contestant
contestant_b_common_name
common name of the contestant
contestant_b_first_name
first name of the contestant
contestant_b_id
unique identifier for the contestant
contestant_b_last_name
last name of the contestant
contestant_b_match_name
match name of the contestant
contestant_b_nationality_area_id
unique area_id of the contestants nationality
contestant_b_nationality_area_name
nationality of the contestant
contestant_b_nationality_code
area code of contestant_b nationality
contestant_b_seeding
seeding of the contestant
date
Date of match, format 'yyyy-mm-dd' (CET)
date_utc
Date of match, format 'yyyy-mm-dd' (UTC)
draw_position
darw position of the match
last_updated
When record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
match_id
unique identifier of match.
round_id
unique identifier of round
round_title
name of round
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
season_name
name of the race for this particular year (including sponsor names etc)
season_title
title of season
status
status of the game (Playing, Break, Played, Fixture, Postponed, Awarded, Cancelled, Suspended)
time
start time (CET), format 'hh:mm:ss'.
time_utc
start time (UTC), format 'hh:mm:ss'.
tournament_id
unique identifier for a tournament.
tournament_name
tournament name during this season
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')
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
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.
match_name
shortened match 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 people headshot, size can be changed via the picsize parameter
place_of_birth
name of city the person was born
status
status of the player ('active', 'retired' or 'dead')
weight
Weight of person in kilograms.
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}/australian_football/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}/australian_football/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}/australian_football/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}/australian_football/get_peoples?id={people_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"1.0","sport":"australian_football","lang":"en","method":{"method_id":"183","name":"get_peoples"},"people":{"people_id":"2382691","first_name":"Richard","last_name":"Douglas","match_name":"R. Douglas","common_name":"Richard Douglas","date_of_birth":"1987-02-06","place_of_birth":"","country_of_birth":"Australia","nationality":"Australia","gender":"male","height":"181","weight":"79","position":"Ruck Rover","player_picture":"","membership":{"membership_id":"2334631","team_id":"25509","team_name":"Adelaide FC","short_name":"Adelaide","team_area":"Australia","type":"club","start_date":"2017-03-26","end_date":"","role":"player","active":"yes","last_updated":"2017-12-04 11:06:39"},"last_matches":{"match":[{"match_id":"1511074","competition_id":"1522","season_id":"20044","round_id":"27374","date":"2019-03-23","time":"06:35:00","date_utc":"2019-03-23","time_utc":"05:35:00","team_a_id":"25509","team_a_name":"Adelaide FC","team_a_short_name":"Adelaide","team_a_tla_name":"ADE","team_a_original_name":"Adelaide FC","team_a_country":"AUS","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25509.png","team_b_id":"25517","team_b_name":"Hawthorn FC","team_b_short_name":"Hawthorn","team_b_tla_name":"HAW","team_b_original_name":"Hawthorn FC","team_b_country":"AUS","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25517.png","status":"Played","gameweek":"1","winner":"team_B","score_a":"55","score_b":"87","p1s_a":"8","p1s_b":"16","p2s_a":"26","p2s_b":"27","p3s_a":"2","p3s_b":"25","p4s_a":"19","p4s_b":"19","et_a":"","et_b":"","goals_a":"7","goals_b":"12","behinds_a":"13","behinds_b":"15","venue_type":"home_away","final_period":"auf_p4s","attendance":"50180","venue_id":"415","venue_name":"Adelaide Oval","venue_city":"Adelaide, SA","last_updated":"2019-03-24 10:41:40"},{"match_id":"1511173","competition_id":"1522","season_id":"20044","round_id":"27374","date":"2019-06-08","time":"11:40:00","date_utc":"2019-06-08","time_utc":"09:40:00","team_a_id":"25509","team_a_name":"Adelaide FC","team_a_short_name":"Adelaide","team_a_tla_name":"ADE","team_a_original_name":"Adelaide FC","team_a_country":"AUS","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25509.png","team_b_id":"25526","team_b_name":"Greater Western Sydney","team_b_short_name":"Greater Wester","team_b_tla_name":"GWS","team_b_original_name":"Greater Western Sydney","team_b_country":"AUS","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25526.png","status":"Played","gameweek":"12","winner":"team_A","score_a":"82","score_b":"61","p1s_a":"17","p1s_b":"8","p2s_a":"14","p2s_b":"14","p3s_a":"12","p3s_b":"25","p4s_a":"39","p4s_b":"14","et_a":"","et_b":"","goals_a":"12","goals_b":"9","behinds_a":"10","behinds_b":"7","venue_type":"home_away","final_period":"auf_p4s","attendance":"41710","venue_id":"415","venue_name":"Adelaide Oval","venue_city":"Adelaide, SA","last_updated":"2019-06-08 18:07:18"},{"match_id":"1511176","competition_id":"1522","season_id":"20044","round_id":"27374","date":"2019-06-13","time":"11:50:00","date_utc":"2019-06-13","time_utc":"09:50:00","team_a_id":"25509","team_a_name":"Adelaide FC","team_a_short_name":"Adelaide","team_a_tla_name":"ADE","team_a_original_name":"Adelaide FC","team_a_country":"AUS","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25509.png","team_b_id":"25521","team_b_name":"Richmond FC","team_b_short_name":"Richmond","team_b_tla_name":"RIC","team_b_original_name":"Richmond FC","team_b_country":"AUS","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25521.png","status":"Played","gameweek":"13","winner":"team_A","score_a":"101","score_b":"68","p1s_a":"7","p1s_b":"20","p2s_a":"18","p2s_b":"16","p3s_a":"45","p3s_b":"21","p4s_a":"31","p4s_b":"11","et_a":"","et_b":"","goals_a":"15","goals_b":"9","behinds_a":"11","behinds_b":"14","venue_type":"home_away","final_period":"auf_p4s","attendance":"40837","venue_id":"415","venue_name":"Adelaide Oval","venue_city":"Adelaide, SA","last_updated":"2019-06-14 07:40:47"},{"match_id":"1511189","competition_id":"1522","season_id":"20044","round_id":"27374","date":"2019-06-28","time":"11:50:00","date_utc":"2019-06-28","time_utc":"09:50:00","team_a_id":"25516","team_a_name":"Geelong FC","team_a_short_name":"Geelong","team_a_tla_name":"GEE","team_a_original_name":"Geelong FC","team_a_country":"AUS","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25516.png","team_b_id":"25509","team_b_name":"Adelaide FC","team_b_short_name":"Adelaide","team_b_tla_name":"ADE","team_b_original_name":"Adelaide FC","team_b_country":"AUS","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25509.png","status":"Played","gameweek":"15","winner":"team_A","score_a":"96","score_b":"69","p1s_a":"25","p1s_b":"34","p2s_a":"23","p2s_b":"13","p3s_a":"27","p3s_b":"14","p4s_a":"21","p4s_b":"8","et_a":"","et_b":"","goals_a":"14","goals_b":"10","behinds_a":"12","behinds_b":"9","venue_type":"home_away","final_period":"auf_p4s","attendance":"28108","venue_id":"270","venue_name":"GMHBA Stadium","venue_city":"Geelong, VIC","last_updated":"2019-06-28 15:14:03"},{"match_id":"1511200","competition_id":"1522","season_id":"20044","round_id":"27374","date":"2019-07-06","time":"08:35:00","date_utc":"2019-07-06","time_utc":"06:35:00","team_a_id":"25509","team_a_name":"Adelaide FC","team_a_short_name":"Adelaide","team_a_tla_name":"ADE","team_a_original_name":"Adelaide FC","team_a_country":"AUS","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25509.png","team_b_id":"25520","team_b_name":"Port Adelaide FC","team_b_short_name":"Port Adelaide","team_b_tla_name":"POR","team_b_original_name":"Port Adelaide FC","team_b_country":"AUS","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25520.png","status":"Played","gameweek":"16","winner":"team_B","score_a":"44","score_b":"101","p1s_a":"19","p1s_b":"19","p2s_a":"16","p2s_b":"19","p3s_a":"7","p3s_b":"39","p4s_a":"2","p4s_b":"24","et_a":"","et_b":"","goals_a":"5","goals_b":"15","behinds_a":"14","behinds_b":"11","venue_type":"home_away","final_period":"auf_p4s","attendance":"50544","venue_id":"415","venue_name":"Adelaide Oval","venue_city":"Adelaide, SA","last_updated":"2019-07-06 19:13:06"},{"match_id":"1511238","competition_id":"1522","season_id":"20044","round_id":"27374","date":"2019-08-03","time":"11:40:00","date_utc":"2019-08-03","time_utc":"09:40:00","team_a_id":"25509","team_a_name":"Adelaide FC","team_a_short_name":"Adelaide","team_a_tla_name":"ADE","team_a_original_name":"Adelaide FC","team_a_country":"AUS","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25509.png","team_b_id":"25522","team_b_name":"St Kilda FC","team_b_short_name":"St Kilda","team_b_tla_name":"STK","team_b_original_name":"St Kilda FC","team_b_country":"AUS","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/25522.png","status":"Played","gameweek":"20","winner":"team_A","score_a":"92","score_b":"70","p1s_a":"25","p1s_b":"20","p2s_a":"15","p2s_b":"15","p3s_a":"27","p3s_b":"14","p4s_a":"25","p4s_b":"21","et_a":"","et_b":"","goals_a":"14","goals_b":"10","behinds_a":"8","behinds_b":"10","venue_type":"home_away","final_period":"auf_p4s","attendance":"39984","venue_id":"415","venue_name":"Adelaide Oval","venue_city":"Adelaide, SA","last_updated":"2019-08-04 08:42:23"}]}}}}