Skip to content
API v2 docs

Leagues

Groups

GET

/v2/leagues/{id}/groups

All plans

Markdown copyOpen in the playground →

Lists the groups of a league season’s group stage, such as the round-robin groups of the ATP and WTA Finals in tennis (Group A, Group B, …). Available since 2026-11-20.

Take a group’s id to /v2/leagues/{id}/groups/{groupId}/fixtures for its matches. You rarely need this call to label a match: every fixture of a group stage already names its group in Fixture.group.

Parameters

id

pathrequired

league id issued by DataSportsAPI, a positive integer

season

queryrequired

season id, as listed by /v2/leagues/{id}/seasons

Response

meta
season, count
errors
403 history_not_in_plan — your plan’s history window begins after this season ended404 no_data — the season is played without a group stage

The errors every /v2 call shares (key, plan, quota, rate) are listed under error codes.

curl -H "Authorization: Bearer sk_live_…" \
    "https://api.datasportsapi.com/v2/leagues/{id}/groups?season=…"
Example
{ "data": [ { "id": 1190101, "name": "Group A" }, { "id": 1190102, "name": "Group B" } ],
  "meta": { "season": 1184480, "count": 2 } }