RiotTuxedo

RiotTuxedo



27 Sep

Comment

Originally posted by ploki122

I always wondered what big companies' APIs tend to look like. Is it like simply that you take the initial big dump of data, then ETL it into a separate database and format to process for stuff like match history, then ETL it further onto a different server for API purposes?

Do you instead just have 2 different APIs, one publicly available, and the other private, and both use the same kind of access points, and the same dataset, but with less security enforced onto your own client?

Oh there's a lot to this question, I'll try and his the high level parts. All good questions though.

I don't necessarily think there's one right way to do things, as in most of software engineering there are tradeoffs to everything so it really just depends on your circumstances/constraints to determine which path you take to creating an API. You might ETL all this data into a separate data store for the API if isolation is a concern. You might make two separate APIs if you need to. It all kind of depends on your requirements.

Theory first. I personally like it when the client or primary product uses the same APIs as as made available to the public and the only difference is the permission set (in something like OAuth this means scopes). In general, creating a product that is API first ensures that the API is never an after thought and the product is designed in way for the data to be sharable while still meeting the product needs. If you do take a different approac...

Read more

26 Sep

Comment

Originally posted by KopaXIX

Ah, you made a mistake by revealing yourself my man, let's hope it doesn't bug out so we don't have to roast you... Good work, so happy this is coming out.

There are a couple teams involved in making TFT match history a thing. My team focuses on making this data available through the API so that community sites can make tools that are useful to players while still remaining conscience of the gameplay (hence some of the policy in the announcement).

We're aiming to have this data in the API soon, so we're sharing the schema but the priority will be making sure it's stable in the client before it gets added to the API. I'm happy we're finally getting match history as well, the TFT team is moving at an incredible pace from what I've seen. They got a lot of plates spinning and I'm just happy to help where I can to get the value to you all, the players.

Comment

Ooh something I'm working on is on reddit. My day has come. Lmk if you have any questions related to the Riot Games API.


22 Jul

Comment

Originally posted by jimmy_o

Well yes, exactly, that's the question I'm asking... does the Riot API consider 1st place only a victory, or first and second like in game.

In the Riot Games API, retrieving a player's league returns a number of wins and losses. In league-v4, wins are games where you finished first. Losses are if you finished in any other place. This should be documented on the reference page.
https://developer.riotgames.com/api-methods/#league-v4

NOTE: Specifically calling out league-v4 because this might not be the case for all APIs, but it is in the case of league-v4.