API Reference
ZZZClient
Bases: BaseClient
Client to interact with the Hakushin Zenless Zone Zero API.
fetch_bangboo_detail(bangboo_id, *, use_cache=True)
async
Fetch the details of a Zenless Zone Zero bangboo.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
bangboo_id
|
int
|
The bangboo ID. |
required |
use_cache
|
bool
|
Whether to use the response cache. |
True
|
Returns:
Type | Description |
---|---|
BangbooDetail
|
The bangboo details object. |
fetch_bangboos(*, use_cache=True)
async
Fetch all Zenless Zone Zero bangboos.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
use_cache
|
bool
|
Whether to use the response cache. |
True
|
Returns:
Type | Description |
---|---|
list[Bangboo]
|
A list of bangboo objects. |
fetch_character_detail(character_id, *, use_cache=True)
async
Fetch the details of a Zenless Zone Zero character.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
character_id
|
int
|
The character ID. |
required |
use_cache
|
bool
|
Whether to use the response cache. |
True
|
Returns:
Type | Description |
---|---|
CharacterDetail
|
The character details object. |
fetch_characters(*, use_cache=True)
async
Fetch all Zenless Zone Zero characters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
use_cache
|
bool
|
Whether to use the response cache. |
True
|
Returns:
Type | Description |
---|---|
list[Character]
|
A list of character objects. |
fetch_drive_disc_detail(drive_disc_id, *, use_cache=True)
async
Fetch the details of a Zenless Zone Zero drive disc.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
drive_disc_id
|
int
|
The drive disc ID. |
required |
use_cache
|
bool
|
Whether to use the response cache. |
True
|
Returns:
Type | Description |
---|---|
DriveDiscDetail
|
The drive disc details object. |
fetch_drive_discs(*, use_cache=True)
async
Fetch all Zenless Zone Zero drive discs.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
use_cache
|
bool
|
Whether to use the response cache. |
True
|
Returns:
Type | Description |
---|---|
list[DriveDisc]
|
A list of drive disc objects. |
fetch_items(*, use_cache=True)
async
Fetch all Zenless Zone Zero items.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
use_cache
|
bool
|
Whether to use the response cache. |
True
|
Returns:
Type | Description |
---|---|
Sequence[Item]
|
A list of item objects. |
fetch_new(*, use_cache=True)
async
Fetch the ID of beta items in Zenless Zone Zero.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
use_cache
|
bool
|
Whether to use the response cache. |
True
|
Returns:
Type | Description |
---|---|
New
|
A model representing the new items. |
fetch_weapon_detail(weapon_id, *, use_cache=True)
async
Fetch the details of a Zenless Zone Zero weapon.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
weapon_id
|
int
|
The weapon ID. |
required |
use_cache
|
bool
|
Whether to use the response cache. |
True
|
Returns:
Type | Description |
---|---|
WeaponDetail
|
The weapon details object. |
fetch_weapons(*, use_cache=True)
async
Fetch all Zenless Zone Zero weapons (w-engines).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
use_cache
|
bool
|
Whether to use the response cache. |
True
|
Returns:
Type | Description |
---|---|
list[Weapon]
|
A list of weapon objects. |