Type Definitions
CountryInfo
- Source:
Properties:
Name | Type | Description |
---|---|---|
vehicles |
number | The amount of total vehicles |
elite |
number | The amount of elite (fully researched) vehicles |
medals |
number | The amount of medals for the country |
Represents info about a nation for a player's profile
Type:
- Object
DifficultyInfo
- Source:
Properties:
Name | Type | Description |
---|---|---|
arcade |
ProfileStats | The info for the Arcade gamemode |
realistic |
ProfileStats | The info for the Realistic gamemode |
simulator |
ProfileStats | The info for the Simulator gamemode |
Represents statistics per gamemode
Type:
- Object
NewsInfo
- Source:
Properties:
Name | Type | Description |
---|---|---|
url |
string | The URL to the news/changelog page |
title |
string | The title of the news/update |
date |
string | The date the news was announced/the update was released |
Represents a War Thunder news item
Type:
- Object
PlayerData
- Source:
Properties:
Name | Type | Description |
---|---|---|
profile |
ProfileInfo | The player's profile |
stats |
ProfileStats | Game statistics for the player |
Represents raw data about a player
Type:
- Object
ProfileInfo
- Source:
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
image |
string | The URL to the player's in-game avatar |
|
nick |
string | The player's in-game name |
|
title |
string |
<nullable> |
The player's title, if he has one |
squadron |
string |
<nullable> |
The player's squadron, if he's in one |
level |
number | The player's in-game experience level |
|
registered |
string | The date when the player registered |
|
usa |
CountryInfo | Statistics for the USA |
|
ussr |
CountryInfo | Statistics for the USSR |
|
britain |
CountryInfo | Statistics for Great Britain |
|
germany |
CountryInfo | Statistics for Germany |
|
japan |
CountryInfo | Statistics for Japan |
|
italy |
CountryInfo | Statistics for Italy |
|
france |
CountryInfo | Statistics for France |
Represents the player's profile
Type:
- Object
ProfileStats
- Source:
Properties:
Name | Type | Description |
---|---|---|
victories |
string | The amount of victories |
completed |
string | The amount of completed battles |
ratio |
string | The victory/battle ratio |
sessions |
string | The amount of total sessions |
deaths |
string | The amount of deaths |
lions |
string | The amount of Silver Lions earnt |
playTime |
string | The time played |
airTargets |
number | The amount of air targets destroyed |
groundTargets |
number | The amount of ground targets destroyed |
navalTargets |
number | The amount of naval targets destroyed |
Represents player statistics
Type:
- Object
SquadronData
- Source:
Properties:
Name | Type | Description |
---|---|---|
name |
string | The squadron name |
image |
string | The URL to the squadron's in-game picture |
players |
number | The amount of players in the squadron |
description |
string | The squadron's description |
createdAt |
string | The date of creation for the squadron |
airKills |
SquadronDifficultyStats | The amount of air targets destroyed per difficulty |
groundKills |
SquadronDifficultyStats | The amount of ground targets destroyed per difficulty |
deaths |
SquadronDifficultyStats | The amount of deaths per difficulty |
flightTime |
SquadronDifficultyStats | The total flight time per difficulty |
members |
Array.<SquadronMemberInfo> | Info for each squadron member |
Represents raw clan data
Type:
- Object
SquadronDifficultyStats
- Source:
Properties:
Name | Type | Description |
---|---|---|
arcade |
string | The info for the Arcade gamemode |
realistic |
string | The info for the Realistic gamemode |
simulator |
string | The info for the Simulator gamemode |
Represents info per difficulty for a clan.
This is identical to Profile#difficultyInfo
, with the difference being
that Profile#difficultyInfo
is for profile statistics (which are objects),
and Clan#SquadronDifficultyStats
is for strings.
Type:
- Object
SquadronMemberInfo
- Source:
Properties:
Name | Type | Description |
---|---|---|
name |
string | The in-game name of the squadron member |
rating |
SquadronDifficultyStats | The rating for the squadron member, per difficulty |
role |
string | The squadron member's role |
entry |
string | The date of entry for the squadron member |
Represents info about a clan member
Type:
- Object
wiki
- Source:
Properties:
Name | Type | Description |
---|---|---|
title |
string | The title of the search result's page |
url |
string | The URL to the search result's page |
main |
Boolean | If there is a page named as the search query on the Wiki |
Represents a War Thunder Wiki search result
Type:
- Object
WTEndPoint
- Source:
Endpoints to access the War Thunder site. These are:
- main
- user
- clan
- news
- static
- wiki
Type:
- string
WTEndPointURL
- Source:
URLs to access specific endpoints. These are:
- https://warthunder.com/en
- https://warthunder.com/en/community/userinfo
- https://warthunder.com/en/community/claninfo
- https://warthunder.com/news3-en.html
- https://static.warthunder.com
- https://wiki.warthunder.com
Type:
- string