Skip to content
datasportsAPI

Race sportsOne series

Documentation

/

Type to filter the docs by title or path.

Race sportsEndpoint 96 of 116

One series

GET

/v2/series/{id}

Plan
All plans
Auth
Bearer dsa_live_…
Parameters
1 required · 0 optional
Returns
SeriesRef

Basic details of a racing series — its name, slug and sport.

01Parameters

  • idpathRequired

    series id issued by DataSportsAPI, a positive integer

02Request

The same call from the command line and each SDK. The SDK lines assume a client created with your key; left out, it is read from DATASPORTSAPI_API_KEY. Installing a client: SDKs & CLI.

curl -H "Authorization: Bearer dsa_live_…" \
    "https://api.datasportsapi.com/v2/series/{id}"

03Response

The top-level keys of the JSON body. Each object links to its full shape in the data reference.

data
SeriesRef
ObjectsSeriesRef
Example response
{ "data": { "id": 812300, "name": "Formula 1", "slug": "formula-1", "sport": "motorsport" } }

04Errors

  • 404no_data

    our data source returns nothing for this series (an id DataSportsAPI never issued gives 404 not_found instead)

Any key can also meet401unauthorized429rate_limited429quota_exceeded500internal_errorEvery error code