API Reference
gi
Classes:
-
GIClient–Client to interact with the Hakushin Genshin Impact API.
GIClient
Client to interact with the Hakushin Genshin Impact API.
Methods:
-
fetch_artifact_set_detail–Fetch the details of a Genshin Impact artifact set.
-
fetch_artifact_sets–Fetch all Genshin Impact artifact sets.
-
fetch_character_detail–Fetch the details of a Genshin Impact character.
-
fetch_characters–Fetch all Genshin Impact characters.
-
fetch_mw_costume_sets–Fetch all Miliastra Wonderland costume sets.
-
fetch_mw_costumes–Fetch all Miliastra Wonderland costumes and costume sets.
-
fetch_mw_items–Fetch all Miliastra Wonderland items.
-
fetch_stygian_detail–Fetch the details of a Stygian Onslaught entry.
-
fetch_stygians–Fetch all Genshin Impact Stygian Onslaught entries.
-
fetch_weapon_detail–Fetch the details of a Genshin Impact weapon.
-
fetch_weapons–Fetch all Genshin Impact weapons.
fetch_artifact_set_detail
async
fetch_artifact_set_detail(
set_id: int, *, use_cache: bool = True
) -> ArtifactSetDetail
Fetch the details of a Genshin Impact artifact set.
Parameters:
-
(set_idint) –The artifact set ID.
-
(use_cachebool, default:True) –Whether to use the response cache.
Returns:
-
ArtifactSetDetail–The artifact set details object.
fetch_artifact_sets
async
fetch_character_detail
async
fetch_character_detail(
character_id: str, *, use_cache: bool = True
) -> CharacterDetail
Fetch the details of a Genshin Impact character.
Parameters:
-
(character_idstr) –The character ID.
-
(use_cachebool, default:True) –Whether to use the response cache.
Returns:
-
CharacterDetail–The character details object.
fetch_characters
async
fetch_mw_costume_sets
async
fetch_mw_costume_sets(
*, use_cache: bool = True
) -> list[MWCostumeSet]
Fetch all Miliastra Wonderland costume sets.
Parameters:
-
(use_cachebool, default:True) –Whether to use the response cache.
Returns:
-
list[MWCostumeSet]–A list of Miliastra Wonderland costume sets.
fetch_mw_costumes
async
fetch_mw_items
async
fetch_stygian_detail
async
fetch_stygian_detail(
stygian_id: int, *, use_cache: bool = True
) -> StygianDetail
Fetch the details of a Stygian Onslaught entry.
Parameters:
-
(stygian_idint) –The Stygian ID.
-
(use_cachebool, default:True) –Whether to use the response cache.
Returns:
-
StygianDetail–The Stygian details object.
fetch_stygians
async
fetch_weapon_detail
async
fetch_weapon_detail(
weapon_id: int, *, use_cache: bool = True
) -> WeaponDetail
Fetch the details of a Genshin Impact weapon.
Parameters:
-
(weapon_idint) –The weapon ID.
-
(use_cachebool, default:True) –Whether to use the response cache.
Returns:
-
WeaponDetail–The weapon details object.