Welcome to the TornAPI

user

Supports user ids and Discord user uuids for linked accounts.

attacksfull

Retrieves the last 1000 attacks, with less details.
Query Parameters
ParameterDescription
fromLimits results to have their timestamp after or on this timestamp.
toLimits results to have their timestamp before or on this timestamp.
limitLimits amount of results. Amount can't be above the default amount, will use default amount otherwise.
Schema
FieldType
attacksAttacks Full object
Structures
Attack Full
FieldType
attacker_factionInteger + (empty) String
attacker_idInteger + (empty) String
codeString
defender_factionInteger
defender_idInteger
respectNumber (with floating point)
resultAttack Result enum
stealthedNumberBoolean (0 for false, 1 for true)
timestamp_endedEpoch timestamp (in seconds)
timestamp_startedEpoch timestamp (in seconds)
Attack Result
Limited values of the 'String' type:
Arrested
Assist
Attacked
Escape
Hospitalized
Interrupted
Looted
Lost
Mugged
Special
Stalemate
Timeout
Attacks Full
FieldType
<attack id>Attack Full object