Subscription to this function is not available for your account. To upgrade and receive access to this contact sales@datasportsgroup.com
v3 GET /motorsports/get_tables
Returns the league, home & away tables per season or round.
Request URL
https://dsg-api.com/clients/{client_name}/motorsports/get_tables?type=tour_season&id={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
authkey
string Required
client authentification key
category
string
for FIM Endurance you can use "SST" or "EWC"
client
string Required
unique client ID
ftype
string
changes feed type from XML to json (ftype=json or ftype=json_array)
grouping
string
you can use value "team" to get the team standings
id
int Required
object id to return
lang
string
two-character language code, defaults to 'en'
type
string Required
type is either "tour_season" or "season"
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
table❯
details about the table entry (motorsports)
area_code
three character area code
area_id
unique identifier for an area
area_name
name of the area
best_position
best position across all races
common_name
common name of the person
driver_number
driver number
fastest_laps
number of fastest laps across all races
first_name
first name of the person
last_name
last name of the person
nationality_area_code
three character area code
nationality_area_id
unique identifier for an area
nationality_area_name
area name of peoples nationality
people_id
unique identifier for person
points
value for total points gained
pole_positions
number of pole positions across all races
position
position value
short_name
shortened name of the person
team_id
unique identifier of the team
team_name
current team name
wins
number of race wins
tour❯
details about the tour
gender
gender of the tour
name
name of the particular tour
tour_id
unique tour identifier
tour_type
defines if the tournament is part of a tour or not. If not then value "non-tour"
tour_season❯
details about a tour season
logo
full path URL of logo for particular tour_season
name
name of the tour_season
title
title of the particular tour season
tour_season_id
unique identifier of a tour 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_tables?type=tour_season&id={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_tables?type=tour_season&id={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_tables?type=tour_season&id={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_tables?type=tour_season&id={tour_season_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example200 Success{"datasportsgroup":{"version":"2.1366.3","sport":"motorsports","lang":"en","generated_utc":"2025-08-01T15:22:56+00:00","method":{"method_id":"1366","name":"get_tables"},"tour":{"tour_id":"7","name":"FIA Formula One World Championship","gender":"male","tour_type":"tour","tour_season":{"tour_season_id":"1399","title":"2025","name":"","logo":"","total":{"table":[{"position":"1","people_id":"7826875","first_name":"Oscar","last_name":"Piastri","short_name":"O. Piastri","common_name":"Oscar Piastri","nationality_area_id":"19","nationality_area_code":"AUS","nationality_area_name":"Australia","points":"266","wins":"6","best_position":"1","fastest_laps":"4","pole_positions":"4","driver_number":"81","tla_name":"PIA","team_id":"35982","team_name":"McLaren F1 Team"},{"position":"2","people_id":"309757","first_name":"Lando","last_name":"Norris","short_name":"L. Norris","common_name":"Lando Norris","nationality_area_id":"250","nationality_area_code":"GBR","nationality_area_name":"Great Britain","points":"250","wins":"4","best_position":"1","fastest_laps":"4","pole_positions":"4","driver_number":"4","tla_name":"NOR","team_id":"35982","team_name":"McLaren F1 Team"},{"position":"3","people_id":"244848","first_name":"Max Emilian","last_name":"Verstappen","short_name":"M. Verstappen","common_name":"Max Verstappen","nationality_area_id":"138","nationality_area_code":"NLD","nationality_area_name":"Netherlands","points":"185","wins":"2","best_position":"1","fastest_laps":"1","pole_positions":"4","driver_number":"1","tla_name":"VER","team_id":"35984","team_name":"Oracle Red Bull Racing"},{"position":"4","people_id":"309758","first_name":"George","last_name":"Russell","short_name":"G. Russell","common_name":"George Russell","nationality_area_id":"250","nationality_area_code":"GBR","nationality_area_name":"Great Britain","points":"157","wins":"1","best_position":"1","fastest_laps":"1","pole_positions":"1","driver_number":"63","tla_name":"RUS","team_id":"35983","team_name":"Mercedes-AMG Petronas F1 Team"},{"position":"5","people_id":"244852","first_name":"Charles","last_name":"Leclerc","short_name":"C. Leclerc","common_name":"Charles Leclerc","nationality_area_id":"253","nationality_area_code":"MCO","nationality_area_name":"Monaco","points":"139","wins":"0","best_position":"2","fastest_laps":"0","pole_positions":"0","driver_number":"16","tla_name":"LEC","team_id":"35979","team_name":"Scuderia Ferrari HP"},{"position":"6","people_id":"244845","first_name":"Lewis Carl Davidson","last_name":"Hamilton","short_name":"L. Hamilton","common_name":"Lewis Hamilton","nationality_area_id":"250","nationality_area_code":"GBR","nationality_area_name":"Great Britain","points":"109","wins":"0","best_position":"4","fastest_laps":"1","pole_positions":"0","driver_number":"44","tla_name":"HAM","team_id":"35979","team_name":"Scuderia Ferrari HP"},{"position":"7","people_id":"7945260","first_name":"Andrea Kimi","last_name":"Antonelli","short_name":"A. Antonelli","common_name":"Andrea Kimi Antonelli","nationality_area_id":"100","nationality_area_code":"ITA","nationality_area_name":"Italy","points":"61","wins":"0","best_position":"3","fastest_laps":"2","pole_positions":"0","driver_number":"12","tla_name":"ANT","team_id":"35983","team_name":"Mercedes-AMG Petronas F1 Team"},{"position":"8","people_id":"309756","first_name":"Alexander","last_name":"Albon","short_name":"A. Albon","common_name":"Alexander Albon","nationality_area_id":"191","nationality_area_code":"THA","nationality_area_name":"Thailand","points":"56","wins":"0","best_position":"4","fastest_laps":"0","pole_positions":"0","driver_number":"23","tla_name":"ALB","team_id":"35988","team_name":"Atlassian Williams Racing"},{"position":"9","people_id":"244849","first_name":"Nico","last_name":"Hülkenberg","short_name":"N. Hülkenberg","common_name":"Nico Hülkenberg","nationality_area_id":"80","nationality_area_code":"DEU","nationality_area_name":"Germany","points":"37","wins":"0","best_position":"3","fastest_laps":"0","pole_positions":"0","driver_number":"27","tla_name":"HUL","team_id":"35986","team_name":"Stake F1 Team Kick Sauber"},{"position":"10","people_id":"244839","first_name":"Esteban","last_name":"Ocon","short_name":"E. Ocon","common_name":"Esteban Ocon","nationality_area_id":"76","nationality_area_code":"FRA","nationality_area_name":"France","points":"27","wins":"0","best_position":"5","fastest_laps":"0","pole_positions":"0","driver_number":"31","tla_name":"OCO","team_id":"35981","team_name":"MoneyGram Haas F1 Team"},{"position":"11","people_id":"7888345","first_name":"Isack Alexandre","last_name":"Hadjar","short_name":"I. Hadjar","common_name":"Isack Hadjar","nationality_area_id":"76","nationality_area_code":"FRA","nationality_area_name":"France","points":"22","wins":"0","best_position":"6","fastest_laps":"0","pole_positions":"0","driver_number":"6","tla_name":"HAD","team_id":"35987","team_name":"Visa Cash App Racing Bulls F1 Team"},{"position":"12","people_id":"244853","first_name":"Pierre","last_name":"Gasly","short_name":"P. Gasly","common_name":"Pierre Gasly","nationality_area_id":"76","nationality_area_code":"FRA","nationality_area_name":"France","points":"20","wins":"0","best_position":"6","fastest_laps":"0","pole_positions":"0","driver_number":"10","tla_name":"GAS","team_id":"35985","team_name":"BWT Alpine F1 Team"},{"position":"13","people_id":"244855","first_name":"Lance","last_name":"Stroll","short_name":"L. Stroll","common_name":"Lance Stroll","nationality_area_id":"43","nationality_area_code":"CAN","nationality_area_name":"Canada","points":"20","wins":"0","best_position":"6","fastest_laps":"0","pole_positions":"0","driver_number":"18","tla_name":"STR","team_id":"40220","team_name":"Aston Martin Aramco F1 Team"},{"position":"14","people_id":"7816759","first_name":"Liam","last_name":"Lawson","short_name":"L. Lawson","common_name":"Liam Lawson","nationality_area_id":"141","nationality_area_code":"NZL","nationality_area_name":"New Zealand","points":"16","wins":"0","best_position":"6","fastest_laps":"0","pole_positions":"0","driver_number":"30","tla_name":"LAW","team_id":"35984","team_name":"Oracle Red Bull Racing"},{"position":"15","people_id":"244844","first_name":"Fernando","last_name":"Alonso","short_name":"Fernando Alonso","common_name":"Fernando Alonso","nationality_area_id":"176","nationality_area_code":"ESP","nationality_area_name":"Spain","points":"16","wins":"0","best_position":"7","fastest_laps":"0","pole_positions":"0","driver_number":"14","tla_name":"ALO","team_id":"40220","team_name":"Aston Martin Aramco F1 Team"},{"position":"16","people_id":"244850","first_name":"Carlos","last_name":"Sainz Vázquez de Castro","short_name":"Carlos Sainz Jr","common_name":"Carlos Sainz Jr","nationality_area_id":"176","nationality_area_code":"ESP","nationality_area_name":"Spain","points":"16","wins":"0","best_position":"8","fastest_laps":"0","pole_positions":"0","driver_number":"55","tla_name":"SAI","team_id":"35988","team_name":"Atlassian Williams Racing"},{"position":"17","people_id":"443135","first_name":"Yuki","last_name":"Tsunoda","short_name":"Y. Tsunoda","common_name":"Yuki Tsunoda","nationality_area_id":"102","nationality_area_code":"JPN","nationality_area_name":"Japan","points":"10","wins":"0","best_position":"9","fastest_laps":"0","pole_positions":"0","driver_number":"22","tla_name":"TSU","team_id":"35987","team_name":"Visa Cash App Racing Bulls F1 Team"},{"position":"18","people_id":"7888344","first_name":"Oliver James","last_name":"Bearman","short_name":"O. Bearman","common_name":"Oliver Bearman","nationality_area_id":"250","nationality_area_code":"GBR","nationality_area_name":"Great Britain","points":"8","wins":"0","best_position":"8","fastest_laps":"0","pole_positions":"0","driver_number":"87","tla_name":"BEA","team_id":"35981","team_name":"MoneyGram Haas F1 Team"},{"position":"19","people_id":"7982632","first_name":"Gabriel","last_name":"Bortoleto","short_name":"Gabriel Bortoleto","common_name":"Gabriel Bortoleto","nationality_area_id":"35","nationality_area_code":"BRA","nationality_area_name":"Brazil","points":"6","wins":"0","best_position":"8","fastest_laps":"0","pole_positions":"0","driver_number":"5","tla_name":"BOR","team_id":"35986","team_name":"Stake F1 Team Kick Sauber"},{"position":"20","people_id":"7816760","first_name":"Jack","last_name":"Doohan","short_name":"J. Doohan","common_name":"Jack Doohan","nationality_area_id":"19","nationality_area_code":"AUS","nationality_area_name":"Australia","points":"0","wins":"0","best_position":"13","fastest_laps":"0","pole_positions":"0","driver_number":"7","tla_name":"DOO","team_id":"35985","team_name":"BWT Alpine F1 Team"},{"position":"21","people_id":"7932411","first_name":"Franco","last_name":"Colapinto","short_name":"F. Colapinto","common_name":"Franco Colapinto","nationality_area_id":"16","nationality_area_code":"ARG","nationality_area_name":"Argentina","points":"0","wins":"0","best_position":"13","fastest_laps":"0","pole_positions":"0","driver_number":"43","tla_name":"COL","team_id":"35985","team_name":"BWT Alpine F1 Team"}]}}}}}