Skip to content

Get hoyoverse API token (Hoyolab Miyoushe)

YAP ZHI VERN edited this page Oct 4, 2023 · 7 revisions

Go to main page of the Hoyolab or for Mainland China Miyoushe

Make sure you logged in into your account

Right click > Inspect

image

Select Application tab

image

Select the URL of the website in the Cookies section

image image

Search for ltuid and ltoken, copy the value down

Note: If ltuid & ltoken is not exist, use ltuid_v2 & ltoken_v2 instead, just copy all value in the cookie without any change

Note for developer: Use HoyoToken#of instead of manually create the HoyoToken object. If do, please make sure you are using the right object HoyoToken / HoyoTokenV2

image image

TADA~ You got the id and token

Make sure you keep your token properly

Clone this wiki locally