No Subscription to this function
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}
Parameters
ftype
string
changes feed type from XML to json (ftype=json)
Nodes
championship
details about a championship
championship_id
unique championship identifier
name
name of the particular championship
championship_season
details about a championship season
championship_season_id
unique identifier of a championship season
title
title of the particular championship season
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
method
details about the API function
method_id
unique ID of method.
name
name of method.
people
details about the driver and his performance
best_position
best position of the driver in the championship season
common_name
common name of the driver
driver_number
driver number of the driver
first_name
first name of the driver
last_name
last name of the driver
match_name
match name of the driver
nationality
nationality of the driver
nationality_area_code
area code of drivers nationality
nationality_area_id
unique identifier for area.
people_id
unique identifier for the athlete.
picture
full path URL of driver headshot, size can be changed via the picsize parameter
points
number of points in the championship season
position
position of the driver
team_id
unique identifier for a team
team_name
team name
wins
number of wins in the championship season
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}"
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"}]}}}}