Welcome to the TornAPI

user

Supports user ids and Discord user uuids for linked accounts.

profile

Get some information about a user.
Schema
FieldTypeDescription
ageInteger
awardsInteger
basiciconsIcons object
competitionCompetition object
donatorNumberBoolean (0 for false, 1 for true)
enemiesInteger
factionFaction object
forum_postsInteger
friendsInteger
genderGender enum
honorInteger
jobJob object
karmaInteger
last_actionLast Action object
levelInteger
lifeBar object
marriedMarried object
nameString
player_idInteger
profile_imageString
propertyString
property_idInteger
rankString
revivableNumberBoolean (0 for false, 1 for true)Status whether you (the key owner) can revive this player. When querying for yourself, it will not check for the revive ability and show 1 when enabled.
roleRole enum
signupDate (yyyy-MM-dd HH:mm:ss)
statesStates object
statusStatus object
Structures
Bar
FieldTypeDescription
currentInteger
fulltimeIntegerSeconds till the life is full.
incrementInteger
intervalInteger
maximumInteger
ticktimeIntegerSeconds till the next life increment.
Competition
FieldTypeDescription
attacksInteger
imageString
nameCompetition Type enum
positionUnknown, let us know what it looks like.
scoreInteger or Number (with floating point)Integer score for Easter Egg Hunt, Dog Tags or Elimination. Number score for Mr & Ms Torn.
statusRock, Paper, Scissors Status enum
teamString
textString
totalInteger
treats_collected_totalIntegerAmount of Treats collected during Halloween.
votesInteger
Competition Type
Limited values of the 'String' type:
Dog Tags
Easter Egg Hunt
Elimination
Halloween
Mr & Ms Torn
Rock, Paper, Scissors
Faction
FieldType
days_in_factionInteger
faction_idInteger
faction_nameString
faction_tagString
positionString
Gender
Limited values of the 'String' type:
Enby
Female
Male
Icons
FieldType
<icon-id>String
Job
FieldTypeDescription
company_idInteger
company_nameString
company_typeInteger
jobStringFor the default jobs, this will be the job name. For companies this will be 'Employee' or 'Director'.
positionStringPosition within the job or company. Company directors will be listed as 'Director'.
Last Action
FieldType
relativeString
statusLast Action Status enum
timestampEpoch timestamp (in seconds)
Last Action Status
Limited values of the 'String' type:
Idle
Offline
Online
Married
FieldType
durationInteger
spouse_idInteger
spouse_nameString
Rock, Paper, Scissors Status
Limited values of the 'String' type:
paper
rock
scissors
Role
Limited values of the 'String' type:
Admin
Civilian
Committee
Helper
Moderator
NPC
Officer
Reporter
Wiki Contributor
Wiki Editor
States
FieldType
hospital_timestampEpoch timestamp (in seconds)
jail_timestampEpoch timestamp (in seconds)
Status
FieldType
colorStatus Color enum
descriptionString
detailsString
stateStatus State enum
untilEpoch timestamp (in seconds)
Status Color
Limited values of the 'String' type:
blue
green
red
Status State
Limited values of the 'String' type:
Abroad
Fallen
Federal
Hospital
Jail
Okay
Traveling