Questions tagged [riot-games-api]

A JSON API for retrieving game data for the popular computer game League of Legends.

A API for retrieving game data for the popular computer game League of Legends.

For more information, see the official homepage.

112 questions
1
vote
1 answer

How to know if images from a game window are matching with my images bank? ( Python )

In the game there are some "characters icons". They are always at the same position on the window, but I need my program to check all of them and return me information about them. So it needs to check every positions, and tell me for all of them…
1
vote
0 answers

Retry module interfering with 429 Retry-After logic

import json from pprint import pprint from requests.adapters import HTTPAdapter, Retry from csv import writer import pandas as pd from time import sleep def make_request(): fixed_api_key= '(insert api-key here)' owner='problematic' …
1
vote
1 answer

Riot API: I don't know why it returns unauthorized (401)

I don't know why this would be unauthorized. I checked that the api_key and puuid are correct. When I made a request to another Riot API in a similar way, I got the desired result (status code: 200). I'm guessing there is a typo in the URL that sent…
1
vote
1 answer

How can I get LOL match detail using RIOT API from Java's RestTemplate?

I am trying to access RIOT API in Java using Spring's RestTemplate class. For some reason, I get a response code 500 and I can't determine why. The code trying to call the api: RestTemplate restTemplate = new RestTemplate(); String matchString =…
vofak
  • 11
  • 2
1
vote
1 answer

Learning how to extract info giving from API to get more info Python, Riots API

So I am learning python and learning how to use the riots api and everything is a first for me. What I am doing now is that I want to learn the information from a match using Riots API. With this code: my_matches =…
Tone
  • 21
  • 2
1
vote
2 answers

How do I know when RiotWatcher encounters a 429 error?

I use RiotWatcher to access the riot API with python. Since I do a lot of queries with a development key, I try to watch out for 429 errors indicating an overrun of the allowed query rate. In doing some testing, it seems that RiotWatcher includes an…
Poco
  • 9
  • 3
1
vote
1 answer

Data Dragon items, keyError

so ive run into a problem where i cant get acces to they key in riot json file. http://ddragon.leagueoflegends.com/cdn/11.16.1/data/en_US/item.json this is official riot link which u can find on their riot api site under Items. if you write…
1
vote
1 answer

How to request rune png from riot API

Having issues with requesting a rune specific image, What I'm trying to find is some form of way to request a rune icon. I've gotten as far as to find the path to the icon from this json file. but attempts at trying to use that path, have failed.…
Supesu
  • 636
  • 5
  • 16
1
vote
1 answer

How to pass state/data from one component to another in React.js (riot api specifically)

I am trying to pull information from one component's API call to then use that data in another API call in a separate component. However, I am unsure how to export and use the data from the first API call in the second component. App.js import…
1
vote
0 answers

Give src to image using vue js?

So I have created an image in html and tried to give it the property v-bind:src. This is the line of code: summonerRequests.profileIcon is a variable I saved…
Proudyy
  • 57
  • 5
1
vote
1 answer

How can I correctly fetch the Riot API with JS?

i've been trying to fetch some data from the riot's api, and I have a problem: This is the important part of the code: const getUsuario = async (name) => { const resp = await fetch(`${APIRUL}${name}${apikey}`, { method: 'GET', mode:…
Knarf
  • 35
  • 1
  • 1
  • 9
1
vote
1 answer

Trying to grab league statistics in order to compute win rates for inhouse games

I have been trying to use the riot games api to compute all the previous custom games and then find the win loss streaks for individual players, I have built the following code to grab matches for a particular user. See…
GrandFleet
  • 809
  • 2
  • 10
  • 25
1
vote
1 answer

Deserialize certain nested properties into class

I have a large json file and only want to use certain nested properties, here is the file { "type": "champion", "format": "standAloneComplex", "version": "6.24.1", "data": { "Aatrox": { "version": "6.24.1", "id": "Aatrox", …
jaabh
  • 815
  • 6
  • 22
1
vote
1 answer

Trouble sending an ajax request to Riot API

Sample Page