Subscription to this function is not available for your account. To upgrade and receive access to this contact sales@datasportsgroup.com
v3 GET /lol/get_seasons
Returns all (authorized) seasons (that have been recently updated).
Request URL
https://dsg-api.com/clients/{client_name}/lol/get_seasons?comp_id={competition_id}&client={client_name}&authkey={client_authkey}
API Threshold
  • 10k calls per hour (2.78 calls per second)
  • This threshold applies to ALL your calls you do across the API.
  • Your number of calls get reset every hour at :00
  • If the thresold is reached within the hour you will get a xml/json message accordingly (which is gone when the next hour starts, see previous point)
Parameters
authkey
string Required
client authentification key
client
string Required
unique client ID
comp_id
int Required
competition id to get seasons from
ftype
string
changes feed type from XML to json (ftype=json or ftype=json_array)
lang
string
two-character language code, defaults to 'en'
Nodes
competition
details about competition
area_id
unique identifier for an area
area_name
name of the area
competition_id
unique identifier for a competition
format
competition format (domestic_league, domestic_cup, domestic_league_cup, domestic_super_cup, international_cup, international_super_cup, playoff, tournament, race, unofficial)
gender
determines the gender of the competition (male or female)
last_updated
When record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
name
name of the competition
type
determines if a competition is between club teams (club) or national teams (international)
datasportsgroup
details about the API version, sport, language and generation timestamp
generated_utc
UTC timestamp when the API output was generated
lang
language of the API call
sport
sport value
version
version of the API
method
details about the API function
method_id
unique ID of method
name
name of method
season
details about the season
end_date
end date, format 'yyyy-mm-dd'
last_updated
When record was last updated. Format YYYY-MM-DD HH:MM:SS in CET timezone.
logo
full path URL of logo for particular season
original_name
competition name during this season
season_id
unique identifier for season
start_date
start date, format 'yyyy-mm-dd'
title
title of season
Response Headers
200
Success
401
Unauthorized
429
Too Many Requests
Code Samples
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://dsg-api.com/clients/{client_name}/lol/get_seasons?comp_id={competition_id}&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_seasons?comp_id={competition_id}&client={client_name}&authkey={client_authkey}"
Imports System
Imports System.Net	
Imports System.IO
Imports System.Text

Public Module Module1
	Public Sub Main()
		Dim url As String = "https://dsg-api.com/clients/{client_name}/lol/get_seasons?comp_id={competition_id}&client={client_name}&authkey={client_authkey}"
		Dim myReq As WebRequest = WebRequest.Create(url)
		myReq.Credentials = new System.Net.NetworkCredential("{User}", "{Password}")
		Dim wr As WebResponse = myReq.GetResponse()
		Dim receiveStream As Stream = wr.GetResponseStream()
		Dim reader As StreamReader = New StreamReader(receiveStream, Encoding.UTF8)
		Dim content As String = reader.ReadToEnd()
	End Sub
End Module
response = requests.get("https://dsg-api.com/clients/{client_name}/lol/get_seasons?comp_id={competition_id}&client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example
200 Success
{"datasportsgroup":{"version":"2.154.3","sport":"esport_leagueoflegends","lang":"en","generated_utc":"2025-08-01T15:04:59+00:00","method":{"method_id":"154","name":"get_seasons"},"competition":{"competition_id":"1050","name":"LPL","gender":"male","type":"club","format":"domestic_league","area_id":"49","area_name":"China PR","last_updated":"2022-08-14 14:39:08","season":[{"season_id":"76670","title":"Split 3","original_name":"LPL China","start_date":"2025-07-19","end_date":"2025-09-30","logo":"","last_updated":"2025-07-19 10:26:20"},{"season_id":"75432","title":"Split 2","original_name":"LPL China","start_date":"2025-04-05","end_date":"2025-06-14","logo":"","last_updated":"2025-03-22 10:51:36"},{"season_id":"75011","title":"2025 Split 1","original_name":"LPL","start_date":"2025-01-12","end_date":"2025-03-01","logo":"","last_updated":"2025-01-12 09:54:01"},{"season_id":"73043","title":"2024 Summer","original_name":"LPL","start_date":"2024-07-05","end_date":"2024-08-30","logo":"","last_updated":"2024-08-07 21:00:26"},{"season_id":"72783","title":"2024 Summer Placements","original_name":"LPL","start_date":"2024-06-01","end_date":"2024-06-29","logo":"","last_updated":"2024-05-31 22:15:55"},{"season_id":"71652","title":"2024 Spring","original_name":"LPL","start_date":"2024-01-22","end_date":"2024-04-20","logo":"","last_updated":"2024-03-28 03:00:18"},{"season_id":"68380","title":"2023 Summer","original_name":"LPL","start_date":"2023-05-29","end_date":"2023-08-05","logo":"https:\/\/www.dsg-images.com\/comps\/200x200\/1050_1.png","last_updated":"2023-07-19 03:00:12"},{"season_id":"67698","title":"2023 Spring","original_name":"LPL","start_date":"2023-01-14","end_date":"2023-04-15","logo":"https:\/\/www.dsg-images.com\/comps\/200x200\/1050_1.png","last_updated":"2023-04-06 13:00:09"},{"season_id":"65862","title":"2022 Summer","original_name":"LPL","start_date":"2022-06-10","end_date":"2022-09-01","logo":"https:\/\/www.dsg-images.com\/comps\/200x200\/1050_1.png","last_updated":"2023-02-03 21:23:08"},{"season_id":"64514","title":"2022 Spring","original_name":"LPL","start_date":"2022-01-10","end_date":"2022-04-24","logo":"https:\/\/www.dsg-images.com\/comps\/200x200\/1050_1.png","last_updated":"2023-02-03 21:23:12"},{"season_id":"50778","title":"2021 Summer","original_name":"LPL","start_date":"2021-06-07","end_date":"2021-09-05","logo":"https:\/\/www.dsg-images.com\/comps\/200x200\/1050_1.png","last_updated":"2023-02-03 21:23:15"},{"season_id":"48594","title":"2021 Spring","original_name":"LPL","start_date":"2021-01-09","end_date":"2021-04-20","logo":"https:\/\/www.dsg-images.com\/comps\/200x200\/1050_1.png","last_updated":"2021-01-07 17:31:57"},{"season_id":"31710","title":"2020 Summer","original_name":"LPL","start_date":"2020-06-05","end_date":"2020-09-07","logo":"https:\/\/www.dsg-images.com\/comps\/200x200\/1050_1.png","last_updated":"2020-06-08 19:52:18"},{"season_id":"28152","title":"2020 Spring Split","original_name":"LPL","start_date":"2020-01-13","end_date":"2020-05-05","logo":"https:\/\/www.dsg-images.com\/comps\/200x200\/1050.png","last_updated":"2020-04-30 09:55:52"},{"season_id":"21892","title":"2019 Summer","original_name":"LPL","start_date":"2019-06-01","end_date":"2019-09-06","logo":"https:\/\/www.dsg-images.com\/comps\/200x200\/1050.png","last_updated":"2020-05-26 03:00:22"},{"season_id":"20030","title":"2019 Spring Split","original_name":"LPL","start_date":"2019-01-14","end_date":"2019-04-21","logo":"https:\/\/www.dsg-images.com\/comps\/200x200\/1050.png","last_updated":"2020-05-25 20:00:16"},{"season_id":"16869","title":"2018 Summer Split","original_name":"Tencent LoL Pro League","start_date":"2018-06-11","end_date":"2018-08-26","logo":"https:\/\/www.dsg-images.com\/comps\/200x200\/1050.png","last_updated":"2018-06-13 15:20:19"},{"season_id":"15189","title":"2018 Spring Split","original_name":"Tencent LoL Pro League","start_date":"2018-01-15","end_date":"2018-04-08","logo":"https:\/\/www.dsg-images.com\/comps\/200x200\/1050.png","last_updated":"2018-01-10 19:16:29"},{"season_id":"13852","title":"2017 Summer Split","original_name":"Tencent LoL Pro League","start_date":"2017-06-08","end_date":"2017-09-01","logo":"https:\/\/www.dsg-images.com\/comps\/200x200\/1050.png","last_updated":"2017-08-07 21:53:18"},{"season_id":"12723","title":"2017 Spring Split","original_name":"Tencent LoL Pro League","start_date":"2017-01-19","end_date":"2017-04-29","logo":"https:\/\/www.dsg-images.com\/comps\/200x200\/1050.png","last_updated":"2017-08-07 20:12:02"}]}}}