Subscription to this function is not available for your account. To upgrade and receive access to this contact sales@datasportsgroup.com
v3 GET /soccer/get_rankings
Returns all matches (and related events) that belong to a season, round or match
Request URL
https://dsg-api.com/clients/{client_name}/soccer/get_rankings?ev=goals&type=season&id={season_id}&cat=people&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
aggr
string
value is either "sum" or "avg"
authkey
string Required
client authentification key
cat
string
category filter, valid values are "people" and "team"
client
string Required
unique client ID
ev
string Required
defines which stats to display. full list listed in API output by calling without ev= parameter
ftype
string
changes feed type from XML to json (ftype=json or ftype=json_array)
id
int Required
object id to return
lang
string
two-character language code, defaults to 'en'
rounds
string
list of rounds (comma-seperated) to filter the rankings by those rounds.
type
string Required
one of ‘season’ or ‘round’ or ‘competition’ to which the "id" refers
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 person
active
Determines if person is still at the team (yes) or not (no).
common_name
common name of the person
count
for _cum it will be in, for _avg it will be float as data type.
count_expulsion
number of expulsions (red cards and yellow-red cards)
count_yellow
number of yellow cards
first_name
first name of the person
last_name
last name of the person
nationality_area_id
unique identifier for an area
nationality_area_name
area name of peoples nationality
people_id
unique identifier for person
people_picture
full path URL of people headshot, size can be changed via the picsize parameter
position
position value
short_name
shortened name of the person
team_id
unique identifier of the team
team_name
current team name
team_short_name
short name of the team
team_tla_name
three-letter-acronym of the players team
stat
details about the stat type
name
name of the stat
type
stat type
team
details about the ranking team
area_id
unique identifier for an area
area_name
name of the area
count
for _cum it will be in, for _avg it will be float as data type.
position
position value
team_id
unique identifier of the team
team_logo
full path URL of team logo
team_name
current team name
team_short_name
short name of the team
team_tla_name
three-letter-acronym of the players team
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}/soccer/get_rankings?ev=goals&type=season&id={season_id}&cat=people&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}/soccer/get_rankings?ev=goals&type=season&id={season_id}&cat=people&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}/soccer/get_rankings?ev=goals&type=season&id={season_id}&cat=people&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}/soccer/get_rankings?ev=goals&type=season&id={season_id}&cat=people&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"2.1362.3","sport":"soccer","lang":"en","generated_utc":"2025-08-01T15:22:54+00:00","method":{"method_id":"1362","name":"get_rankings"},"people":[{"position":"1","people_id":"513541","first_name":"Patrick","last_name":"Ruiz Jurado","short_name":"P. Ruiz","common_name":"Patrick Ruiz","nationality_area_name":"Guatemala","nationality_area_id":"85","count":"3","team_id":"50859","team_name":"Guatemala","team_short_name":"Guatemala","team_tla_name":"GUA","active":"yes","people_picture":""},{"position":"2","people_id":"7976553","first_name":"Julian Danilo","last_name":"Pardo Umaña","short_name":"J. Pardo","common_name":"Julian Pardo","nationality_area_name":"Colombia","nationality_area_id":"51","count":"3","team_id":"64531","team_name":"Colombia","team_short_name":"Colombia","team_tla_name":"COL","active":"yes","people_picture":""},{"position":"3","people_id":"513534","first_name":"Roberto Román","last_name":"Alvarado González","short_name":"R. Alvarado","common_name":"Román Alvarado","nationality_area_name":"Guatemala","nationality_area_id":"85","count":"3","team_id":"50859","team_name":"Guatemala","team_short_name":"Guatemala","team_tla_name":"GUA","active":"yes","people_picture":""},{"position":"4","people_id":"7976564","first_name":"Luis Pier","last_name":"Ramos Caballero","short_name":"L. Ramos","common_name":"Luis Ramos","nationality_area_name":"Peru","nationality_area_id":"153","count":"3","team_id":"64535","team_name":"Peru","team_short_name":"Peru","team_tla_name":"PER","active":"yes","people_picture":""},{"position":"5","people_id":"7976538","first_name":"Brayan","last_name":"Zapata Vanegas","short_name":"B. Zapata","common_name":"Brayan Zapata","nationality_area_name":"Colombia","nationality_area_id":"51","count":"2","team_id":"64531","team_name":"Colombia","team_short_name":"Colombia","team_tla_name":"COL","active":"yes","people_picture":""},{"position":"6","people_id":"7976569","first_name":"Tony Yoel","last_name":"Alvarado Estrada","short_name":"T. Alvarado","common_name":"Tony Alvarado","nationality_area_name":"Peru","nationality_area_id":"153","count":"2","team_id":"64535","team_name":"Peru","team_short_name":"Peru","team_tla_name":"PER","active":"yes","people_picture":""},{"position":"7","people_id":"7968434","first_name":"Luis","last_name":"Vásquez","short_name":"L. Vásquez","common_name":"Luis Vásquez","nationality_area_name":"Panama","nationality_area_id":"150","count":"2","team_id":"50866","team_name":"Panama","team_short_name":"Panama","team_tla_name":"PAN","active":"yes","people_picture":""},{"position":"8","people_id":"536457","first_name":"Abdiel Alberto","last_name":"Ortiz Ramirez","short_name":"A. Ortiz","common_name":"Abdiel Ortiz","nationality_area_name":"Panama","nationality_area_id":"150","count":"2","team_id":"50866","team_name":"Panama","team_short_name":"Panama","team_tla_name":"PAN","active":"yes","people_picture":""},{"position":"9","people_id":"230314","first_name":"Ángel Gabriel","last_name":"Sánchez Córdoba","short_name":"Á. Sánchez","common_name":"Ángel Sánchez","nationality_area_name":"Panama","nationality_area_id":"150","count":"2","team_id":"50866","team_name":"Panama","team_short_name":"Panama","team_tla_name":"PAN","active":"no","people_picture":""},{"position":"10","people_id":"7916401","first_name":"Jenner Paolo","last_name":"Paniagua Martinez","short_name":"J. Paniagua","common_name":"Jenner Paniagua","nationality_area_name":"Guatemala","nationality_area_id":"85","count":"1","team_id":"50859","team_name":"Guatemala","team_short_name":"Guatemala","team_tla_name":"GUA","active":"yes","people_picture":""},{"position":"11","people_id":"536431","first_name":"Alfonso","last_name":"Maquensi Morales","short_name":"A. Maquensi","common_name":"Alfonso Maquensi","nationality_area_name":"Panama","nationality_area_id":"150","count":"1","team_id":"50866","team_name":"Panama","team_short_name":"Panama","team_tla_name":"PAN","active":"yes","people_picture":""},{"position":"12","people_id":"7976565","first_name":"Johnny Israel","last_name":"Solano Correa","short_name":"I. Solano","common_name":"Israel Solano","nationality_area_name":"Peru","nationality_area_id":"153","count":"1","team_id":"64535","team_name":"Peru","team_short_name":"Peru","team_tla_name":"PER","active":"yes","people_picture":""},{"position":"13","people_id":"7976529","first_name":"Luis","last_name":"Posada Quintero","short_name":"L. Posada","common_name":"Luis Posada","nationality_area_name":"Colombia","nationality_area_id":"51","count":"1","team_id":"64531","team_name":"Colombia","team_short_name":"Colombia","team_tla_name":"COL","active":"yes","people_picture":""},{"position":"14","people_id":"7976637","first_name":"Francisco Daniel","last_name":"Feliu Feliu","short_name":"F. Feliu","common_name":"Francisco Feliu","nationality_area_name":"Chile","nationality_area_id":"48","count":"1","team_id":"64532","team_name":"Chile","team_short_name":"Chile","team_tla_name":"CHI","active":"yes","people_picture":""},{"position":"15","people_id":"7976190","first_name":"Óscar Daniel","last_name":"Fernández Novoa","short_name":"Ó. Fernández","common_name":"Óscar Fernández","nationality_area_name":"Venezuela","nationality_area_id":"207","count":"1","team_id":"50855","team_name":"Venezuela","team_short_name":"Venezuela","team_tla_name":"VEN","active":"yes","people_picture":""},{"position":"16","people_id":"7976630","first_name":"Fabian Esteban","last_name":"Vásquez Valenzuela","short_name":"F. Vásquez","common_name":"Fabian Vásquez","nationality_area_name":"Chile","nationality_area_id":"48","count":"1","team_id":"64532","team_name":"Chile","team_short_name":"Chile","team_tla_name":"CHI","active":"yes","people_picture":""},{"position":"17","people_id":"62596","first_name":"Ricardo","last_name":"Castillo De Leon","short_name":"R. Castillo","common_name":"Ricardo Castillo","nationality_area_name":"Panama","nationality_area_id":"150","count":"1","team_id":"50866","team_name":"Panama","team_short_name":"Panama","team_tla_name":"PAN","active":"yes","people_picture":""},{"position":"18","people_id":"7976535","first_name":"Angelo","last_name":"Santofimio Orjuela","short_name":"A. Santofimio","common_name":"Angelo Santofimio","nationality_area_name":"Colombia","nationality_area_id":"51","count":"1","team_id":"64531","team_name":"Colombia","team_short_name":"Colombia","team_tla_name":"COL","active":"yes","people_picture":""},{"position":"19","people_id":"7916404","first_name":"Jhony Ottoniel","last_name":"Díaz Ajchup","short_name":"J. Díaz","common_name":"Jhony Díaz","nationality_area_name":"Guatemala","nationality_area_id":"85","count":"1","team_id":"50859","team_name":"Guatemala","team_short_name":"Guatemala","team_tla_name":"GUA","active":"yes","people_picture":""},{"position":"20","people_id":"513542","first_name":"Fernando Jose","last_name":"Campaignac Dardon","short_name":"F. Campaignac","common_name":"Fernando Campaignac","nationality_area_name":"Guatemala","nationality_area_id":"85","count":"1","team_id":"50859","team_name":"Guatemala","team_short_name":"Guatemala","team_tla_name":"GUA","active":"yes","people_picture":""},{"position":"21","people_id":"7976567","first_name":"Junior Stefano","last_name":"Ulloa Yaya","short_name":"J. Ulloa","common_name":"Junior Ulloa","nationality_area_name":"Peru","nationality_area_id":"153","count":"1","team_id":"64535","team_name":"Peru","team_short_name":"Peru","team_tla_name":"PER","active":"yes","people_picture":""},{"position":"22","people_id":"7976562","first_name":"Sebastián","last_name":"Obando Venegas","short_name":"S. Obando","common_name":"Sebastián Obando","nationality_area_name":"Peru","nationality_area_id":"153","count":"1","team_id":"64535","team_name":"Peru","team_short_name":"Peru","team_tla_name":"PER","active":"yes","people_picture":""},{"position":"23","people_id":"7976554","first_name":"Ronald Miguel","last_name":"Solorzano Herrera","short_name":"R. Solorzano","common_name":"Ronald Solorzano","nationality_area_name":"Colombia","nationality_area_id":"51","count":"1","team_id":"64531","team_name":"Colombia","team_short_name":"Colombia","team_tla_name":"COL","active":"yes","people_picture":""},{"position":"24","people_id":"7949292","first_name":"Alexander Rafael","last_name":"Moreno Machado","short_name":"A. Moreno","common_name":"Alexander Moreno","nationality_area_name":"Venezuela","nationality_area_id":"207","count":"1","team_id":"50855","team_name":"Venezuela","team_short_name":"Venezuela","team_tla_name":"VEN","active":"yes","people_picture":""},{"position":"25","people_id":"7976180","first_name":"Enyerver Rafael","last_name":"Viloria Basanta","short_name":"E. Viloria","common_name":"Enyerver Viloria","nationality_area_name":"Venezuela","nationality_area_id":"207","count":"1","team_id":"50855","team_name":"Venezuela","team_short_name":"Venezuela","team_tla_name":"VEN","active":"yes","people_picture":""},{"position":"26","people_id":"7949295","first_name":"Kevin","last_name":"Briceño","short_name":"K. Briceño","common_name":"Kevin Briceño","nationality_area_name":"Venezuela","nationality_area_id":"207","count":"1","team_id":"50855","team_name":"Venezuela","team_short_name":"Venezuela","team_tla_name":"VEN","active":"yes","people_picture":""},{"position":"27","people_id":"7949291","first_name":"Carlos Eliezer","last_name":"Jimenez Serradas","short_name":"C. Jimenez","common_name":"Carlos Jimenez","nationality_area_name":"Venezuela","nationality_area_id":"207","count":"1","team_id":"50855","team_name":"Venezuela","team_short_name":"Venezuela","team_tla_name":"VEN","active":"yes","people_picture":""},{"position":"28","people_id":"513463","first_name":"Milton Antonio","last_name":"Francia Baronis","short_name":"M. Francia","common_name":"Milton Francia","nationality_area_name":"Venezuela","nationality_area_id":"207","count":"1","team_id":"50855","team_name":"Venezuela","team_short_name":"Venezuela","team_tla_name":"VEN","active":"yes","people_picture":""},{"position":"29","people_id":"7976193","first_name":"Eiver Ronaldo","last_name":"Blanco Lara","short_name":"E. Blanco","common_name":"Eiver Blanco","nationality_area_name":"Venezuela","nationality_area_id":"207","count":"1","team_id":"50855","team_name":"Venezuela","team_short_name":"Venezuela","team_tla_name":"VEN","active":"yes","people_picture":""}]}}