RoyaleAPI / cr-api

Clash Royale Analytics, Profiles and Insights. We no longer publish a public API. Please use the official API from Supercell.
https://RoyaleAPI.com
167 stars 20 forks source link

[Request] Matchup endpoint for popular decks #421

Closed Anton3 closed 5 years ago

Anton3 commented 6 years ago

Idea

For some decks ("popular" decks), provide a list of popular matchups with their results (# of wins, # of draws, # of losses).

Rationale

The data is already collected for RoyaleAPI. It can be used for creating nice diagrams of current meta and for recommending decks to use in specific conditions.

Request Details:

GET
https://api.royaleapi.com/deck/cannon-cart,furnace,graveyard,ice-golem,inferno-dragon,poison,rascals,the-log?battle_type=All

battle_type should be one of: All, LadderTop200, Ladder4K, GC.

Response Details:

Code: 200
{
  "cards": [
    {
      "key": "cannon-cart",
      // ... other fields describing the card
    },
    // ... other cards
  ],
  "decklink": // ...
  "popularity": // ...
  "matchups": [
    {
      "cards": [
        // ...
      ],
      "win": // ...
      "draw": // ...
      "loss": // ...
    },
    // other matchups
  ] 
}
amirhossein99 commented 6 years ago

good idea :)))

selfish commented 5 years ago

That you should do on your on big-data cluster. :X Would love to, but I don't have the funds to start offering big data analysis to the public. https://royaleapi.com/donate