Clash Royale API - Data Issues

You’ll have to be more specific — eg which account. However, making assumptions about what you’re referring to, likely you’re not familiar with the original card levels of the game — where Epic Level 6 now was actually Epic Level 1. The API still uses the old level values. So this is what you need to do, in Python:

    def level_to_common_level(rarity, level):
        rarity_adj = dict(
            Common=0,
            Rare=2,
            Epic=5,
            Legendary=8,
            Champion=10,
        )
        return level + rarity_adj.get(rarity, 0)

So:

  • Do nothing if it’s a Common card
  • Add 5 if it’s an Epic card
  • Add 10 if it’s a Champion card