Complete API Reference
This page lists every method available in the artifacts-mmo SDK. Both ArtifactsClient and AsyncArtifactsClient expose the same interface — async methods return coroutines instead of values.
Top-level Client Methods
The client provides access to game data and creates character controllers.
Server & Authentication
Method |
Parameters |
Description |
|---|---|---|
|
— |
Server status and version |
|
|
Generate a JWT token |
Account Management
Method |
Parameters |
Description |
|---|---|---|
|
|
Create a new account |
|
|
Get public account info |
|
|
Account achievements |
|
|
Characters on an account |
Your Account
Method |
Parameters |
Description |
|---|---|---|
|
— |
Your account details |
|
— |
Your bank gold balance |
|
optional |
Items in your bank |
|
optional |
Your active GE orders |
|
optional |
Your GE order history |
|
— |
Items waiting to claim |
|
— |
Your characters |
|
optional |
All action logs |
|
|
Change password |
Character Management
Method |
Parameters |
Description |
|---|---|---|
|
|
Create a new character |
|
|
Delete a character |
|
optional |
All active characters |
|
|
Get character info |
|
|
Create Character controller → |
Game Data Queries
Items:
Method |
Parameters |
Description |
|---|---|---|
|
|
Get item by code |
|
|
List items with filters |
Monsters:
Method |
Parameters |
Description |
|---|---|---|
|
|
Get monster by code |
|
|
List monsters |
Maps:
Method |
Parameters |
Description |
|---|---|---|
|
|
Find tiles by content |
|
|
Tiles in a layer |
|
|
Get tile at coordinates |
|
|
Get tile by ID |
Resources:
Method |
Parameters |
Description |
|---|---|---|
|
|
Get resource by code |
|
|
List resources |
NPCs:
Method |
Parameters |
Description |
|---|---|---|
|
|
Get NPC by code |
|
optional |
List all NPCs |
Events:
Method |
Parameters |
Description |
|---|---|---|
|
optional |
Currently active events |
|
optional |
All events |
Other Data:
Method |
Parameters |
Description |
|---|---|---|
|
|
Get achievement |
|
|
List achievements |
|
|
Get badge |
|
optional |
List badges |
|
|
Get effect |
|
optional |
List effects |
Grand Exchange (Read-only):
Method |
Parameters |
Description |
|---|---|---|
|
|
GE item data |
|
optional |
All GE items |
Leaderboard:
Method |
Parameters |
Description |
|---|---|---|
|
|
Character leaderboard |
|
|
Account leaderboard |
Tasks:
Method |
Parameters |
Description |
|---|---|---|
|
|
Get task definition |
|
|
List tasks |
|
|
Get task reward |
|
optional |
List task rewards |
Character Controller Methods
Create a character controller: char = client.character("name")
Direct Character Actions
Method |
Parameters |
Description |
|---|---|---|
|
— |
Get current character state |
|
optional |
Character action log |
|
|
Move to coordinates |
|
— |
Fight monster at current location |
|
— |
Rest to recover HP |
|
— |
Enter/exit building |
|
|
Claim a pending item |
|
|
Change character skin |
Inventory
Method |
Parameters |
Description |
|---|---|---|
|
|
Use a consumable |
|
|
Delete items |
Equipment
Method |
Parameters |
Description |
|---|---|---|
|
|
Equip an item |
|
|
Unequip from slot |
Skills (Craft/Gather)
Method |
Parameters |
Description |
|---|---|---|
|
— |
Gather resource |
|
|
Craft items |
|
|
Recycle equipment |
Bank
Method |
Parameters |
Description |
|---|---|---|
|
|
Deposit items |
|
|
Withdraw items |
|
|
Deposit gold |
|
|
Withdraw gold |
|
— |
Buy +20 slots |
Grand Exchange
Method |
Parameters |
Description |
|---|---|---|
|
|
Create sell order |
|
|
Create buy order |
|
|
Cancel your order |
|
— |
Get your active orders |
Tasks & Quests
Method |
Parameters |
Description |
|---|---|---|
|
— |
Accept new task |
|
— |
Complete current task |
|
— |
Exchange 6 coins for reward |
|
|
Hand in task items |
|
— |
Cancel task (costs 1 coin) |
NPC Trading
Method |
Parameters |
Description |
|---|---|---|
|
|
Buy from NPC |
|
|
Sell to NPC |
Player Trading
Method |
Parameters |
Description |
|---|---|---|
|
|
Give gold to player |
|
|
Give item to player |
Quick Examples
Basic usage:
from artifacts import ArtifactsClient
client = ArtifactsClient(token="your_token")
# Query game data
item = client.get_item("iron_sword")
monsters = client.get_all_monsters(max_level=10)
# Control a character
char = client.character("MyChar")
char.move(x=1, y=2)
char.gather()
char.fight()
Async usage:
from artifacts import AsyncArtifactsClient
import asyncio
async def main():
async with AsyncArtifactsClient(token="your_token") as client:
char = client.character("MyChar")
await char.move(x=1, y=2)
await char.fight()
asyncio.run(main())
See Basic Usage for more examples.