Data Dragon

Data Dragon, or ddragon for short, is a set of static data files that provides images and info about champions, runes, and items. This includes info to translate champion IDs to names.

You can download the entire set of data and images by downloading this tarball (make sure to change the * version * to the latest patch): https://ddragon.leagueoflegends.com/cdn/dragontail-9.3.1.tgz. The file is about 0.5 GB.

You can also access individual files by going to specific URLs, for example: http://ddragon.leagueoflegends.com/cdn/9.3.1/data/en_US/champion.json.


Caching

Because the data in ddragon only changes when new patches come out, you can cache the data by saving it to your computer. Your app can then load the data from disk rather than requesting it over the www. This will speed up your app and reduce the load on Riot’s servers, which ensures the servers don’t go down due to abnormally high usage.

In general, it’s a good idea to cache data that you will use often and that doesn’t change often.


Common Issues

  • If You can’t find something in ddragon, Look in cdragon or ask on Discord.
  • The image filenames for champions, items, etc. can be found by looking at the image.full fields in the json data.
  • Monkeyking. Yes, Wukong’s internal name is monkeyking. You can identify the correct internal name for every champion by looking at the key attribute in the champion.json file.
  • The data in ddragon is inaccurate, especially champion spell data and item stats. This is an unfortunate situation that is surprisingly difficult to solve. If you want to know why, you can ask on Discord. There is no perfect or even close to perfect source for champion spell data, despite significant effort. The League Wikia is your best resource.
  • If a new patch came out but ddragon hasn’t updated, wait a little while. Sometimes it takes two days after a patch for the new version of ddragon to be released. Other times ddragon is two days ahead of the patch.
  • Data from Data Dragon is encoded using UTF-8. To ensure you receive a properly encoded response include the Accept-Charset header specifying UTF-8 as the desired response encoding.
  • Other issues: You may be able to find some information by searching the github issues, otherwise ask on Discord.

Most Recent Version

You can get the latest version of ddragon from the version.json file.

Because patches get released on different regions at different times, one region may be on the new version of ddragon while another region may be be on an old version. You can check which patch a region is on by looking at the realms files for each region. The one for North America can be found at https://ddragon.leagueoflegends.com/realms/na.json. The exact time the patch gets released on a region may not correspond to exactly when the corresponding realm file is updated to the new patch.


Patch Data

ddragon does not provide data for when patches were released. Instead, you can find this data on cdragon’s github. See the readme on github for information about how to use the file.


Languages

The languages supported by ddragon can be found here.

CODELANGUAGE
cs_CZCzech (Czech Republic)
el_GRGreek (Greece)
pl_PLPolish (Poland)
ro_RORomanian (Romania)
hu_HUHungarian (Hungary)
en_GBEnglish (United Kingdom)
de_DEGerman (Germany)
es_ESSpanish (Spain)
it_ITItalian (Italy)
fr_FRFrench (France)
ja_JPJapanese (Japan)
ko_KRKorean (Korea)
es_MXSpanish (Mexico)
es_ARSpanish (Argentina)
pt_BRPortuguese (Brazil)
en_USEnglish (United States)
en_AUEnglish (Australia)
ru_RURussian (Russia)
tr_TRTurkish (Turkey)
ms_MYMalay (Malaysia)
en_PHEnglish (Republic of the Philippines)
en_SGEnglish (Singapore)
th_THThai (Thailand)
vn_VNVietnamese (Viet Nam)
id_IDIndonesian (Indonesia)
zh_MYChinese (Malaysia)
zh_CNChinese (China)
zh_TWChinese (Taiwan)


Credits: WxWatch