1. Home
  2. Docs
  3. JSON Documentation (Old API) – Will be deprecated soon
  4. JSON Calls
  5. Country Leagues

Country Leagues

Method


The list of (current) competitions of a given country.
This will return the latest season of the competitions that have fixtures (m_leagues?countryName=RUSSIA&sport=1) or you can use seasonName to request a specific season (m_leagues?countryName=RUSSIA&sport=1&seasonName=2017/2018)

GET /m_leagues

Parameters

sportIdSport IdInteger – Required
countryNameCountry NameString –Required
leagueNameLeague NameString – Optional
seasonNameSeasonString – Optional

Request Example

https://apidata.xscores.com/m_leagues?countryName=ENGLAND&sport=1&seasonName=2021/2022&leagueName=U18%20PREMIER%20LEAGUE&usr=<yourusername>&pwd=<your password>

Response Sample

HTML

Coding Example

JS