Actions
To execute an action with your character, you need to send an API request.
Here's the list of actions currently available:
- Move (opens in a new tab)
- Fight (opens in a new tab)
- Rest (opens in a new tab)
- Gathering (opens in a new tab)
- Crafting (opens in a new tab)
- Recycling (opens in a new tab)
- Use item (opens in a new tab)
- Equip item (opens in a new tab)
- Unequip item (opens in a new tab)
- Delete item (opens in a new tab)
- Deposit item (Bank) (opens in a new tab)
- Deposit gold (Bank) (opens in a new tab)
- Withdraw item (Bank) (opens in a new tab)
- Withdraw gold (Bank) (opens in a new tab)
- Buy expansion (Bank) (opens in a new tab)
- Buy item (Grand Exchange) (opens in a new tab)
- Create order (Grand Exchange) (opens in a new tab)
- Cancel order (Grand Exchange) (opens in a new tab)
- Accept task (opens in a new tab)
- Complete task (opens in a new tab)
- Trade (task) (opens in a new tab)
- Exchange (task) (opens in a new tab)
- Cancel task (opens in a new tab)
Cooldown
When you make an action, you instantly receive the result, but your character will be in a cooldown period for some time after you've made the majority of the game's actions.
Name | Content |
---|---|
Movement | 5s per map |
Fight | 2s per turn (reduce with haste) |
Rest | 1s per 5 HP (minimum 3 seconds) |
Crafting | 5s per item |
Recycling | 2s per item |
Gathering | 25s (reduce with skill level and tools) |
Others | 3s |
If you are in cooldown and try to make an action, you will receive an error 499 showing the remaining cooldown time.
Logs
Every action you take is logged. You can view a character's logs with this request:
cURL
curl --location --request GET 'https://api.artifactsmmo.com/my/YOUR_CHARACTER_NAME_HERE/logs?page=1&size=50' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ENTER_YOUR_TOKEN_HERE'
Javascript
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "Bearer ENTER_YOUR_TOKEN_HERE");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.artifactsmmo.com/my/YOUR_CHARACTER_NAME_HERE/logs?page=1&size=50", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));