Skip to content

Livematches in play

Demo: Matchboard, opens in a new tab
Docs v2

Race sports

Series

GET

/v2/series

All plans

View as MarkdownTry in Playground →

Lists the series under a race-sport category, such as NASCAR Cup Series, Truck Series and Xfinity under Nascar, Formula 1 under Formula 1, and Cycling Men and Cycling Women under cycling’s International.

You get an empty list for a category that holds no series, such as motorsport’s International or any category belonging to a fixture sport. A series id from here works with /v2/series/{id}/seasons, /races and /standings.

Parameters

category

queryrequired

motorsport or cycling category id — list them with /v2/categories?sport=motorsport or ?sport=cycling

Response

data
SeriesRef[]
meta
category, count
errors
400 bad_request — category is absent or invalid404 not_found — DataSportsAPI never issued this category id

Any /v2 call can also come back with one of the common errors.

curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/v2/series?category=…"
Example
{ "data": [ { "id": 696772, "name": "NASCAR Cup Series", "slug": "nascar-cup-series", "sport": "motorsport" },
    { "id": 812301, "name": "NASCAR Craftsman Truck Series", "slug": "nascar-camping-world", "sport": "motorsport" }, … ],
  "meta": { "category": 696300, "count": 3 } }