spaeda.8419:

Hello,

API endpoint return values do not correspond to any item stats.

Example for minstrell stats (toughness, healing, vitality, concentration):
API: 0.3, 0.3, 0.165, 0.165
Backpiece: 52, 52, 27, 27
Ring: 106, 106, 56, 56

Anyone know the formula to convert API values to an item value?

darthmaim.6017:

I think there is no formula, the itemstats endpoint just returns ratios, the real values come from look up tables (depending on level, rarity and 2-3 more according to this conversation).

spaeda.8419:

thx for your reply.
Si if I understand, the only way to use this stat is a LUT?
Can I find it or I must create my own LUT?

Lawton Campbell.8517:

IIRC, the LUT transforms from the item’s {rarity, level, slot} into a static value (so all level 80 exotic hammers have the same value — 683 — which is further adjusted by the uplevel system etc). That value gets multiplied against the specific stat multipliers for the item to get the final stat bonuses.

Given this, it should be pretty straightforward to build your own LUT for a subset of items — say, level 80 rare/exotic/ascended. I might expose the raw LUTs at some point if there’s a compelling use-case (as it would need a lot of fiddling to pull them out).

spaeda.8419:

Thx for your reply.
Now I understand the calculation method but I can’t use it because of uplevel system

I will create a data table for stats. But I preferred to get them through the API to avoid mistakes and other update problem.

I need it to enhance my tooltip scripts.
I want offer the possibility to specify the selected stats of an item. It will be very usefull for our raid builds and guids.