Type definitions of objects returned by NationScript.
Type Definitions
Auction
Represents an ongoing auction on a card.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
id |
number | ID of the card being auctioned. |
rarity |
string |
|
nation |
string | Nation depicted on the card ( |
season |
number | ID of the season the card was inscribed for. |
Banner
Represents a national banner.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
id |
string | ID of the banner. |
name |
string | Full name of the banner. |
condition |
string | Vague description of the banner's unlock condition. |
Card
Represents a trading card in the NationStates multiverse, holding all the data requested from the Cards API.
Type:
- object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
id |
number | Card ID; corresponds to the depicted nation's |
|
season |
number | ID of the season the card was inscribed for. |
|
value |
number | Market value of the card, calculated by the game. |
|
rarity |
string | The card's |
|
depicted |
CardNation |
<optional> |
Details of the nation depicted on the card. |
owners |
Array.<string> |
<optional> |
Names of nations owning a copy of the card
( |
asksBids |
Array.<Market> |
<optional> |
Extant Asks and Bids ("Markets"). |
trades |
Array.<TradeCardbound> |
<optional> |
Transfers of the card that matched the query filter. |
CardBadge
Represents a commendation, condemnation, liberation, or injunction badge displayed on a nation or region.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
type |
string |
|
data |
number | For Commendation/Condemnation badges, the ID of the
instituting SC resolution. For authorship and easter egg badges, the
count of authorships/easter eggs found. For others, |
CardNation
Represents a nation depicted on a Card
.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
name |
string | Nation name ( |
motto |
string | National motto. |
pretitle |
string | National pretitle. |
region |
string | Region the nation resides in ( |
category |
string | World Census classification of the nation, e.g. New York Times Democracy. |
flag |
string | URL of the nation's flag image file, relative to
|
CardWorld
Represents the wider card world of the NationStates multiverse, containing all the data requested from the Card API.
Type:
- object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
auctions |
Array.<Auction> |
<optional> |
Auctions currently going on. |
collectionDetail |
Collection |
<optional> |
The queried collection. |
collections |
Array.<ListCollection> |
<optional> |
Collections owned by the queried nation. |
cards |
Array.<ListCard> |
<optional> |
Cards in the deck of the queried nation. |
deckSummary |
Deck |
<optional> |
Summary of the queried nation's deck. |
trades |
Array.<Trade> |
<optional> |
Trades matching the query filter. |
CensusDataNation
Container object for data on a nation's performance on a World Census scale.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
id |
number |
|
score |
number | Raw score. |
rankRegion |
number | Rank within the region. |
rankRegionPercent |
number | Percentile within the region. |
rankWorld |
number | Rank world-wide. |
rankWorldPercent |
number | Percentile world-wide. |
CensusDataRegion
Container object for data on a region's performance on a World Census scale, depending on its residents' scores on it.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
id |
number |
|
average |
number | Average score of the region's residents on the scale. |
rank |
number | Rank of the region on the scale. |
rankPercent |
number | Percentile of the region on the scale. |
CensusDescription
Container object for census scale descriptions.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
id |
number |
|
national |
string | Description of the scale's national rankings. |
regional |
string | Description of the scale's regional rankings. |
CensusRankScored
Container object for a nation's rank on a given World Census scale,
including the raw score, as returned by the
RegionShard.CENSUS_RANKS
and
WorldShard.CENSUS_RANKS
shards.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
nation |
string | Name of the nation ( |
rank |
number | Rank of the nation on the scale. |
score |
number | Score of the nation on the scale. |
CensusRankUnscored
Container object holding data on a nation's rank on the day's featured World
Census scale, without the raw score, as returned by the
NationShard.CENSUS_RANK_REGION
and NationShard.CENSUS_RANK
shards.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
scale |
number |
|
rank |
number | The rank of the nation. |
Collection
Represents a collection of cards, in detailed form.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
name |
string | Name of the collection. |
owner |
string | Nation that created the collection ( |
edited |
number | Timestamp of the last change to the collection. |
cards |
Array.<ListCard> | List of cards in the collection. |
DeathData
Represents a cause of death with its prevalence in a nation.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
cause |
string |
|
percent |
number | Percentage of deaths in the nation due to the cause. |
Deck
Represents a nation's deck of trading cards.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
nationID |
number | Database ID of the nation that owns the deck. |
nationName |
string | Name of the nation that owns the deck ( |
bank |
number | Amount of bank the deck owner currently has. |
capacity |
number | Maximum number of cards that may be in the deck. |
numCards |
number | Number of cards currently in the deck. |
value |
number | Total market value of all cards currently in the deck. |
valueTime |
number | Timestamp of when the deck's value was assessed. |
rank |
number | World-wide rank of the deck according to value. |
rankRegion |
number | Region-wide rank of the deck according to value. |
lastPack |
number | Timestamp of when the deck owner last opened a pack of cards. |
DelegateActiveVote
Represents an extant vote cast by a WA delegate on an at-vote resolution.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
delegate |
string | Name of the delegate ( |
weight |
number | Number of votes the delegate currently has. |
timestamp |
number | Timestamp of when the vote was cast. |
DelegateLogVote
Represents a vote historically cast by a WA delegate on an at-vote resolution. It may be the current vote, or have been updated since.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
delegate |
string | Name of the delegate ( |
vote |
string |
|
weight |
number | Number of votes the delegate currently has. |
timestamp |
number | Timestamp of when the vote was cast. |
Dispatch
Represents a dispatch.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
id |
number | ID of the dispatch. |
title |
string | The dispatch's title. |
author |
string | Nation that published the dispatch ( |
categoryTop |
string |
|
categorySub |
string |
|
body |
string | Body text of the dispatch. |
posted |
number | Timestamp of the dispatch's original publication. |
edited |
number | Timestamp of the last edit to the dispatch. If there
haven't been any edits, |
views |
number | Number of views on the dispatch. |
score |
number | The dispatch's score - upvotes minus downvotes. |
DumpCard
Represents a trading card in the NationStates multiverse, containing all the data saved for the card in the requested season's one-off Dump.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
id |
number | Card ID; corresponds to the depicted nation's |
depicted |
CardNation | Details of the nation depicted on the card. |
rarity |
string | The card's |
trophies |
Array.<Trophy> | Displayed World Census ranking trophies. |
badges |
Array.<CardBadge> | Displayed miscellaneous badges. |
description |
string | Industry and population info. |
DumpNation
Represents a nation in the NationStates multiverse, containing all the data saved for the nation in the requested Daily Dump.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
name |
string | Name of the nation ( |
pretitle |
string | National pretitle. |
nameFull |
string | Full name of the nation ( |
motto |
string | National motto. |
category |
string | World Census category of the nation, e.g. New York Times Democracy. |
waStatus |
string |
|
endorsements |
Array.<string> | Nations endorsing this nation ( |
issuesAnswered |
number | Number of issues the nation has answered. |
freedomDescriptions |
FreedomsTextData | Textual descriptions of the freedom levels in the nation. |
region |
string | Region the nation resides in ( |
population |
number | Number of citizens the nation has, in millions. |
tax |
number | Average income tax rate in the nation. |
animal |
string | National animal of the nation. |
currency |
string | Name of the nation's currency. |
demonymAdjective |
string | The adjective demonym for the nation. |
demonymNoun |
string | The singluar noun demonym for the nation. |
demonymPlural |
string | The plural noun demonym for the nation. |
flag |
string | Absolute URL of the national flag image file. |
majorIndustry |
string | Largest industry in the nation. |
spendingPriority |
string | Single largest field within the nation's
|
expenditure |
SpendingData | Details of national government expenditure. |
founded |
string | Textual description of when the nation was founded, relative to now. |
firstLogin |
number | Timestamp of the nation's first login. |
lastLogin |
string | Textual description of the time of the nation's last login, relative to now. |
lastLoginTimestamp |
number | Timestamp of the nation's last login. |
influence |
string |
|
freedomScores |
FreedomsScoreData | Scores for the freedom levels in the nation. |
gdpGovernment |
number | Percentage of the nation's GDP that is generated directly by government action. |
deaths |
DeathData | Details on the causes of death in the nation. |
leader |
string | Name of the national leader. |
capital |
string | Name of the national capital. |
religion |
string | Name of the national religion. |
factbookNum |
number | Number of extant factbooks the nation authored. |
dispatchNum |
number | Number of extant dispatches the nation wrote. |
dbID |
number | Database ID of the nation. |
DumpRegion
Represents a region in the NationStates multiverse, containing all the data saved for the region in the requested Daily Dump.
Type:
- object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
bannerID |
string |
<nullable> |
ID of the regional banner. If the region doesn't
fly a custom banner, |
bannerURL |
string | Relative URL of the regional banner image file. |
|
delegateName |
string |
<nullable> |
Nation serving as the regional WA Delegate
( |
delegateAuthorities |
Array.<string> |
|
|
delegateVotes |
number | Number of votes the regional WA Delegate has. |
|
wfe |
string | Body text of the region's World Factbook Entry. |
|
flag |
string | Absolute URL of the regional flag image file. |
|
isFrontier |
boolean |
|
|
governor |
string |
<nullable> |
Nation serving as the regional governor
( |
updateLast |
number | Timestamp of when the region last updated. |
|
updateMajor |
number | Timestamp of when the region last updated in the course of a Major update. |
|
updateMinor |
number | Timestamp of when the region last updated in the course of a Minor update. |
|
name |
string | Name of the region ( |
|
nations |
Array.<string> | Nations residing in the region ( |
|
nationsNum |
number | Number of nations residing in the region. |
|
powerLevel |
string | Textual description of the total influence among nations in the region. |
|
embassies |
Embassy | Embassies the region has with others. |
|
founder |
string |
<nullable> |
Nation that founded the region ( |
officers |
Array.<Officer> | Regional officers. |
Embassy
Represents a regional embassy.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
phase |
string | The embassy's current |
region |
string | Region the embassy is for ( |
Faction
Represents an N-Day faction.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
id |
number | Faction ID. |
name |
string | Faction name. |
description |
string | Faction description. |
created |
number | Timestamp of the faction's founding. |
region |
string | Name of the founding region ( |
entry |
number | |
score |
number | Faction score - |
strikes |
number | Number of nukes launched by faction members that successfully hit their target. |
radiation |
number | Number of nukes that have hit faction members. |
production |
number | Amount of production stored by faction members. |
nukes |
number | Number of nukes stockpiled by faction members. |
shields |
number | Number of shields stockpiled by faction members. |
targets |
number | Number of nukes faction members are aiming. |
launches |
number | Number of nukes faction members are launching. |
targeted |
number | Number of nukes aimed at faction members. |
incoming |
number | Number of nukes launched at faction members. |
ForAgainst
Container for ordering vote data by votes For and Against.
Type:
- Object
FreedomsScoreData
Container object holding numerical data on a nation's civil, economic, and political freedoms, all rounded to the nearest integer value.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
civil |
string | The nation's civil rights score. |
economic |
string | The nation's economical freedom score. |
political |
string | The nation's political freedom score. |
FreedomsTextData
Container object holding descriptions on a nation's civil, economic, and political freedoms.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
civil |
string | The nation's civil rights situation. |
economic |
string | Extent of economic freedom the nation grants. |
political |
string | Level of the nation's political freedom. |
Happening
Represents a happening event in the NationStates world.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
timestamp |
number | Timestamp of when the happening occurred. |
text |
string | Description of what transpired in the happening. |
HDIData
Container object holding data on the different component scores that ultimately combine into a nation's final World Census HDI score.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
score |
number | The final HDI score. |
economy |
number | The economic score component. |
education |
number | The educational score component. |
lifespan |
number | The life expectancy score component. |
IDHappening
Represents a happening event in the NationStates world.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
id |
number | Happening ID. |
timestamp |
number | Timestamp of when the happening occurred. |
text |
string | Description of what transpired in the happening. |
Issue
Represents an issue confronting a nation.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
id |
number | Issue ID. |
title |
string | Issue title. |
description |
string | Issue description - the problem to be solved. |
options |
Array.<IssueOption> | Available answer options. |
author |
Array.<string> | Names of the nations that authored the issue. |
editor |
Array.<string> | Names of the nations that edited the issue. |
imageLarge |
string | Banner code of the large image shown on the issue. |
imageSmall |
string | Banner code of the small image shown on the issue. |
IssueEffect
Represents the outcome of the chosen answer on an issue.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
issue |
number | ID of the issue that was answered. |
option |
number | (Issue-internal) ID of the option that was chosen. |
ok |
boolean | Whether everything went alright, I guess? |
legislation |
string | The effect line of the chosen issue option. |
headlines |
Array.<string> | List of all generated newspaper headlines. |
banners |
Array.<string> | List of the banner codes of banners newly unlocked. |
policiesEnacted |
Array.<Policy> | List of all national policies newly enacted. |
policiesCancelled |
Array.<Policy> | List of all national policies newly rescinded. |
census |
Array.<RankChange> | List of changes to the nation's census scores. |
reclassifications |
Array.<Reclassification> | List of reclassifications of the nation's freedom levels. |
IssueOption
Represents an option that may be chosen to answer an issue.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
id |
number | Issue-internal ID of the option. |
text |
string | Body text describing the option. |
IssueOptionWarning
Represents an extraordinary warning attached to an
IssueOption
.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
option |
number | Issue-internal ID of the option the warning is for. |
text |
string | Body text of the warning. |
LegalityData
Container object holding data on a proposal's current legal status - that is, the decisions of Moderators or members of the GA General Secretariat on the proposal's compliance with the SC/GA ruleset.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
legal |
Array.<string> | Nations ruling the proposal legal ( |
illegal |
Array.<string> | Nations ruling the proposal illegal ( |
discard |
Array.<string> | Nations voting to discard the proposal ( |
log |
Array.<LegalityDecision> | Log of rulings made on the proposal. |
LegalityDecision
Represents a ruling of a Moderator or a member of the General Secretariat
concerning the legality of a concrete Proposal
.
Type:
- object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
nation |
string | Nation that made the ruling ( |
|
ruling |
string | The |
|
reason |
string |
<nullable> |
Comment attached to the ruling; |
timestamp |
number | Timestamp of when the ruling was made. |
ListCard
Represents a card with only the most basic data present, as when displayed as part of a listing of multiple cards.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
id |
number | ID of the card (and the depicted nation). |
rarity |
string |
|
season |
number | ID of the season that the card was inscribed for. |
ListCollection
Represents a collection of cards with only the most basic data present, as when displayed as part of a listing of multiple collections.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
id |
number | ID of the collection. |
name |
string | Name of the collection. |
edited |
number | Timestamp of the last change to the collection. |
ListDispatch
Represents a dispatch, without its body text.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
id |
number | ID of the dispatch. |
title |
string | The dispatch's title. |
author |
string | Nation that published the dispatch ( |
categoryTop |
string |
|
categorySub |
string |
|
posted |
number | Timestamp of the dispatch's original publication. |
edited |
number | Timestamp of the last edit to the dispatch. If there
haven't been any edits, |
views |
number | Number of views on the dispatch. |
score |
number | The dispatch's score - upvotes minus downvotes. |
ListFaction
Represents an N-Day faction with only the most basic information present, as when displayed as part of a listing of multiple factions.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
id |
number | Faction ID. |
name |
string | Faction name. |
score |
number | Faction score. |
region |
string | Name of the founding region ( |
numMembers |
number | Number of nations that are members of the faction. |
ListIssue
Represents an issue by title and ID.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
id |
number | ID of the issue. |
title |
string | Title of the issue, shown as a newspaper headline. |
Market
Represents an ask or bid on a card in the auction house.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
nation |
string | Nation entertaining this market ( |
bank |
number | Amount of bank this market is worth. |
isAsk |
boolean |
|
timestamp |
number | Timestamp of when this market was created. |
Nation
Represents a nation in the NationStates multiverse, containing all the data requested from the Nation API.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
idForm |
string | Name of this nation in |
|
admirable |
string |
<optional> |
A random |
admirables |
Array.<string> |
<optional> |
All |
animal |
string |
<optional> |
National animal of the nation. |
animalTrait |
string |
<optional> |
Behaviour of the national animal. |
banner |
string |
<optional> |
Banner code of the banner to display for the nation. If the nation has set a primary banner, this is always the code of that primary banner; otherwise, it is randomly selected from all banners the nation has unlocked and not turned off. |
banners |
Array.<string> |
<optional> |
Banner codes of all banners the nation has unlocked and not turned off. If the nation has set a primary banner, the banner code of it is listed first. |
category |
string |
<optional> |
World Census category of the nation, e.g. New York Times Democracy. |
crime |
string |
<optional> |
Textual description of crime levels in the nation. |
currency |
string |
<optional> |
Name of the nation's currency. |
dbID |
number |
<optional> |
Database ID of the nation. |
demonymAdjective |
string |
<optional> |
The adjective demonym for the nation. |
demonymNoun |
string |
<optional> |
The singluar noun demonym for the nation. |
demonymPlural |
string |
<optional> |
The plural noun demonym for the nation. |
dispatchNum |
number |
<optional> |
Number of extant dispatches the nation wrote. |
dossierNations |
Array.<string> |
<optional> |
Nations in the dossier of the nation
( |
endorsements |
Array.<string> |
<optional> |
Nations endorsing this nation ( |
factbookNum |
number |
<optional> |
Number of extant factbooks the nation authored. |
firstLogin |
number |
<optional> |
Timestamp of the nation's first login. |
flag |
string |
<optional> |
Absolute URL of the national flag image file. |
founded |
string |
<optional> |
Textual description of when the nation was founded, relative to now. |
foundedTimestamp |
number |
<optional> |
Timestamp of the nation's founding. |
nameFull |
string |
<optional> |
Full name of the nation. |
voteGA |
string |
<optional> |
|
gdp |
number |
<optional> |
GDP of the nation. |
government |
string |
<optional> |
Textual description of what the national government is doing. |
spendingPriority |
string |
<optional> |
Single largest field within the nation's
|
incomeAverage |
number |
<optional> |
Average income of national citizens. |
descriptionIndustry |
string |
<optional> |
Textual description of the economic situation in the nation. |
influence |
string |
<optional> |
|
issuesAnswered |
number |
<optional> |
Number of issues the nation has answered. |
lastLogin |
string |
<optional> |
Textual description of the time of the nation's last login, relative to now. |
lastLoginTimestamp |
number |
<optional> |
Timestamp of the nation's last login. |
legislation |
Array.<string> |
<optional> |
Effect lines of the nation's four most recently answered issues. |
majorIndustry |
string |
<optional> |
Largest industry in the nation. |
motto |
string |
<optional> |
National motto. |
name |
string |
<optional> |
Name of the nation ( |
nextIssue |
string |
<optional> |
Textual description of when the nation will face its next issue, relative to now. |
nextIssueTime |
number |
<optional> |
Timestamp for when the nation will face its next issue. |
notable |
string |
<optional> |
A random |
notables |
Array.<string> |
<optional> |
All |
packs |
number |
<optional> |
Number of unopened card packs the nation has. |
ping |
boolean |
<optional> |
|
incomePoorest |
number |
<optional> |
Average income of the poorest 10% of national citizens. |
population |
number |
<optional> |
Number of citizens the nation has, in millions. |
gdpGovernment |
number |
<optional> |
Percentage of the nation's GDP that is generated directly by government action. |
dossierRegions |
Array.<string> |
<optional> |
Regions in the dossier of the nation
( |
region |
string |
<optional> |
Region the nation resides in ( |
incomeRichest |
number |
<optional> |
Average income of the richest 10% of national citizens. |
voteSC |
string |
<optional> |
|
sensibilities |
Array.<string> |
<optional> |
All |
tax |
number |
<optional> |
Average income tax rate in the nation. |
receivesCampaign |
boolean |
<optional> |
|
receivesRecruit |
boolean |
<optional> |
|
pretitle |
string |
<optional> |
National pretitle. |
waStatus |
string |
<optional> |
|
capital |
string |
<optional> |
Name of the national capital. |
capitalCustom |
string |
<optional> |
Custom name for the national capital, if set. |
leader |
string |
<optional> |
Name of the national leader. |
leaderCustom |
string |
<optional> |
Custom name for the national capital, if set. |
religion |
string |
<optional> |
Name of the national religion. |
religionCustom |
string |
<optional> |
Custom name for the national religion, if set. |
verified |
boolean |
<optional> |
|
census |
Array.<CensusDataNation> |
<optional> |
Performance of the nation on the queried
|
deaths |
DeathData |
<optional> |
Details on the causes of death in the nation. |
dispatchList |
ListDispatch |
<optional> |
Extant dispatches the nation authored. |
factbookList |
ListDispatch |
<optional> |
Extant factbooks the nation authored. |
freedomDescriptions |
FreedomsTextData |
<optional> |
Textual descriptions of the freedom levels in the nation. |
freedomScores |
FreedomsScoreData |
<optional> |
Scores for the freedom levels in the nation. |
expenditure |
SpendingData |
<optional> |
Details of national government expenditure. |
happenings |
Array.<Happening> |
<optional> |
Recent national happening events. |
hdi |
HDIData |
<optional> |
Composition of the nation's HDI score. |
issues |
Array.<Issue> |
<optional> |
Issues currently confronting the nation. |
issueSummaries |
Array.<ListIssue> |
<optional> |
Titles and IDs of issues currently confronting the nation. |
notices |
Array.<Notice> |
<optional> |
Notices of the nation. |
policies |
Array.<Policy> |
<optional> |
National policies. |
censusRankRegion |
CensusRankUnscored |
<optional> |
Rank of the
nation on the day's featured |
sectors |
SectorsData |
<optional> |
Composition of the nation's GDP, by sector. |
unreads |
UnreadsData |
<optional> |
Stuff not yet acknowledged by the nation. |
badges |
Array.<WABadge> |
<optional> |
Badges awarded to the nation by the SC. |
censusRank |
CensusRankUnscored |
<optional> |
Rank of the
nation on the day's featured |
zombie |
ZombieDataNation |
<optional> |
Details on the national Z-Day performance. |
NewNation
Represents the founding details of a newly founded nation.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
nation |
string | Name of the nation ( |
region |
string | Name of the nation's founding region ( |
founded |
number | Timestamp of the founding. |
Notice
Represents a notice alert generated for a nation.
Type:
- object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
title |
string | Notice title. |
|
text |
string | Notice description. |
|
time |
number | Timestamp of notice generation. |
|
type |
string |
|
|
icon |
string |
<nullable> |
Displayed |
url |
string | URL to open when the notice is clicked. |
|
who |
string | Nation who caused the notice to be generated ( |
|
isNew |
boolean |
|
|
ok |
boolean | No idea. |
Officer
Represents a regional officer of a region.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
nation |
string | Nation holding the office ( |
office |
string | Name of the office. |
appointer |
string | Nation that appointed the officer ( |
authorities |
Array.<string> |
|
appointment |
number | Timestamp of the officer's appointment. |
order |
number | Position on which the officer is displayed (1-indexed). |
Policy
Represents a national policy.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
category |
string | General field the policy concerns. |
name |
string | Name of the policy. |
description |
string | Short description of the policy content. |
image |
string | ID of the policy banner image. |
Poll
Represents a regional poll.
Type:
- object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
id |
number | Poll ID. |
|
title |
string | Poll title. |
|
description |
string |
<optional> |
Poll description. |
author |
string | Nation that created the poll ( |
|
region |
string | Region that the poll is running in ( |
|
opens |
number | Timestamp for when the poll opens. |
|
closes |
number | Timestamp for when the poll closes. |
|
options |
Array.<PollOption> | The available answer options. |
PollOption
Represents a voting option on a regional poll.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
id |
number | Poll-internal ID of this option. |
text |
string | Text of this option. |
votes |
number | Number of votes for this option. |
voters |
Array.<string> | Nations voting for this option ( |
Proposal
Represents a proposal for a new resolution currently before the delegates of the World Assembly.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
id |
string | Proposal ID. |
title |
string | Proposal title. |
author |
string | Nation that submitted the proposal ( |
coauthors |
Array.<string> | List of co-authoring nations ( |
text |
string | Body text of the proposal. |
approvals |
Array.<string> | WA delegates approving the proposal ( |
submitted |
number | Timestamp of proposal submission. |
category |
string | Category of the resolution. |
option |
string | For GA resolutions and SC declarations, the
subcategory of the resolution; otherwise its target nation or region
( |
legality |
LegalityData | Rulings on the proposal's legality. |
RankChange
Represents a change in a nation's performance on a World Census scale.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
scale |
number | Affected |
changeAbsolute |
number | Score change on the scale in its units. |
changeRelative |
number | Score change on the scale in percent. |
newScore |
number | New (absolute) score on the scale. |
Reclassification
Represents a reclassification of a nation's level of civil, economic, or
political freedom through an AnsweredIssue
.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
category |
number | |
from |
string | Level of the freedom prior to answering the issue. |
to |
string | Level of the freedom after answering the issue. |
Region
Represents a region in the NationStates multiverse, containing all the data requested from the Region API.
Type:
- object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
idForm |
string | Name of this region in |
|
banlist |
Array.<string> |
<optional> |
Nations on the region's banlist ( |
bannerID |
string |
<optional> <nullable> |
ID of the regional banner. If the region doesn't
fly a custom banner, |
bannerCreator |
string |
<optional> |
Nation that set the regional banner
( |
bannerURL |
string |
<optional> |
Relative URL of the regional banner image file. |
dbID |
number |
<optional> |
Database ID of the region. |
pinnedDispatches |
Array.<number> |
<optional> |
IDs of dispatches currently pinned to the region's WFE. |
delegateName |
string |
<optional> <nullable> |
Nation serving as the regional WA Delegate
( |
delegateAuthorities |
Array.<string> |
<optional> |
The WA Delegate's
|
delegateVotes |
number |
<optional> |
Number of votes the regional WA Delegate has. |
crossposting |
string |
<optional> |
The region's embassy
|
wfe |
string |
<optional> |
Body text of the region's World Factbook Entry. |
flag |
string |
<optional> <nullable> |
Absolute URL of the regional flag image file. If the
region doesn't fly a flag, |
founded |
string |
<optional> |
Textual description of when the region was founded, relative to now. |
foundedTimestamp |
number |
<optional> |
Timestamp of the region's founding. A
founding in antiquity is represented with |
isFrontier |
boolean |
<optional> |
|
governor |
string |
<optional> <nullable> |
Nation serving as the regional governor
( |
updateLast |
number |
<optional> |
Timestamp of when the region last updated. |
updateMajor |
number |
<optional> |
Timestamp of when the region last updated in the course of a Major update. |
updateMinor |
number |
<optional> |
Timestamp of when the region last updated in the course of a Minor update. |
name |
string |
<optional> |
Name of the region ( |
nations |
Array.<string> |
<optional> |
Nations residing in the region ( |
nationsNum |
number |
<optional> |
Number of nations residing in the region. |
nationsWA |
Array.<string> |
<optional> |
Number of WA members residing in the region. |
nationsWANum |
number |
<optional> |
WA members residing in the region ( |
powerLevel |
string |
<optional> |
Textual description of the total influence among nations in the region. |
tags |
Array.<string> |
<optional> |
|
census |
Array.<CensusDataRegion> |
<optional> |
Performance of the
region on the queried |
censusRanks |
Array.<CensusRankScored> |
<optional> |
Resident nations ranked
by their score on the queried |
embassies |
Embassy |
<optional> |
Embassies the region has with others. |
founder |
string |
<optional> <nullable> |
Nation that founded the region ( |
voteGA |
VoteTally |
<optional> |
Tally of votes For and Against the at-vote GA resolution by resident WA members. |
happenings |
Array.<Happening> |
<optional> |
Recent regional happening events. |
history |
Array.<Happening> |
<optional> |
Significant happening events from the regional history. |
messages |
Array.<RMBPost> |
<optional> |
RMB posts that matched the RMB post query. |
rmbMostPosts |
Array.<RMBActivity> |
<optional> |
Nations' aggregate posting activity on the region's RMB, as queried. |
rmbMostLikesGiven |
Array.<RMBActivity> |
<optional> |
Nations' aggregate likes given on the region's RMB, as queried. |
rmbMostLikesReceived |
Array.<RMBActivity> |
<optional> |
Nations' aggregate likes received on the region's RMB, as queried. |
officers |
Array.<Officer> |
<optional> |
Regional officers. |
poll |
Poll |
<optional> <nullable> |
Poll currently running in the region; |
voteSC |
VoteTally |
<optional> |
Tally of votes For and Against the at-vote SC resolution by resident WA members. |
badges |
Array.<WABadge> |
<optional> |
Badges awarded to the region by the SC. |
zombie |
ZombieDataRegion |
<optional> |
Details of the regional Z-Day performance. |
Resolution
Represents an at-vote or passed resolution in the World Assembly.
Type:
- object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
id |
string | Council-internal resolution ID. If the resolution has not been passed yet, this is its proposal ID. |
|
idOverall |
number |
<optional> |
Overall ID of the resolution. Both councils' resolutions are pooled together for the overall ID. Only available on passed resolutions. |
title |
string | Resolution title. |
|
author |
string | Nation that submitted the resolution ( |
|
coauthors |
Array.<string> | List of co-authoring nations ( |
|
text |
string | Body text of the resolution. |
|
submitted |
number | Timestamp of the resolution's submission. |
|
promoted |
number |
<optional> |
Timestamp of when voting started on the resolution. Only available on at-vote resolutions. |
implemented |
number |
<optional> |
Timestamp of the resolution's passage, if applicable. |
repealed |
number |
<optional> |
ID of the resolution this resolution was repealed by. Only available on passed, repealed resolutions. |
category |
string | Category of the resolution. |
|
option |
string | For GA resolutions and SC declarations, the
subcategory of the resolution; otherwise its target nation or region
( |
|
vote |
VoteSummary | Data on the current votes on the resolution. |
RMBActivity
Container object holding data on a nation's aggregate RMB activity.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
nation |
string | Nation the data is for ( |
score |
number | Aggregate score of the nation. |
RMBPost
Represents a message post lodged to a region's Regional Message Board.
Type:
- object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
id |
number | Post ID. |
|
nation |
string | Nation that made the post ( |
|
text |
string | Body text of the post. |
|
likes |
number | Number of likes on the post. |
|
likers |
Array.<string> | Nations that liked the post ( |
|
timestamp |
number | Timestamp of when the post was made. |
|
status |
number |
|
|
suppressor |
string |
<optional> |
Nation that suppressed the post, if applicable. |
SectorsData
Container object for data on the composition of a nation's GDP, by percent generated by sector.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
blackMarket |
number | Percent generated by black market activity. |
government |
number | Percent generated by direct government activity. |
private |
number | Percent generated by privately-owned industry. |
stateOwned |
number | Percent generated by state-owned industry. |
SpendingData
Container object for data on a nation's government spending by field, in percentages.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
admin |
number | Percentage spent on the bureaucracy. |
defence |
number | Percentage spent on defence. |
education |
number | Percentage spent on education. |
nature |
number | Percentage spent on environmental stuff. |
healthcare |
number | Percentage spent on the healthcare system. |
industry |
number | Percentage spent on corporate welfare. |
aid |
number | Percentage spent on providing international aid. |
order |
number | Percentage spent on law enforcement. |
transport |
number | Percentage spent on the public transport system. |
social |
number | Percentage spent on social policy. |
religion |
number | Percentage spent on spiritual policy. |
welfare |
number | Percentage spent on the welfare system. |
TGQueue
Container object specifying the total number of telegrams that are currently awaiting delivery, divided by the type of queue.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
manual |
number | Number of manually-sent telegrams. |
mass |
number | Number of mass telegrams. |
api |
number | Number of telegrams sent via the API. |
Trade
Represents the transfer of a card from one nation to another (whether by gift or auction) from the view of the open market.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
card |
ListCard | The card transferred. |
buyer |
string | Nation that received the card ( |
seller |
string | Nation that gave the card ( |
price |
number | Amount of bank the receiver paid; |
timestamp |
number | Timestamp of when the transfer occurred. |
TradeCardbound
Represents the transfer of a card from one nation to another (whether by gift or auction) from the view of a specific card's details page.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
buyer |
string | Nation that received the card ( |
seller |
string | Nation that gave the card ( |
price |
number | Amount of bank the receiver paid; |
timestamp |
number | Timestamp of when the transfer occurred. |
Trophy
Represents a commendation, condemnation, liberation, or injunction badge displayed on a nation or region.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
census |
number |
|
percent |
10 | 5 | 1 | Percentile the trophy is for. |
rank |
number | World-wide rank for the census. |
UnreadsData
Container object for data on a nation's number of unread issues, telegrams, notices, and RMB and News posts, as well as the number of at-vote WA resolutions it has not yet cast its vote on.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
issue |
number | Number of pending issues. |
telegram |
number | Number of unread telegrams. |
notice |
number | Number of unread notices. |
rmb |
number | Number of unread posts on the RMB of the nation's region. |
wa |
number | Number of WA resolutions the nation has not yet voted on. |
news |
number | Number of unread news page posts. |
VoteSummary
Container object holding data on the state of voting a resolution.
Type:
- object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
total |
ForAgainst.<number> | Vote totals. |
|
track |
ForAgainst.<Array.<number>> |
<optional> |
Progression of vote totals, array entries representing the respective vote total in hourly intervals. |
nations |
ForAgainst.<Array.<string>> |
<optional> |
Names of individual voters. |
nationsNum |
ForAgainst.<number> |
<optional> |
Numbers of individual voters. |
delegates |
ForAgainst.<DelegateActiveVote> |
<optional> |
The details of regional delegates' standing votes. |
delegatesLog |
Array.<DelegateLogVote> |
<optional> |
Historical log of regional delegates casting their votes. |
VoteTally
Represents a regional tally of votes For and Against a resolution in the World Assembly.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
for |
number | Number of votes in favor of the resolution; |
against |
number | Number of votes against the resolution; |
WABadge
Represents a commendation, condemnation, liberation, or injunction badge displayed on a nation or region.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
resolution |
number | ID of the SC resolution imposing the badge. |
type |
string |
|
WCensusAverage
Container object for national score averages on a given World Census scale.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
id |
number |
|
average |
number | World-wide average score of nations on the scale. |
World
Represents the world of the NationStates multiverse, containing all the data requested from the World API.
Type:
- object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
censusID |
number |
<optional> |
The day's featured
|
featured |
string |
<optional> |
The day's featured region ( |
lastEventID |
number |
<optional> |
ID of the most recent happening event visible to the API. |
nations |
Array.<string> |
<optional> |
Names of currently existing nations ( |
nationsNew |
Array.<string> |
<optional> |
Names of the 50 most recently founded nations
( |
nationsNum |
number |
<optional> |
Number of currently existing nations. |
regionsNum |
number |
<optional> |
Number of currently existing regions. |
regions |
Array.<string> |
<optional> |
Names of currently existing regions ( |
regionsByTag |
Array.<string> |
<optional> |
Names of all regions matching the queried
|
banners |
Array.<Banner> |
<optional> |
Details of the queried banners. |
censusAverages |
Array.<WCensusAverage> |
<optional> |
Average national
scores on the queried |
censusScale |
string |
<optional> |
Name of the units the queried
|
censusTitle |
string |
<optional> |
Title of the queried
|
censusDescription |
CensusDescription |
<optional> |
Info texts
displayed for the queried |
censusRanks |
Array.<CensusRankScored> |
<optional> |
Ranking of nations
on the queried |
dispatch |
Dispatch |
<optional> |
Details of the queried dispatch. |
dispatchList |
Array.<ListDispatch> |
<optional> |
Dispatches that matched the selected dispatch filters. |
faction |
Faction |
<optional> |
Details of the queried N-Day faction. |
factionList |
Array.<ListFaction> |
<optional> |
Extant N-Day factions. |
happenings |
Array.<IDHappening> |
<optional> |
Happening events that matched the selected happenings filters. |
nationsNewDetails |
Array.<NewNation> |
<optional> |
Founding details of the 50 most recently founded nations. |
poll |
Poll |
<optional> |
Details of the queried poll. |
tgQueue |
TGQueue |
<optional> |
Details of the telegram queue. |
WorldAssembly
Represents a council of the World Assembly in the NationStates multiverse, containing all the data requested from the World Assembly API.
Type:
- object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
council |
number | The covered |
|
lastResolution |
string |
<optional> |
Description of the result of the last vote. |
delegates |
Array.<string> |
<optional> |
Currently serving WA delegates ( |
delegatesNum |
number |
<optional> |
Number of currently serving WA delegates. |
members |
Array.<string> |
<optional> |
Current WA member nations ( |
membersNum |
number |
<optional> |
Number of current WA member nations. |
happenings |
Array.<Happening> |
<optional> |
Recent WA happening events. |
proposals |
Array.<Proposal> |
<optional> |
Current proposals. |
resolution |
Resolution |
<optional> |
Details of the at-vote (or the queried) resolution. |
ZombieDataNation
Container object for data on a nation's Z-Day performance.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
intended |
string |
|
action |
string |
|
survivors |
number | Millions of citizens alive and well. |
zombies |
number | Millions of zombified citizens. |
dead |
number | Millions of deceased citizens. |
ZombieDataRegion
Container object for data on the Z-Day performance of a region's residents.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
survivors |
number | Millions of national citizens alive and well. |
zombies |
number | Millions of zombified national citizens. |
dead |
number | Millions of deceased national citizens. |