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
2 answers

Fetch Real-time data using Riot Api? Is it possible?

I am thinking about making an application that is run on a remote device (for example a phone), to gather and display data like: Summoner Name, Health, Kill/Death statistics, how long am I playing this current game etc. Is it possible to use Riot…
Gzyniu
  • 71
  • 1
  • 1
  • 7
1
vote
0 answers

How To Deserialize json array with no key? C#

I am working on an api wrapper for the riot games api. I am running into an issue with the following endpoint: champion-mastery/v4/champion-masteries/by-summoner/{encryptedSummonerId} I am using newtonsoft json and RestSharp to get the results.…
Joe G
  • 99
  • 1
  • 14
1
vote
0 answers

Removing array item from foreach loop

I've fetched data from Riot Games API servers that supposes to give me all my champions points I've played with. try { $poeni = $api->getChampionMasteries($sId); } catch { die("Failed." . $ex->getMessage()); Basically, now I have array…
dh4ze
  • 449
  • 1
  • 5
  • 10
1
vote
2 answers

How can I extract a Summoner Name from a JSON response?

I'm playing around with with external APIs from League of Legends. So far, I've been able to get a response from the API, which returns a JSON object. @test_summoner_name = ERB::Util.url_encode('Jimbo') @url =…
Xadren
  • 315
  • 4
  • 16
1
vote
1 answer

Riot API call Node.js

js server running some basic api calls from riot.developer. I'm planning on having the match history and stats for each summoner/game available. For this I assume I need the match id's. I've got a couple of the calls working but seem to have hit a…
user7630391
  • 33
  • 1
  • 6
1
vote
1 answer

Incomplete JSON response with Node.js https-module

Calling the Riot-Api Im receiving incomplete JSON on a https GET-request. After debugging, I realized that depending how much I wait (breakpoint) pre-executing the https on'data' callback Im actually receiving the complete JSON object. (Average…
Daniel R
  • 13
  • 4
1
vote
1 answer

Pulling first win information

I am looking to pull first win information (time first win is available) for a summoner in League of Legends; I can't seem to find a way to pull this specific info anywhere in RIOT games API and I went through the full API reference. Am I missing…
Meta747
  • 253
  • 1
  • 16
1
vote
2 answers

C# - How to make an Http Request in the background and show the result once it's done?

I am building an Android app with Xamarin that grabs data from Riot Games API and displays to the user. I want the HTTP request to be made in the background and update my UI, once it's done. I tried using ThreadPool.QueueUserWorkItem() but it…
1
vote
1 answer

How to save a string that is given from the form in the html?

I'm following this tutorial. This tutorial was made with older versions of Ruby/Rails and HAML that I didn't learn yet, so I'm trying to do the exact same app but working. Here is what the app should do, the user puts in the view : Their name on…
1
vote
1 answer

Python Flask timed queuing script

I just started using Flask, and I'm creating a web application that does two main things server side: Accessing another online API (which I can only send so many requests to per second) and sending page requests to a user connecting to the…
Bocaj
  • 37
  • 6
1
vote
1 answer

First Step with Riot API in C#

I am learning C# and want to use the Riot API. I just want to receive that: { "type":"champion", "version":"6.1.1", "data":{ "Thresh":{ "id":412, "key":"Thresh", "name":"Thresh", …
Sidereus
  • 200
  • 3
  • 13
1
vote
1 answer

Fetch summoner name from id

I am currently using the java-version of the Riot api, made by rithms, (https://github.com/rithms/riot-api-java) and I am trying to receive the name of a champion, as I am currently "just" able to get the id. RankedStats rankedStats =…
Cath
  • 460
  • 6
  • 21
1
vote
3 answers

Deserialize JSON from Riot API C#

I have some problem to deserialize JSON response from the RIOT API in C#. I want to get the list of "Champion" and the API return a stream like this : { "type":"champion", "version":"6.1.1", "data":{ "Thresh":{ …
user1716552
  • 71
  • 1
  • 6
1
vote
1 answer

Why does my JSON status return 0 in Chrome but in IE it works?

Information: I'm just having fun and learning with Riot API. I know I should not do everything on the front end. Issue: The URL I'm using to get the JSON is not returning the correct status. This URL should return 401 because the key is incorrect…
Johnner
  • 13
  • 3
1
vote
2 answers

JSON.Net Deserialization of non-generic Root Objects

I'm currently working on a project where I make a request to the Riot Games API, parse the JSON, and do some stuff with it. I have the request working, and I know I'm getting valid JSON. My issue is using JSON.Net to deserialize the JSON. The JSON…
Jatrammel
  • 13
  • 7