Race sportsEndpoint 97 of 116
Series seasons
GET
https://api.datasportsapi.com/
- Plan
- All plans
- Auth
Bearer dsa_live_…- Parameters
- 1 required · 0 optional
- Returns
Season[]
Lists a series’ seasons, most recent first.
01Parameters
idpathRequiredseries 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}/seasons"03Response
The top-level keys of the JSON body. Each object links to its full shape in the data reference.
dataSeason[]meta- count
ObjectsSeason
Example response
2 lines
{ "data": [ { "id": 812301, "name": "Formula 1 2026", "year": "2026", "startYear": 2026, "endYear": 2026 }, … ],
"meta": { "count": 77 } }04Errors
- 404
no_dataour data source keeps no season list for this series
Any key can also meet401
unauthorized429rate_limited429quota_exceeded500internal_errorEvery error code