HoYoLAB Client
HoyolabClient
Hoyolab component.
Methods:
-
accompany_character–Accompany a character, role_id and topic_id can be found by calling get_accompany_characters.
-
buy_mimo_shop_item–Buy an item from the Traveling Mimo shop and return a gift code to redeem it.
-
check_in_community–Check in to the hoyolab community and claim your daily 5 community exp.
-
claim_mimo_task_reward–Claim a Traveling Mimo mission (task) reward.
-
delete_reply–Delete a reply.
-
draw_mimo_lottery–Draw a Traveling Mimo lottery.
-
fetch_mi18n–Fetch a mi18n file.
-
finish_mimo_task–Finish a Traveling Mimo mission (task) reward.
-
get_accompany_characters–Get a list of accompany characters, this endpoint doesn't require cookies.
-
get_genshin_announcements–Get a list of Genshin Impact announcements.
-
get_hoyolab_user–Get a hoyolab user.
-
get_mimo_games–Get a list of Traveling Mimo games.
-
get_mimo_lottery_info–Get Traveling Mimo lottery info.
-
get_mimo_point_count–Get the current Traveling Mimo point count.
-
get_mimo_shop_items–Get a list of Traveling Mimo shop items.
-
get_mimo_tasks–Get a list of Traveling Mimo missions (tasks).
-
get_recommended_users–Get a list of recommended active users.
-
get_starrail_announcements–Get a list of Star Rail announcements.
-
get_web_events–Get a list of web events.
-
get_zzz_announcements–Get a list of Zenless Zone Zero announcements.
-
join_topic–Join a topic.
-
leave_topic–Leave a topic.
-
redeem_code–Redeems a gift code for the current user.
-
reply_to_post–Reply to a community post.
-
search_users–Search hoyolab users.
accompany_character
async
accompany_character(*, role_id: int, topic_id: int) -> AccompanyResult
Accompany a character, role_id and topic_id can be found by calling get_accompany_characters.
buy_mimo_shop_item
async
buy_mimo_shop_item(item_id: int, *, game_id: Optional[int] = None, version_id: Optional[int] = None, game: Optional[Union[Literal['hoyolab'], Game]] = None, lang: Optional[str] = None) -> str
Buy an item from the Traveling Mimo shop and return a gift code to redeem it.
check_in_community
async
Check in to the hoyolab community and claim your daily 5 community exp.
claim_mimo_task_reward
async
claim_mimo_task_reward(task_id: int, *, game_id: Optional[int] = None, version_id: Optional[int] = None, game: Optional[Union[Literal['hoyolab'], Game]] = None, lang: Optional[str] = None) -> None
Claim a Traveling Mimo mission (task) reward.
draw_mimo_lottery
async
draw_mimo_lottery(*, game_id: Optional[int] = None, version_id: Optional[int] = None, game: Optional[Union[Literal['hoyolab'], Game]] = None, lang: Optional[str] = None) -> MimoLotteryResult
Draw a Traveling Mimo lottery.
fetch_mi18n
async
fetch_mi18n(url: Union[str, URL], filename: str, *, lang: Optional[str] = None) -> Mapping[str, str]
Fetch a mi18n file.
finish_mimo_task
async
finish_mimo_task(task_id: int, *, game_id: Optional[int] = None, version_id: Optional[int] = None, game: Optional[Union[Literal['hoyolab'], Game]] = None, lang: Optional[str] = None) -> None
Finish a Traveling Mimo mission (task) reward.
get_accompany_characters
async
get_accompany_characters(*, lang: Optional[str] = None) -> Sequence[AccompanyCharacterGame]
Get a list of accompany characters, this endpoint doesn't require cookies.
get_genshin_announcements
async
get_genshin_announcements(*, uid: Optional[int] = None, lang: Optional[str] = None) -> Sequence[Announcement]
Get a list of Genshin Impact announcements.
get_hoyolab_user
async
get_hoyolab_user(hoyolab_id: Optional[int] = None, *, lang: Optional[str] = None) -> FullHoyolabUser
Get a hoyolab user.
get_mimo_games
async
Get a list of Traveling Mimo games.
get_mimo_lottery_info
async
get_mimo_lottery_info(*, game_id: Optional[int] = None, version_id: Optional[int] = None, game: Optional[Union[Literal['hoyolab'], Game]] = None, lang: Optional[str] = None) -> MimoLotteryInfo
Get Traveling Mimo lottery info.
get_mimo_point_count
async
Get the current Traveling Mimo point count.
get_mimo_shop_items
async
get_mimo_shop_items(*, game_id: Optional[int] = None, version_id: Optional[int] = None, game: Optional[Union[Literal['hoyolab'], Game]] = None, lang: Optional[str] = None) -> Sequence[MimoShopItem]
Get a list of Traveling Mimo shop items.
get_mimo_tasks
async
get_mimo_tasks(*, game_id: Optional[int] = None, version_id: Optional[int] = None, game: Optional[Union[Literal['hoyolab'], Game]] = None, lang: Optional[str] = None) -> Sequence[MimoTask]
Get a list of Traveling Mimo missions (tasks).
get_recommended_users
async
get_recommended_users(*, limit: int = 200) -> Sequence[PartialHoyolabUser]
Get a list of recommended active users.
get_starrail_announcements
async
get_starrail_announcements(*, uid: Optional[int] = None, lang: Optional[str] = None) -> Sequence[Announcement]
Get a list of Star Rail announcements.
get_web_events
async
get_web_events(game: Optional[Game] = None, *, size: int = 15, offset: Optional[int] = None, lang: Optional[str] = None) -> list[WebEvent]
Get a list of web events.
get_zzz_announcements
async
get_zzz_announcements(*, uid: Optional[int] = None, lang: Optional[str] = None) -> Sequence[Announcement]
Get a list of Zenless Zone Zero announcements.
redeem_code
async
redeem_code(code: str, uid: Optional[int] = None, *, game: Optional[Game] = None, lang: Optional[str] = None, region: Optional[str] = None) -> None
Redeems a gift code for the current user.
search_users
async
search_users(keyword: str, *, lang: Optional[str] = None) -> Sequence[PartialHoyolabUser]
Search hoyolab users.