SportAPI Documentation
EN
S Product documentationSport Line API
v1
Service & pricing ↗ Get access ↗
Sport Line API / TOPCHAMPIONSHIPS — popular championships

topchampionships Method — Top Championships

Purpose

The topchampionships method returns a list of the most popular championships — up to 12 — for Live or Prematch. For example, use it for a “Popular tournaments” block on the home page or for quick links in the menu.

Each championship comes with its ID, name, sport, country, and the number of available matches. The matches of the selected championship are then requested with the events method by tournament_id.

How the List Is Built

Line typeWhat is included
line (Prematch)The bookmaker’s main championships: Champions League, top European leagues, NBA, NHL, and so on — in order of popularity. Only championships that currently have matches in the line are returned
liveChampionships with matches in progress right now — the most popular first (top leagues); with equal popularity, championships with more matches come first

The Live list changes during the day: it contains only what is being played right now. At night it may therefore include less-known tournaments — the most popular of those in progress.

Esports are not included. If the API key opens only some sports, the list is built within them.

Request

GET https://YOUR_API_DOMAIN/v1/topchampionships/{type}/{lang}

Pass the API key in the HTTP header:

Package: YOUR_API_KEY

Path Parameters

ParameterTypeRequiredDescription
typestringyesLine type: live or line. Any other value returns an empty list
langstringyesLanguage of names. The language must be supported by the API and included in the client’s plan

Request Example

curl --request GET \
  --url 'https://YOUR_API_DOMAIN/v1/topchampionships/line/en' \
  --header 'Package: YOUR_API_KEY'

Response Example

A Prematch response for a key with basketball and baseball:

{
  "status": 1,
  "page": "/v1/topchampionships",
  "body": [
    {
      "position": 1,
      "tournament_id": 166775,
      "tournament_name": "USA. MLB",
      "sport_id": 5,
      "sport_name": "Baseball",
      "country_id": 153,
      "country_name": "United States",
      "counter": 4
    },
    {
      "position": 2,
      "tournament_id": 13589,
      "tournament_name": "NBA",
      "sport_id": 3,
      "sport_name": "Basketball",
      "country_id": 153,
      "country_name": "United States",
      "counter": 41
    }
  ]
}

Response Fields

Top Level

FieldTypeDescription
statusnumber1 — a successful response
pagestringTechnical method address: /v1/topchampionships
bodyarrayChampionships in order of popularity. May be empty

Championship Object

FieldTypeDescription
positionnumberPlace in the list: 1, 2, …
tournament_idnumberChampionship ID. Used as tournamentId in events
tournament_namestringChampionship name in the lang language
sport_idnumberSport ID
sport_namestringSport name in the lang language
country_idnumberCountry or region ID
country_namestringCountry or region name in the lang language
counternumberNumber of matches of the championship: in Prematch — in the whole line, in Live — in progress now

What to Do with the Returned tournament_id

Get the championship’s matches with events for the same line type:

GET https://YOUR_API_DOMAIN/v1/events/{sport_id}/{tournament_id}/sub/50/{type}/{lang}

For example, all Prematch NBA matches from the example above:

GET https://YOUR_API_DOMAIN/v1/events/3/13589/sub/50/line/en

Icons

Championship, sport, and country icons are the standard SportAPI icons by ID from the response:

https://cdn.sportapi.net/tournaments/v1/color/{tournament_id}.webp
https://cdn.sportapi.net/sports/v1/color/{sport_id}.webp
https://cdn.sportapi.net/flags/v1/color/{country_id}.webp

See SportAPI Icons and Media Files for details.

Difference from topmatches and toplist

MethodReturns
topchampionshipsPopular championships (without matches)
topmatchesPopular Live or Prematch matches of all sports
toplistPopular Prematch matches of one sport

Update Frequency

The Prematch list changes rarely — requesting it once every 5–10 minutes is enough. The Live list follows the matches in progress — once every 1–2 minutes.