No Subscription to this function
GET /water_polo/get_peoples
Returns person informations and list of teams the person were member of.
Request URL
https://dsg-api.com/clients/{client_name}/water_polo/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
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
exclusions
number of exclusions
fouls
number of fouls
goals
number of goals
penalties
number of penalties
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)
exclusions
number of exclusions
fouls
number of fouls
goals
number of goals
penalties
number of penalties
main_national_team_career
player statistics in all national team competitions
appearances
number of appearances (starting 11 + sub in)
exclusions
number of exclusions
fouls
number of fouls
goals
number of goals
penalties
number of penalties
match
Details about match
attendance
amount of people that attended the particular match
behinds_a
number of behinds scored by home team
behinds_b
number of behinds scored by away team
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.
goals_a
number of goals scored by home team
goals_b
number of goals scored by away team
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
1st period score of home team.
p1s_b
1st period score of away team.
p2s_a
2nd period score of home team
p2s_b
2nd period score of away team
p3s_a
3rd period score of home team.
p3s_b
3rd period score of away team.
p4s_a
4th period score of home team
p4s_b
4th period score of away team
round_id
unique identifier of round.
score_a
full-time score of home team, including any goals in extra-time
score_b
full-time score of away team, including any goals in extra-time
season_id
unique identifier of 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')
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
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
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
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
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
exclusions
number of exclusions
fouls
number of fouls
goals
number of goals
last_updated
when record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
original_name
competition name during this season
penalties
number of penalties
season_id
unique identifier for season
shirtnumber
shirtnumber for the particular season
start_date
Start date of season, format 'yyyy-mm-dd'.
title
title of season
youth_club_career
player statistics in all youth club competitions
appearances
number of appearances (starting 11 + sub in)
exclusions
number of exclusions
fouls
number of fouls
goals
number of goals
penalties
number of penalties
youth_national_team_career
player statistics in all youth national team competitions
appearances
number of appearances (starting 11 + sub in)
exclusions
number of exclusions
fouls
number of fouls
goals
number of goals
penalties
number of penalties
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}/water_polo/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}/water_polo/get_peoples?id={people_id}&client={client_name}&authkey={client_authkey}"
response = requests.get("https://dsg-api.com/clients/{client_name}/water_polo/get_peoples?id={people_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"2.0","sport":"water_polo","lang":"en","method":{"method_id":"218","name":"get_peoples"},"people":{"people_id":"276351","first_name":"Lwazi","last_name":"Madi","match_name":"L. Madi","common_name":"Lwazi Madi","date_of_birth":"1994-12-12","place_of_birth":"","country_of_birth":"South Africa","nationality":"South Africa","gender":"male","height":"","weight":"","hand":"","position":"Goalkeeper","player_picture":"","career_summary":{"main_club_career":[],"youth_club_career":[],"main_national_team_career":{"appearances":"6","goals":"0","penalties":"0","fouls":"0","exclusions":"0","competition":{"competition_id":"1961","competition_name":"FINA World Cup","comp_area_id":"1","comp_format":"international_cup","appearances":"6","goals":"0","penalties":"0","fouls":"0","exclusions":"0"}},"youth_national_team_career":[]},"membership":{"membership_id":"2762198","team_id":"36690","team_name":"South Africa","short_name":"South Africa","team_area":"South Africa","type":"national","start_date":"2018-09-01","end_date":"","role":"player","active":"yes","last_updated":"2018-09-11 11:52:18","season_statistic":{"season_id":"18084","title":"2018 Berlin","competition_name":"FINA World Cup","original_name":"FINA World Cup","comp_area_id":"1","comp_format":"international_cup","appearances":"6","goals":"0","penalties":"0","fouls":"0","exclusions":"0","shirtnumber":"1","last_updated":"2019-01-29 11:28:17"}},"last_matches":{"match":[{"match_id":"1441477","competition_id":"1961","season_id":"18084","round_id":"24153","date":"2018-09-11","time":"15:45:00","date_utc":"2018-09-11","time_utc":"13:45:00","team_a_id":"36692","team_a_name":"Serbia","team_a_short_name":"Serbia","team_a_tla_name":"SRB","team_a_original_name":"Serbia","team_a_country":"SER","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/36692.png","team_b_id":"36690","team_b_name":"South Africa","team_b_short_name":"South Africa","team_b_tla_name":"RSA","team_b_original_name":"South Africa","team_b_country":"RSA","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/36690.png","status":"Played","gameweek":"","winner":"team_A","score_a":"21","score_b":"3","p1s_a":"4","p1s_b":"1","p2s_a":"5","p2s_b":"0","p3s_a":"7","p3s_b":"0","p4s_a":"5","p4s_b":"2","ot_a":"","ot_b":"","venue_type":"home_away","final_period":"wpo_p4s","attendance":"","venue_id":"13260","venue_name":"Schwimm- und Sprunghalle im Europasportpark","venue_city":"Berlin","last_updated":"2018-09-13 10:51:16"},{"match_id":"1441484","competition_id":"1961","season_id":"18084","round_id":"24153","date":"2018-09-12","time":"19:00:00","date_utc":"2018-09-12","time_utc":"17:00:00","team_a_id":"36694","team_a_name":"Croatia","team_a_short_name":"Croatia","team_a_tla_name":"CRO","team_a_original_name":"Croatia","team_a_country":"HRV","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/36694.png","team_b_id":"36690","team_b_name":"South Africa","team_b_short_name":"South Africa","team_b_tla_name":"RSA","team_b_original_name":"South Africa","team_b_country":"RSA","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/36690.png","status":"Played","gameweek":"","winner":"team_A","score_a":"25","score_b":"2","p1s_a":"7","p1s_b":"1","p2s_a":"6","p2s_b":"1","p3s_a":"5","p3s_b":"0","p4s_a":"7","p4s_b":"0","ot_a":"","ot_b":"","venue_type":"home_away","final_period":"wpo_p4s","attendance":"","venue_id":"13260","venue_name":"Schwimm- und Sprunghalle im Europasportpark","venue_city":"Berlin","last_updated":"2018-09-13 11:02:01"},{"match_id":"1441486","competition_id":"1961","season_id":"18084","round_id":"24153","date":"2018-09-13","time":"17:30:00","date_utc":"2018-09-13","time_utc":"15:30:00","team_a_id":"36690","team_a_name":"South Africa","team_a_short_name":"South Africa","team_a_tla_name":"RSA","team_a_original_name":"South Africa","team_a_country":"RSA","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/36690.png","team_b_id":"36693","team_b_name":"United States","team_b_short_name":"United States","team_b_tla_name":"USA","team_b_original_name":"United States","team_b_country":"USA","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/36693.png","status":"Played","gameweek":"","winner":"team_B","score_a":"6","score_b":"15","p1s_a":"0","p1s_b":"5","p2s_a":"2","p2s_b":"3","p3s_a":"1","p3s_b":"5","p4s_a":"3","p4s_b":"2","ot_a":"","ot_b":"","venue_type":"home_away","final_period":"wpo_p4s","attendance":"","venue_id":"13260","venue_name":"Schwimm- und Sprunghalle im Europasportpark","venue_city":"Berlin","last_updated":"2018-09-13 18:36:02"},{"match_id":"1441492","competition_id":"1961","season_id":"18084","round_id":"24154","date":"2018-09-14","time":"20:30:00","date_utc":"2018-09-14","time_utc":"18:30:00","team_a_id":"36698","team_a_name":"Germany","team_a_short_name":"Germany","team_a_tla_name":"GER","team_a_original_name":"Germany","team_a_country":"DEU","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/36698.png","team_b_id":"36690","team_b_name":"South Africa","team_b_short_name":"South Africa","team_b_tla_name":"RSA","team_b_original_name":"South Africa","team_b_country":"RSA","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/36690.png","status":"Played","gameweek":"","winner":"team_A","score_a":"24","score_b":"5","p1s_a":"7","p1s_b":"3","p2s_a":"5","p2s_b":"1","p3s_a":"7","p3s_b":"0","p4s_a":"5","p4s_b":"1","ot_a":"","ot_b":"","venue_type":"home_away","final_period":"soc_p2s","attendance":"","venue_id":"13260","venue_name":"Schwimm- und Sprunghalle im Europasportpark","venue_city":"Berlin","last_updated":"2018-09-14 21:34:02"},{"match_id":"1441494","competition_id":"1961","season_id":"18084","round_id":"24155","date":"2018-09-15","time":"15:30:00","date_utc":"2018-09-15","time_utc":"13:30:00","team_a_id":"36694","team_a_name":"Croatia","team_a_short_name":"Croatia","team_a_tla_name":"CRO","team_a_original_name":"Croatia","team_a_country":"HRV","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/36694.png","team_b_id":"36690","team_b_name":"South Africa","team_b_short_name":"South Africa","team_b_tla_name":"RSA","team_b_original_name":"South Africa","team_b_country":"RSA","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/36690.png","status":"Played","gameweek":"","winner":"team_A","score_a":"16","score_b":"3","p1s_a":"5","p1s_b":"2","p2s_a":"4","p2s_b":"0","p3s_a":"2","p3s_b":"1","p4s_a":"5","p4s_b":"0","ot_a":"","ot_b":"","venue_type":"home_away","final_period":"soc_p2s","attendance":"","venue_id":"13260","venue_name":"Schwimm- und Sprunghalle im Europasportpark","venue_city":"Berlin","last_updated":"2018-09-16 19:24:17"},{"match_id":"1441497","competition_id":"1961","season_id":"18084","round_id":"24157","date":"2018-09-16","time":"10:00:00","date_utc":"2018-09-16","time_utc":"08:00:00","team_a_id":"36709","team_a_name":"Japan","team_a_short_name":"Japan","team_a_tla_name":"JPN","team_a_original_name":"Japan","team_a_country":"JPN","team_a_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/36709.png","team_b_id":"36690","team_b_name":"South Africa","team_b_short_name":"South Africa","team_b_tla_name":"RSA","team_b_original_name":"South Africa","team_b_country":"RSA","team_b_logo":"https:\/\/www.dsg-images.com\/clubs\/150x150\/36690.png","status":"Played","gameweek":"","winner":"team_A","score_a":"21","score_b":"9","p1s_a":"4","p1s_b":"1","p2s_a":"9","p2s_b":"2","p3s_a":"4","p3s_b":"3","p4s_a":"4","p4s_b":"3","ot_a":"","ot_b":"","venue_type":"home_away","final_period":"soc_p2s","attendance":"","venue_id":"13260","venue_name":"Schwimm- und Sprunghalle im Europasportpark","venue_city":"Berlin","last_updated":"2018-09-16 19:32:29"}]}}}}