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_mastery
Returns all masteries
Request URL
https://dsg-api.com/clients/{client_name}/lol/get_mastery?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
ftype
string
changes feed type from XML to json (ftype=json or ftype=json_array)
lang
string
two-character language code, defaults to 'en'
mastery_id
int
to filter for a specific mastery_id
Nodes
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
mastery❯
details about all available masteries
description_rank_1
description for rank 1
description_rank_2
description for rank 2
description_rank_3
description for rank 3
description_rank_4
description for rank 4
description_rank_5
description for rank 5
mastery_id
unique identifier of a particular mastery
mastery_name
name of a particular mastery
mastery_ranks
number of ranks for the particular mastery
method❯
details about the API function
method_id
unique ID of method
name
name of method
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_mastery?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_mastery?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_mastery?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_mastery?client={client_name}&authkey={client_authkey}", auth=("User", "Password"))
Response Example200 Success{"datasportsgroup":{"version":"1.0","sport":"league_of_legends","lang":"en","method":{"method_id":"24","name":"get_mastery"},"mastery":[{"mastery_id":"6111","mastery_name":"Fury","mastery_ranks":"5","description_rank_1":"+0.8% Attack Speed","description_rank_2":"+1.6% Attack Speed","description_rank_3":"+2.4% Attack Speed","description_rank_4":"+3.2% Attack Speed","description_rank_5":"+4% Attack Speed"},{"mastery_id":"6114","mastery_name":"Sorcery","mastery_ranks":"5","description_rank_1":"+0.4% increased Ability damage","description_rank_2":"+0.8% increased Ability damage","description_rank_3":"+1.2% increased Ability damage","description_rank_4":"+1.6% increased Ability damage","description_rank_5":"+2.0% increased Ability damage"},{"mastery_id":"6121","mastery_name":"Fresh Blood","mastery_ranks":"1","description_rank_1":"Your first basic attack against a champion deals an additional 10 +1 per level damage (6 second cooldown)","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6122","mastery_name":"Feast","mastery_ranks":"1","description_rank_1":"Killing a unit restores 20 Health (30 second cooldown)","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6123","mastery_name":"Expose Weakness","mastery_ranks":"1","description_rank_1":"Damaging enemy champions causes them to take 3% more damage from your allies","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6131","mastery_name":"Vampirism","mastery_ranks":"5","description_rank_1":"+0.4% Lifesteal and Spell Vamp","description_rank_2":"+0.8% Lifesteal and Spell Vamp","description_rank_3":"+1.2% Lifesteal and Spell Vamp","description_rank_4":"+1.6% Lifesteal and Spell Vamp","description_rank_5":"+2.0% Lifesteal and Spell Vamp"},{"mastery_id":"6134","mastery_name":"Natural Talent","mastery_ranks":"5","description_rank_1":"Gain 0.4 + 0.09 per level Attack Damage, and 0.6 + 0.13 per level Ability Power (+2 Attack Damage and 3 Ability Power at level 18)","description_rank_2":"Gain 0.8 + 0.18 per level Attack Damage, and 1.2 + 0.27 per level Ability Power (+4 Attack Damage and 6 Ability Power at level 18)","description_rank_3":"Gain 1.2 + 0.27 per level Attack Damage, and 1.8 + 0.4 per level Ability Power (+6 Attack Damage and 9 Ability Power at level 18)","description_rank_4":"Gain 1.6 + 0.36 per level Attack Damage, and 2.4 + 0.53 per level Ability Power (+8 Attack Damage and 12 Ability Power at level 18)","description_rank_5":"Gain 2 + 0.44 per level Attack Damage, and 3 + 0.67 per level Ability Power (+10 Attack Damage and 15 Ability Power at level 18)"},{"mastery_id":"6141","mastery_name":"Bounty Hunter","mastery_ranks":"1","description_rank_1":"Deal 1% increased damage for each unique enemy champion you have killed","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6142","mastery_name":"Double Edged Sword","mastery_ranks":"1","description_rank_1":"Deal 3% additional damage, take 1.5% additional damage.","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6143","mastery_name":"Battle Trance","mastery_ranks":"1","description_rank_1":"Gain up to 3% increased damage over 3 seconds when in combat with enemy Champions","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6151","mastery_name":"Battering Blows","mastery_ranks":"5","description_rank_1":"+1.4% Armor Penetration","description_rank_2":"+2.8% Armor Penetration","description_rank_3":"+4.2% Armor Penetration","description_rank_4":"+5.6% Armor Penetration","description_rank_5":"+7% Armor Penetration"},{"mastery_id":"6154","mastery_name":"Piercing Thoughts","mastery_ranks":"5","description_rank_1":"+1.4% Magic Penetration","description_rank_2":"+2.8% Magic Penetration","description_rank_3":"+4.2% Magic Penetration","description_rank_4":"+5.6% Magic Penetration","description_rank_5":"+7% Magic Penetration"},{"mastery_id":"6161","mastery_name":"Warlord's Bloodlust","mastery_ranks":"1","description_rank_1":"Moving or attacking will charge an Energized attack. Energized attacks heal for 5-40% of your total Attack Damage (amplified by Critical Strikes) and grant 30% Movement Speed for 0.75 seconds.","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6162","mastery_name":"Fervor of Battle","mastery_ranks":"1","description_rank_1":"Hitting champions with basic attacks generates a Fervor stack (2 for melee attacks). Stacks of Fervor last 8 seconds (max 8 stacks)and increase your AD by 1-8 for each stack.","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6164","mastery_name":"Deathfire Touch","mastery_ranks":"1","description_rank_1":"Your damaging abilities cause enemy champions to take magic damage over 4 seconds. Damage: 8 + 45% Bonus Attack Damage and 25% Ability Power Deathfire Touch's duration is reduced for: - Area of Effect: 2 second duration. - Damage over Time: 1 second duration.","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6211","mastery_name":"Recovery","mastery_ranks":"5","description_rank_1":"+0.4 Health per 5 seconds","description_rank_2":"+0.8 Health per 5 seconds","description_rank_3":"+1.2 Health per 5 seconds","description_rank_4":"+1.6 Health per 5 seconds","description_rank_5":"+2.0 Health per 5 seconds"},{"mastery_id":"6212","mastery_name":"Unyielding","mastery_ranks":"5","description_rank_1":"+1% Bonus Armor and Magic Resist","description_rank_2":"+2% Bonus Armor and Magic Resist","description_rank_3":"+3% Bonus Armor and Magic Resist","description_rank_4":"+4% Bonus Armor and Magic Resist","description_rank_5":"+5% Bonus Armor and Magic Resist"},{"mastery_id":"6221","mastery_name":"Explorer","mastery_ranks":"1","description_rank_1":"+15 Movement Speed in Brush and River","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6222","mastery_name":"Siegemaster","mastery_ranks":"1","description_rank_1":"Gain 8 Armor and Magic Resistance when near an allied tower","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6223","mastery_name":"Tough Skin","mastery_ranks":"1","description_rank_1":"You take 2 less damage from champion and neutral monster basic attacks","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6231","mastery_name":"Runic Armor","mastery_ranks":"5","description_rank_1":"Shields, healing, regeneration, and lifesteal on you are 1.6% stronger","description_rank_2":"Shields, healing, regeneration, and lifesteal on you are 3.2% stronger","description_rank_3":"Shields, healing, regeneration, and lifesteal on you are 4.8% stronger","description_rank_4":"Shields, healing, regeneration, and lifesteal on you are 6.4% stronger","description_rank_5":"Shields, healing, regeneration, and lifesteal on you are 8% stronger"},{"mastery_id":"6232","mastery_name":"Veteran's Scars","mastery_ranks":"5","description_rank_1":"+10 Health","description_rank_2":"+20 Health","description_rank_3":"+30 Health","description_rank_4":"+40 Health","description_rank_5":"+50 Health"},{"mastery_id":"6241","mastery_name":"Insight","mastery_ranks":"1","description_rank_1":"Reduces the cooldown of Summoner Spells by 15%","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6242","mastery_name":"Perseverance","mastery_ranks":"1","description_rank_1":"+50% Base Health Regen, increased to +200% when below 25% Health","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6243","mastery_name":"Fearless","mastery_ranks":"1","description_rank_1":"Gain 10% +1.5 per level bonus Armor and Magic Resist when damaged by an enemy champion for 2 seconds (9s Cooldown)","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6251","mastery_name":"Swiftness","mastery_ranks":"5","description_rank_1":"+3% Tenacity and Slow Resist","description_rank_2":"+6% Tenacity and Slow Resist","description_rank_3":"+9% Tenacity and Slow Resist","description_rank_4":"+12% Tenacity and Slow Resist","description_rank_5":"+15% Tenacity and Slow Resist"},{"mastery_id":"6252","mastery_name":"Legendary Guardian","mastery_ranks":"5","description_rank_1":"+0.6 Armor and Magic Resist for each nearby enemy champion","description_rank_2":"+1.2 Armor and Magic Resist for each nearby enemy champion","description_rank_3":"+1.8 Armor and Magic Resist for each nearby enemy champion","description_rank_4":"+2.4 Armor and Magic Resist for each nearby enemy champion","description_rank_5":"+3 Armor and Magic Resist for each nearby enemy champion"},{"mastery_id":"6261","mastery_name":"Grasp of the Undying","mastery_ranks":"1","description_rank_1":"Every 4 seconds in combat, your next attack against an enemy champion deals damage equal to 3% of your max Health and heals you for 1.5% of your max Health (halved for ranged champions, deals magic damage)","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6262","mastery_name":"Courage of the Colossus","mastery_ranks":"1","description_rank_1":"Gain a shield for 3-54 (+5% of your maximum health) for each nearby enemy champion for 3 seconds after hitting an enemy champion with a stun, taunt, snare, or knock up (45-30 second cooldown, based on level).","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6263","mastery_name":"Bond of Stone","mastery_ranks":"1","description_rank_1":"Gain 5% total health. Your movement impairing effects brand enemy champions with an earthen rune for 4 seconds. Other allied champions who attack branded enemies heal for 5 + 2.5% of your maximum health over 2 seconds (halved if you are ranged).","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6311","mastery_name":"Wanderer","mastery_ranks":"5","description_rank_1":"+0.6% Movement Speed out of combat","description_rank_2":"+1.2% Movement Speed out of combat","description_rank_3":"+1.8% Movement Speed out of combat","description_rank_4":"+2.4% Movement Speed out of combat","description_rank_5":"+3% Movement Speed out of combat"},{"mastery_id":"6312","mastery_name":"Savagery","mastery_ranks":"5","description_rank_1":"Single target attacks and spells deal 1 bonus damage to minions and monsters","description_rank_2":"Single target attacks and spells deal 2 bonus damage to minions and monsters","description_rank_3":"Single target attacks and spells deal 3 bonus damage to minions and monsters","description_rank_4":"Single target attacks and spells deal 4 bonus damage to minions and monsters","description_rank_5":"Single target attacks and spells deal 5 bonus damage to minions and monsters"},{"mastery_id":"6321","mastery_name":"Runic Affinity","mastery_ranks":"1","description_rank_1":"Buffs from neutral monsters last 15% longer","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6322","mastery_name":"Secret Stash","mastery_ranks":"1","description_rank_1":"Your Potions and Elixirs last 10% longer. Your Health Potions are replaced with Biscuits that restore 15 Health and Mana instantly on use","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6323","mastery_name":"Assassin","mastery_ranks":"1","description_rank_1":"Deal 2% increased damage to champions when no allied champions are nearby","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6331","mastery_name":"Merciless","mastery_ranks":"5","description_rank_1":"Deal 0.6% increased damage to champions below 40% Health","description_rank_2":"Deal 1.2% increased damage to champions below 40% Health","description_rank_3":"Deal 1.8% increased damage to champions below 40% Health","description_rank_4":"Deal 2.4% increased damage to champions below 40% Health","description_rank_5":"Deal 3% increased damage to champions below 40% Health"},{"mastery_id":"6332","mastery_name":"Meditation","mastery_ranks":"5","description_rank_1":"Regenerate 0.25% of your missing Mana every 5 seconds","description_rank_2":"Regenerate 0.5% of your missing Mana every 5 seconds","description_rank_3":"Regenerate 0.75% of your missing Mana every 5 seconds","description_rank_4":"Regenerate 1.0% of your missing Mana every 5 seconds","description_rank_5":"Regenerate 1.25% of your missing Mana every 5 seconds"},{"mastery_id":"6341","mastery_name":"Greenfather's Gift","mastery_ranks":"1","description_rank_1":"Stepping into brush causes your next damaging attack or ability to deal 3% of your target's current health as bonus magic damage (9s Cooldown)","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6342","mastery_name":"Bandit","mastery_ranks":"1","description_rank_1":"Gain 1 gold for each nearby minion killed by an ally. Gain 3 gold (10 if melee) when hitting an enemy champion with a basic attack (5 second cooldown)","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6343","mastery_name":"Dangerous Game","mastery_ranks":"1","description_rank_1":"Champion kills and assists restore 5% of your missing Health and Mana","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6351","mastery_name":"Precision","mastery_ranks":"5","description_rank_1":"Gain 1.2 Lethality and 0.3 + 0.05 per level Magic Penetration","description_rank_2":"Gain 2.4 Lethality and 0.6 + 0.10 per level Magic Penetration","description_rank_3":"Gain 3.6 Lethality and 0.9 + 0.15 per level Magic Penetration","description_rank_4":"Gain 4.8 Lethality and 1.2 + 0.20 per level Magic Penetration","description_rank_5":"Gain 6 Lethality and 1.5 + 0.25 per level Magic Penetration"},{"mastery_id":"6352","mastery_name":"Intelligence","mastery_ranks":"5","description_rank_1":"Your Cooldown Reduction cap is increased to 41% and you gain 1% Cooldown Reduction","description_rank_2":"Your Cooldown Reduction cap is increased to 42% and you gain 2% Cooldown Reduction","description_rank_3":"Your Cooldown Reduction cap is increased to 43% and you gain 3% Cooldown Reduction","description_rank_4":"Your Cooldown Reduction cap is increased to 44% and you gain 4% Cooldown Reduction","description_rank_5":"Your Cooldown Reduction cap is increased to 45% and you gain 5% Cooldown Reduction"},{"mastery_id":"6361","mastery_name":"Stormraider's Surge","mastery_ranks":"1","description_rank_1":"Dealing 30% of a champion's max Health within 2.5 seconds grants you 40% Movement Speed and 75% Slow Resistance for 3 seconds (10 second cooldown).","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6362","mastery_name":"Thunderlord's Decree","mastery_ranks":"1","description_rank_1":"Your 3rd attack or damaging spell against the same enemy champion calls down a lightning strike, dealing magic damage in the area. Damage: 10 per level, plus 30% of your Bonus Attack Damage, and 10% of your Ability Power (25-15 second cooldown, based on level).","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""},{"mastery_id":"6363","mastery_name":"Windspeaker's Blessing","mastery_ranks":"1","description_rank_1":"Your heals and shields are 10% stronger. Additionally, your shields and heals on other allies increase their armor by 5-22 (based on level) and their magic resistance by half that amount for 3 seconds.","description_rank_2":"","description_rank_3":"","description_rank_4":"","description_rank_5":""}]}}