•   over 2 years ago

3rd API output team_ranking

I am slightly confused about this, By reading the Public API doc, I assume that we have to show the rankings within a tournament, (the tournaments selected from the input) and put the teams with ranking in the tournament. I need clarification.

  • 4 comments

  • Manager   •   over 2 years ago

    Hi John, There is a bit of a discussion on team rank vs tournament rank on the Discord FAQ channel https://discord.com/channels/861966823054639134/1147170489077338142. Feel free to follow up there with your specific questions.

    Here is some information from that thread which might help:

    "For tournament rankings the input for that method would be a Riot tournament ID (found in the tournaments.json file in the S3) and output the rankings for the teams participating in that specific tournament, whereas the team rankings would take a list of Riot team IDs and provide a ranking for that list.

    For the tournament rankings method I would just iterate through the fixtures in a tournament and collect the unique team IDs, and then call the team ranking method on that list."

    "Tournament rankings should also take into account the time period, so for example, if I query for Worlds 2021 and your ranking uses a weighted win/loss from the past six months, you should use data from the six months prior to Worlds 2021. I've updated the API guidelines to reflect this! (https://docs.google.com/document/d/1Klodp4YqE6bIOES026ecmNb_jS5IOntRqLv5EmDAXyc) whereas team rankings and global rankings query for the current state of affairs"

  •   •   over 2 years ago

    My question is do I show a list of teams with tournaments information in it or list of tournaments with teams information in it? For GET/team_rankings because if I were to follow the Public API I have to show list of tournaments with participating teams in it. Thanks in advance.

  •   •   over 2 years ago

    For GET /team_rankings/, our main ask is to provide a rankings output for an input of Riot team IDs. The list of Riot team IDs may or may not come from the same tournament. Hope that helps - and please let us know if you need extra clarification!

  •   •   over 2 years ago

    I understand the inputs, it's list of team ID's and tournament ID's alongside it. What I asked is how do I show the outputs? Do I show n number of tournament with the teams that I have selected from inputs and rankings in those particular tournaments or a list of teams with the result of the touraments selected? It can go 2 separate ways: list of tournaments [{tournament_id, teams: [{...}]},...], list of teams: [{team_id, tournaments: [{...}]}...].

Comments are closed.