Discovery

Popular leagues

GET/v2/leagues/popularAll plans

The source’s own pick of a sport’s popular leagues for a visitor’s country, in its order — the home country’s leagues and the big international competitions first. Made for a “top leagues” menu.

Race sports and MMA have no list (an empty array). To sort any other list of leagues, use LeagueRef.priority where it is set.

Parameters

sport
queryrequired
a sport slug from /v2/sports
country
query
the visitor’s two-letter country code (TR, GB, US, …; case-insensitive). Default: the source’s international list

Response

data
LeagueRef[]
meta
sport, country (null without one), count
errors
400 bad_request — sport missing or unknown, or country not two letters

Every /v2 call can also answer the common errors.

Try it →
$ curl -H "Authorization: Bearer sk_live_…" \
    "https://api.sportsapi.app/v2/leagues/popular?sport=…"
Example
{ "data": [ { "id": 195850, "name": "UEFA Super Cup", "category": "Europe", "country": null, … },
    { "id": 195833, "name": "Trendyol Süper Lig", "category": "Turkey",
      "country": { "code": "TR", "name": "Turkey", "flag": "https://cdn.sportsapi.app/v2/countries/TR/flag" }, … },
    { "id": 195829, "name": "FIFA World Cup", … }, { "id": 195900, "name": "UEFA Champions League", … }, … ],
  "meta": { "sport": "football", "country": "TR", "count": 22 } }