Skip to content

Enka and Final Stats

SORA edited this page Nov 27, 2026 · 1 revision

SKPORT only tells you what an operator has equipped. akef.Enka reads public profiles from Enka.Network and works out the final stats you'd see on the in-game stat screen. No token needed, just a UID.

async with akef.Enka() as enka:
    profile = await enka.profile(4727743200)
    arcane = profile.build("Arcane")
    print(arcane.stats.atk, arcane.stats.ult_gain)

Only 4 operators?

Enka only sees the operators in the in-game showcase. For anyone on your account use a SKPORT card, you get the same Build with the same numbers:

async with akef.Client(token) as client, akef.Enka() as enka:
    card = await client.card()
    for op in card.chars:
        build = await enka.build(card, op)
        print(build.name, build.stats.hp, build.stats.atk)

What's on a build

build.stats.atk                 # 4802
build.stats.ult_gain            # 1.892, percentages are fractions
build.weapon.skills[0].value    # "+156"
build.weapon.essence.terms      # [EssenceTerm(name="Intellect", points=6), ...]
build.gear[1].lines             # [GearLine(name="Will", text="+84", level=3), ...]
build.gear_set                  # ("Eternal Xiranite", 4)

Are the numbers right?

They're checked against the in-game stat screen, rounding included. The full story is on the docs site.

After a patch

The game tables come from Enka and sit on disk. When something new shows up they refresh by themselves. If Enka hasn't added it yet you get akef.MissingGameData, it fixes itself once Enka updates. await enka.update() forces a refresh.

Other languages

akef.Enka(lang="ja"), any of en, ja, ko, zh-tw, zh-cn, es, de, fr, id, pt, ru, th, it, vi.

Clone this wiki locally