Leagues
Groups
GET/v2/leagues/{id}/groupsAll plans
A league season’s groups of its group stage — tennis round robins such as the ATP and WTA Finals (Group A, Group B …). Each group’s matches: /v2/leagues/{id}/groups/{groupId}/fixtures; every match also names its group in Fixture.group.
Parameters
id
our numeric id (positive integer)
season
a season id from /v2/leagues/{id}/seasons
Response
- data
LeagueGroup[]- meta
- season, count
- errors
- 403 history_not_in_plan — a season before your plan’s history404 no_data — the season has no group stage
Every /v2 call can also answer the common errors.
$ curl -H "Authorization: Bearer sk_live_…" \ "https://api.sportsapi.app/v2/leagues/{id}/groups?season=…"
Example
{ "data": [ { "id": 1190101, "name": "Group A" }, { "id": 1190102, "name": "Group B" } ], "meta": { "season": 1184480, "count": 2 } }