Skip to content

Getting Started

SORA edited this page Nov 27, 2026 · 1 revision
pip install akef

Python 3.10 or newer. It only needs aiohttp and pydantic.

Getting your token

  1. sign in on skport.com
  2. open https://web-api.skport.com/cookie_store/account_token in the same browser
  3. you get something like {"code":0,"data":{"content":"nlmdN..."}}

The content string is your token. It's a full login for that account, so treat it like a password: don't paste it in chats, don't commit it. Logging out of SKPORT ends it.

First request

import asyncio
import akef


async def main():
    async with akef.Client("your token") as client:
        card = await client.card()
        print(card.name, "Authority", card.base.level)
        print(f"sanity {card.stamina.current}/{card.stamina.max}")

        for op in card.chars:
            print(op.rarity, op.name, op.level, op.weapon.name)


asyncio.run(main())

You never call login() yourself. The first request logs in, and if SKPORT drops the login later the client logs in again and repeats the request.

What you can ask for

Call Gives
card() the whole account card: player, every operator, sanity, dailies, battle pass
character("Arcane") one operator in detail, or pass a list
monument() monument events, clears, teams and times
contract() Contingency Contract runs
pulls() pull history, see Pull History
attendance(), check_in() see Daily Check-in
inventory() owned operators, weapons, gear
news(), wiki("operators") announcements and the official wiki

Pass raw=True to any of them for SKPORT's untouched json.

Several accounts on one login

A SKPORT login can have more than one Endfield account. Every game method takes a uid, leave it out for the default one.

for role in await client.roles():
    print(role.uid, role.nickname, role.server_name)

card = await client.card(4727743200)

No token?

Public stuff works with just a UID through Enka, see Enka and Final Stats.

Clone this wiki locally