League & Cup Profile
Update Time: 2022-03-24 09:33
Introduction
• This API endpoint returns the complete information of leagues and cups. Click here to view 1600+ football leagues & cups.
• Return
to all events by default.
Related Plans
You can use this api by subscribing plans: Live Data.
Request
- Path: /football_th/league.aspx
- Method: GET
- Calls: This interface is limited to 30 minute/call.
- Recommend Calls: 1 day/call
- Parameters:
Parameter | Value | Required | Description |
---|---|---|---|
leagueId | string | false | Get the league information of the specified leagueId. Max 50 Ids. |
day | int | false | Returns data that has changed in nearly n days. |
Response
Parameter | Value | Description |
---|---|---|
leagueId | int | |
type | int | 1: League 2: Cup |
color | string | RGB color code string, e.g. #9933FF |
logo | string | League logo
url. The picture is saved for local use, please do not call it directly. |
name | string | Full name, e.g. Brazil Serie A |
shortName | string | Short name, e.g. BRA D1 |
subLeagueName | string | The on-going sub league of the league, e.g. Western Paly Off |
totalRound | int | |
currentRound | int | |
currentSeason | string | e.g. 2018-2019 |
countryId | string | |
country | string | Country or region name, e.g. Brazil |
countryLogo | string | Country logo
url. The picture is saved for local use, please do not call it directly. |
areaId | int | 0:International 1:Europe 2: America 3: Asia 4: Oceania 5: Africa |
Request
- Path: /football_th/league.aspx?cmd=rule
Response
Parameter | Value | Description |
---|---|---|
leagueId | int | |
rule | string | Competition rules |