[PYTHON] Find out how to buy high-ranked Timo items with a good win rate-Part 1 API to use

League of Legends games have many characters and items, which makes it difficult for beginners to get involved. You can find out which characters have a good winning percentage and how to buy items on the site called opgg.

Reference: Top How to buy items with a good winning percentage of Timo, the best 3 https://jp.op.gg/champion/teemo/statistics/top image.png

This time, we will investigate how to buy items with a good winning percentage when high-ranked players use top Timo.

Introducing the API to be used for the first time.

--Get version list https://ddragon.leagueoflegends.com/api/versions.json -> The first element represents the latest version

--Get language list (mackerel?) https://ddragon.leagueoflegends.com/cdn/languages.json -> Confirm that ja_JP exists

--Get Queue ID http://static.developer.riotgames.com/docs/lol/queues.json -> Make sure queueID: 420 points to solo rank

--Obtaining a season ID http://static.developer.riotgames.com/docs/lol/seasons.json -> At the time of posting, id: 13 is the latest

--Item acquisition http://ddragon.leagueoflegends.com/cdn/11.1.1/data/ja_JP/item.json

--Champion acquisition http://ddragon.leagueoflegends.com/cdn/11.1.1/data/ja_JP/champion.json

--Get high-ranked player information Challenger, Grand Master, Master https://jp1.api.riotgames.com/lol/league/v4/challengerleagues/by-queue/RANKED_SOLO_5x5?api_key=[API_KEY] https://jp1.api.riotgames.com/lol/league/v4/grandmasterleagues/by-queue/RANKED_SOLO_5x5?api_key=[API_KEY] https://jp1.api.riotgames.com/lol/league/v4/masterleagues/by-queue/RANKED_SOLO_5x5?api_key=[API_KEY] -> Get Encrypted_summoner_id

--Account ID acquisition https://jp1.api.riotgames.com/lol/summoner/v4/summoners/[ENCRYPTED_SUMMONER_ID]?api_key=[APIKEY]

--Get match list https://jp1.api.riotgames.com/lol/summoner/v4/matchlists/by-account/[ACCOUNTID]?queue=420&season=13&api_key=[APIKEY]

--Getting an overview of each match https://jp1.api.riotgames.com/lol/match/v4/matches/[GAMEID]?api_key=[APIKEY]

--Get timeline for each match https://jp1.api.riotgames.com/lol/match/v4/timelines/by-match/[GAMEID]?api_key=[APIKEY]

reference Page about constants handled by League of Legends API

Application for use of League of Legends development API + documentation https://developer.riotgames.com/

Recommended Posts

Find out how to buy high-ranked Timo items with a good win rate-Part 1 API to use
Find out how to divide a file with a certain number of lines evenly
How to send a request to the DMM (FANZA) API with python
How to create a serverless machine learning API with AWS Lambda
Python: How to use async with
How to use virtualenv with PowerShell
How to use OpenPose's Python API
How to use FTP with Python
How to use bing search api
[Python] How to use Typetalk API
[Python] Explains how to use the range function with a concrete example
How to use PyCharm with Glue development endpoints running inside a VPC
How to add a package with PyCharm
How to use ManyToManyField with Django's Admin
How to use OpenVPN with Ubuntu 18.04.3 LTS
How to use Cmder with PyCharm (Windows)
How to use Ass / Alembic with HtoA
How to use Japanese with NLTK plot
How to use jupyter notebook with ABCI
How to use CUT command (with sample)
How to use GCP's Cloud Vision API
How to use SQLAlchemy / Connect with aiomysql
How to use JDBC driver with Redash
How to use Service Account OAuth and API with Google API Client for python
How to read a CSV file with Python 2/3
How to use GCP trace with open Telemetry
A simple example of how to use ArgumentParser
How to send a message to LINE with curl
How to draw a 2-axis graph with pyplot
How to develop a cart app with Django
How to make a dictionary with a hierarchical structure.
How to use the Google Cloud Translation API
How to use the NHK program guide API
How to use tkinter with python in pyenv
How to create a multi-platform app with kivy
How to create a Rest Api in Django
I tried to find out how to streamline the work flow with Excel x Python ②
I tried to find out how to streamline the work flow with Excel x Python ④
I tried to find out how to streamline the work flow with Excel x Python ⑤
A story about how Windows 10 users created an environment to use OpenCV3 with Python 3.5
How to use fixture in Django to populate sample data associated with a user model
I tried to find out how to streamline the work flow with Excel x Python ①
I tried to find out how to streamline the work flow with Excel x Python ③
How to use python multiprocessing (continued 3) apply_async in class with Pool as a member