Teams

Team leagues

GET/v2/teams/{id}/leaguesAll plans

Every competition the team plays in or has played in — domestic league, cups, European competitions, friendly tournaments.

Pass a league id to /v2/leagues/{id}/seasons and the season endpoints. For a player, /v2/players/{id}/seasons already lists his leagues with their seasons. An empty array where the source lists none.

Parameters

id
pathrequired
our numeric id (positive integer)

Response

data
LeagueRef[]
meta
count

Every /v2 call can also answer the common errors.

Try it →
$ curl -H "Authorization: Bearer sk_live_…" \
    "https://api.sportsapi.app/v2/teams/{id}/leagues"
Example
{ "data": [ { "id": 195828, "name": "Premier League", "slug": "premier-league", "sport": "football", "category": "England",
                "country": { "code": "EN", "name": "England" }, "image": "https://cdn.sportsapi.app/v2/leagues/195828/logo" },
    { "id": 195841, "name": "EFL Cup", … }, { "id": 195840, "name": "FA Cup", … },
    { "id": 195900, "name": "UEFA Champions League", "category": "Europe", "country": null, … },
    { "id": 196215, "name": "Emirates Cup", … }, … ],
  "meta": { "count": 9 } }