No Subscription to this function
GET /lol/get_competitions
Returns all competitions from an area.
Request URL
https://dsg-api.com/clients/{client_name}/lol/get_competitions?client={client_name}&authkey={client_authkey}
Parameters
area_id
int
area to get the subareas or specific area from
authkey
string Required
client authentification key
client
string Required
unique client ID
ftype
string
changes feed type from XML to json (ftype=json)
lang
string
two-character language code, defaults to 'en'
Nodes
area
Details about area
area_id
unique identifier for an area.
country_code
Three character country code
name
name of the area.
parent_area_id
unique identifier of the parent area (either continent or World)
competition
Details about competition
area_id
unique identifier for area.
area_name
contains the area name.
competition_id
unique identifier for a competition.
format
competition format to filter out leagues or cups
last_updated
When record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
name
name of the competition.
teamtype
determines the type of team/competition (male,female,male_youth,female_youth)
type
determines if a competition is between club teams (club) or national teams (international).
method
details about the API function
method_id
unique ID of method.
name
name of method.
Response Headers
200
Success
401
Unauthorized
429
Rate limit exceeded
Code Samples
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://dsg-api.com/clients/{client_name}/lol/get_competitions?client={client_name}&authkey={client_authkey}");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERPWD, "User:Password");
$content = curl_exec($ch);
curl_close($ch);
?>
curl GET -u "User:Password" "https://dsg-api.com/clients/{client_name}/lol/get_competitions?client={client_name}&authkey={client_authkey}"
response = requests.get("https://dsg-api.com/clients/{client_name}/lol/get_competitions?client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"1.0","sport":"league_of_legends","lang":"en","method":{"method_id":"152","name":"get_competitions"},"competition":[{"competition_id":"1802","name":"OPL","teamtype":"male","type":"club","format":"domestic_league","area_id":"19","area_name":"Australia","last_updated":"2018-06-15 11:48:42"},{"competition_id":"1800","name":"CBLOL","teamtype":"male","type":"club","format":"domestic_league","area_id":"35","area_name":"Brazil","last_updated":"2018-06-15 11:48:40"},{"competition_id":"2147","name":"Playoffs 1\/2","teamtype":"male","type":"club","format":"playoff","area_id":"35","area_name":"Brazil","last_updated":"2018-06-13 11:57:18"},{"competition_id":"1804","name":"CLS","teamtype":"male","type":"club","format":"domestic_league","area_id":"48","area_name":"Chile","last_updated":"2018-06-15 11:48:49"},{"competition_id":"1050","name":"LPL","teamtype":"male","type":"club","format":"domestic_league","area_id":"49","area_name":"China PR","last_updated":"2018-06-15 11:48:26"},{"competition_id":"1799","name":"LMS","teamtype":"male","type":"club","format":"international_cup","area_id":"50","area_name":"Chinese Taipei","last_updated":"2018-06-15 11:48:37"},{"competition_id":"2086","name":"Playoffs 1\/2","teamtype":"male","type":"club","format":"playoff","area_id":"50","area_name":"Chinese Taipei","last_updated":"2018-06-13 11:57:18"},{"competition_id":"1497","name":"EU LCS","teamtype":"male","type":"club","format":"domestic_league","area_id":"7","area_name":"Europe","last_updated":"2018-06-15 11:48:32"},{"competition_id":"1809","name":"EU Challenger Series","teamtype":"male","type":"club","format":"domestic_league","area_id":"7","area_name":"Europe","last_updated":"2018-02-05 15:43:49"},{"competition_id":"1509","name":"Playoffs 1\/2","teamtype":"male","type":"club","format":"playoff","area_id":"7","area_name":"Europe","last_updated":"2018-06-13 11:57:18"},{"competition_id":"1909","name":"European Masters","teamtype":"male","type":"club","format":"international_cup","area_id":"7","area_name":"Europe","last_updated":"2018-02-05 16:02:06"},{"competition_id":"2237","name":"ESL Meisterschaft","teamtype":"male","type":"club","format":"domestic_league","area_id":"80","area_name":"Germany","last_updated":"2019-01-05 03:12:48"},{"competition_id":"1806","name":"LJL","teamtype":"male","type":"club","format":"domestic_league","area_id":"102","area_name":"Japan","last_updated":"2018-06-15 11:48:53"},{"competition_id":"2087","name":"Playoffs 1\/2","teamtype":"male","type":"club","format":"playoff","area_id":"102","area_name":"Japan","last_updated":"2018-06-13 11:57:18"},{"competition_id":"1049","name":"LCK","teamtype":"male","type":"club","format":"domestic_league","area_id":"107","area_name":"Korea Republic","last_updated":"2018-06-15 11:48:22"},{"competition_id":"1496","name":"Playoffs 1\/2","teamtype":"male","type":"club","format":"playoff","area_id":"107","area_name":"Korea Republic","last_updated":"2018-06-13 11:57:18"},{"competition_id":"1805","name":"LLN","teamtype":"male","type":"club","format":"domestic_league","area_id":"129","area_name":"Mexico","last_updated":"2018-06-15 11:48:51"},{"competition_id":"1051","name":"NA LCS","teamtype":"male","type":"club","format":"domestic_league","area_id":"4","area_name":"N\/C America","last_updated":"2018-06-15 11:48:29"},{"competition_id":"1502","name":"NA Challenger Series","teamtype":"male","type":"club","format":"domestic_league","area_id":"4","area_name":"N\/C America","last_updated":"2018-02-05 16:02:06"},{"competition_id":"1506","name":"Playoffs 1\/2","teamtype":"male","type":"club","format":"playoff","area_id":"4","area_name":"N\/C America","last_updated":"2018-06-13 11:57:18"},{"competition_id":"2220","name":"Ultraliga","teamtype":"male","type":"club","format":"domestic_league","area_id":"155","area_name":"Poland","last_updated":"2019-02-27 00:10:27"},{"competition_id":"2227","name":"LPLOL","teamtype":"male","type":"club","format":"domestic_league","area_id":"156","area_name":"Portugal","last_updated":"2019-02-27 00:10:27"},{"competition_id":"1810","name":"LCL","teamtype":"male","type":"club","format":"domestic_league","area_id":"160","area_name":"Russia","last_updated":"2018-06-15 11:48:57"},{"competition_id":"2229","name":"Playoffs 1\/2","teamtype":"male","type":"club","format":"playoff","area_id":"160","area_name":"Russia","last_updated":"2018-06-13 11:57:18"},{"competition_id":"2159","name":"Liga Latinoamérica","teamtype":"male","type":"club","format":"domestic_league","area_id":"5","area_name":"South America","last_updated":"2019-01-27 11:40:52"},{"competition_id":"2238","name":"LVP SuperLiga Orange","teamtype":"male","type":"club","format":"domestic_league","area_id":"176","area_name":"Spain","last_updated":"2019-01-05 03:12:48"},{"competition_id":"1803","name":"TCL","teamtype":"male","type":"club","format":"domestic_league","area_id":"196","area_name":"Turkey","last_updated":"2018-06-15 11:48:47"},{"competition_id":"2163","name":"VCS","teamtype":"male","type":"club","format":"domestic_league","area_id":"208","area_name":"Vietnam","last_updated":"2018-09-29 12:55:42"},{"competition_id":"1043","name":"World Championship","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-10-13 16:28:23"},{"competition_id":"1061","name":"Intel Extreme Masters - World Championship","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2019-02-14 04:03:01"},{"competition_id":"1515","name":"Mid-Season Invitational","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-06-15 11:49:01"},{"competition_id":"2088","name":"Rift Rivals","teamtype":"male","type":"club","format":"international_cup","area_id":"1","area_name":"World","last_updated":"2018-10-13 16:28:23"}]}}