Can I get verification from someone that the public feed results in inaccurate card data specific to card levels?
I don’t know what you’re asking. We don’t publish feeds.
Wasn’t expecting a reply! So here’s my issue, I created a Clash Royale API account. Created my keys. Found multiple platforms to perform the request. I even get the data back. The problem is that the data that returns in the JSON has incorrect levels for my cards. All the other data is correct, but maybe only 5% of the cards actually have the right card level. I’m wondering if this is something on my end. It’ll says for example I’m a level 8 Cannon Cart, when I’m really level 14.
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