Subscription to this function is not available for your account. To upgrade and receive access to this contact sales@datasportsgroup.com
v2 GET /motorsports/get_standings
Returns all the standings for one championship season
Request URL
https://dsg-api.com/clients/{client_name}/motorsports/get_standings?cs={tour_season_id}&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
ftype
string
changes feed type from XML to json (ftype=json or ftype=json_array)
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
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}/motorsports/get_standings?cs={tour_season_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}/motorsports/get_standings?cs={tour_season_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}/motorsports/get_standings?cs={tour_season_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}/motorsports/get_standings?cs={tour_season_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"1.0","sport":"motorsports","lang":"en","method":{"method_id":"323","name":"get_calendar"},"championship":{"championship_id":"7","name":"FIA Formula One World Championship","championship_season":{"championship_season_id":"24","title":"2019","people":[{"people_id":"244845","position":"1","best_position":"1","driver_number":"44","first_name":"Lewis Carl Davidson","last_name":"Hamilton","match_name":"L. Hamilton","common_name":"Lewis Hamilton","nationality":"Great Britain","nationality_area_code":"GBR","nationality_area_id":"250","team_id":"35983","team_name":"Mercedes AMG Petronas Motorsport","points":"249","wins":"8","picture":"https:\/\/www.dsg-images.com\/players\/150x150\/244845.png"},{"people_id":"244846","position":"2","best_position":"1","driver_number":"77","first_name":"Valtteri Viktor","last_name":"Bottas","match_name":"V. Bottas","common_name":"Valtteri Bottas","nationality":"Finland","nationality_area_code":"FIN","nationality_area_id":"75","team_id":"35983","team_name":"Mercedes AMG Petronas Motorsport","points":"188","wins":"2","picture":"https:\/\/www.dsg-images.com\/players\/150x150\/244846.png"},{"people_id":"244848","position":"3","best_position":"1","driver_number":"33","first_name":"Max Emilian","last_name":"Verstappen","match_name":"M. Verstappen","common_name":"Max Verstappen","nationality":"Netherlands","nationality_area_code":"NLD","nationality_area_id":"138","team_id":"35984","team_name":"Aston Martin Red Bull Racing","points":"181","wins":"2","picture":"https:\/\/www.dsg-images.com\/players\/150x150\/244848.png"},{"people_id":"244836","position":"4","best_position":"2","driver_number":"5","first_name":"Sebastian","last_name":"Vettel","match_name":"S. Vettel","common_name":"Sebastian Vettel","nationality":"Germany","nationality_area_code":"DEU","nationality_area_id":"80","team_id":"35979","team_name":"Scuderia Ferrari","points":"156","wins":"0","picture":"https:\/\/www.dsg-images.com\/players\/150x150\/244836.png"},{"people_id":"244852","position":"5","best_position":"2","driver_number":"16","first_name":"Charles","last_name":"Leclerc","match_name":"C. Leclerc","common_name":"Charles Leclerc","nationality":"Monaco","nationality_area_code":"MCO","nationality_area_id":"253","team_id":"35979","team_name":"Scuderia Ferrari","points":"132","wins":"0","picture":"https:\/\/www.dsg-images.com\/players\/150x150\/244852.png"},{"people_id":"244853","position":"6","best_position":"4","driver_number":"10","first_name":"Pierre","last_name":"Gasly","match_name":"P. Gasly","common_name":"Pierre Gasly","nationality":"France","nationality_area_code":"FRA","nationality_area_id":"76","team_id":"35984","team_name":"Aston Martin Red Bull Racing","points":"62","wins":"0","picture":"https:\/\/www.dsg-images.com\/players\/150x150\/244853.png"},{"people_id":"244850","position":"7","best_position":"5","driver_number":"55","first_name":"Carlos","last_name":"Sainz Vázquez de Castro","match_name":"C. Sainz Jr.","common_name":"Carlos Sainz Jr.","nationality":"Spain","nationality_area_code":"ESP","nationality_area_id":"176","team_id":"35982","team_name":"McLaren F1 Team","points":"58","wins":"0","picture":"https:\/\/www.dsg-images.com\/players\/150x150\/244850.png"},{"people_id":"244837","position":"8","best_position":"7","driver_number":"7","first_name":"Kimi-Matias","last_name":"Räikkönen","match_name":"K. Räikkönen","common_name":"Kimi Räikkönen","nationality":"Finland","nationality_area_code":"FIN","nationality_area_id":"75","team_id":"35986","team_name":"Alfa Romeo Racing","points":"35","wins":"0","picture":"https:\/\/www.dsg-images.com\/players\/150x150\/244837.png"},{"people_id":"244847","position":"9","best_position":"6","driver_number":"3","first_name":"Daniel Joseph","last_name":"Ricciardo","match_name":"D. Ricciardo","common_name":"Daniel Ricciardo","nationality":"Australia","nationality_area_code":"AUS","nationality_area_id":"19","team_id":"35985","team_name":"Renault Sport Formula One Team","points":"28","wins":"0","picture":"https:\/\/www.dsg-images.com\/players\/150x150\/244847.png"},{"people_id":"307242","position":"10","best_position":"3","driver_number":"26","first_name":"Daniil Vyacheslavovich","last_name":"Kyvat","match_name":"D. Kyvat","common_name":"Daniil Kyvat","nationality":"Russia","nationality_area_code":"RUS","nationality_area_id":"160","team_id":"35987","team_name":"Red Bull Toro Rosso Honda","points":"27","wins":"0","picture":"https:\/\/www.dsg-images.com\/players\/150x150\/307242.png"},{"people_id":"309757","position":"11","best_position":"6","driver_number":"4","first_name":"Lando","last_name":"Norris","match_name":"L. Norris","common_name":"Lando Norris","nationality":"Great Britain","nationality_area_code":"GBR","nationality_area_id":"250","team_id":"35982","team_name":"McLaren F1 Team","points":"23","wins":"0","picture":"https:\/\/www.dsg-images.com\/players\/150x150\/309757.png"},{"people_id":"244855","position":"12","best_position":"4","driver_number":"18","first_name":"Lance","last_name":"Stroll","match_name":"L. Stroll","common_name":"Lance Stroll","nationality":"Canada","nationality_area_code":"CAN","nationality_area_id":"43","team_id":"35980","team_name":"Sahara Force India F1 Team","points":"18","wins":"0","picture":"https:\/\/www.dsg-images.com\/players\/150x150\/244855.png"},{"people_id":"309756","position":"13","best_position":"6","driver_number":"23","first_name":"Alexander","last_name":"Albon","match_name":"A. Albon","common_name":"Alexander Albon","nationality":"England","nationality_area_code":"ENG","nationality_area_id":"68","team_id":"35987","team_name":"Red Bull Toro Rosso Honda","points":"16","wins":"0","picture":"https:\/\/www.dsg-images.com\/players\/150x150\/309756.png"},{"people_id":"244841","position":"14","best_position":"6","driver_number":"20","first_name":"Kevin Jan","last_name":"Magnussen","match_name":"K. Magnussen","common_name":"Kevin Magnussen","nationality":"Denmark","nationality_area_code":"DNK","nationality_area_id":"61","team_id":"35981","team_name":"Haas F1 Team","points":"15","wins":"0","picture":"https:\/\/www.dsg-images.com\/players\/150x150\/244841.png"},{"people_id":"244849","position":"15","best_position":"7","driver_number":"27","first_name":"Nico","last_name":"Hülkenberg","match_name":"N. Hülkenberg","common_name":"Nico Hülkenberg","nationality":"Germany","nationality_area_code":"DEU","nationality_area_id":"80","team_id":"35985","team_name":"Renault Sport Formula One Team","points":"15","wins":"0","picture":"https:\/\/www.dsg-images.com\/players\/150x150\/244849.png"},{"people_id":"244838","position":"16","best_position":"6","driver_number":"11","first_name":"Sergio","last_name":"Pérez Mendoza","match_name":"S. Pérez","common_name":"Sergio Pérez","nationality":"Mexico","nationality_area_code":"MEX","nationality_area_id":"129","team_id":"35980","team_name":"Sahara Force India F1 Team","points":"13","wins":"0","picture":"https:\/\/www.dsg-images.com\/players\/150x150\/244838.png"},{"people_id":"308803","position":"17","best_position":"8","driver_number":"99","first_name":"Antonio","last_name":"Giovinazzi","match_name":"A. Giovinazzi","common_name":"Antonio Giovinazzi","nationality":"Italy","nationality_area_code":"ITA","nationality_area_id":"100","team_id":"35986","team_name":"Alfa Romeo Racing","points":"5","wins":"0","picture":"https:\/\/www.dsg-images.com\/players\/150x150\/308803.png"},{"people_id":"244840","position":"18","best_position":"9","driver_number":"8","first_name":"Romain","last_name":"Grosjean","match_name":"R. Grosjean","common_name":"Romain Grosjean","nationality":"France","nationality_area_code":"FRA","nationality_area_id":"76","team_id":"35981","team_name":"Haas F1 Team","points":"4","wins":"0","picture":"https:\/\/www.dsg-images.com\/players\/150x150\/244840.png"},{"people_id":"252999","position":"19","best_position":"12","driver_number":"88","first_name":"Robert Józef","last_name":"Kubica","match_name":"R. Kubica","common_name":"Robert Kubica","nationality":"Poland","nationality_area_code":"POL","nationality_area_id":"155","team_id":"35988","team_name":"Williams Martini Racing","points":"0","wins":"0","picture":"https:\/\/www.dsg-images.com\/players\/150x150\/252999.png"},{"people_id":"309758","position":"20","best_position":"13","driver_number":"63","first_name":"George","last_name":"Russell","match_name":"G. Russell","common_name":"George Russell","nationality":"Great Britain","nationality_area_code":"GBR","nationality_area_id":"250","team_id":"35988","team_name":"Williams Martini Racing","points":"0","wins":"0","picture":"https:\/\/www.dsg-images.com\/players\/150x150\/309758.png"}]}}}}