GET Driver by ID
This endpoint returns the requested driver by its ID.
https://api.sportmonks.com/v3/motorsport/drivers/DRIVER_ID{
"data": {
"id": 37920800,
"sport_id": 2,
"country_id": 38,
"nationality_id": 38,
"city_id": null,
"position_id": 9730,
"detailed_position_id": 9730,
"type_id": null,
"common_name": "M. Verstappen",
"firstname": "Max",
"lastname": "Verstappen",
"name": "Max Verstappen",
"display_name": "Max Verstappen",
"image_path": "https://cdn.sportmonks.com/images/motorsport/players/0/37920800.png",
"height": null,
"weight": null,
"date_of_birth": "1997-09-30",
"gender": "male"
},Field
Description
Type
Query Parameters
Required?
Description
Pagination
Include depth
Include options
Code Example
require "uri"
require "net/http"
url = URI("https://api.sportmonks.com/v3/motorsport/drivers/37920802?api_token={your_token}")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
response = https.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.sportmonks.com")
payload = ''
headers = {}
conn.request("GET", "/v3/motorsport/drivers/37920802?api_token={your_token}", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))Last updated
Was this helpful?