XML feed
From NSwiki, the NationStates encyclopedia.
Revision as of 09:28, 5 October 2004 by Frisbeeteria (Talk | contribs)
Contents
The NationStates XML feed
National XML feed
To access this feed, take the following URL and paste it into your browser window and change 'YourNation' to whichever nation you would like to see.
http://www.nationstates.net/cgi-bin/nationdata.cgi/nation=YourNation
National Feed example
{?xml version="1.0" ?} -{NATIONINFO}
- {NAME} nation {/NAME}
- {TYPE} national title {/TYPE}
- {FULLNAME} Fully qualified name {/FULLNAME}
- {MOTTO} Your motto goes here! {/MOTTO}
- {CATEGORY} Game Category {/CATEGORY}
- {UNSTATUS} UN Delegate {/UNSTATUS}
-{FREEDOM}
- {CIVILRIGHTS} Civil Rights Rating {/CIVILRIGHTS}
- {ECONOMY} Economy Rating {/ECONOMY}
- {POLITICALFREEDOM} Political Freedom Rating {/POLITICALFREEDOM}
- {/FREEDOM}
- {REGION} Region {/REGION}
- {POPULATION} Population in millions {/POPULATION}
- {TAX} Tax percentage {/TAX}
- {ANIMAL} National Animal {/ANIMAL}
- {CURRENCY} National Currency {/CURRENCY}
- {FLAG} URL for flag {/FLAG}
- {MAJORINDUSTRY} Major Industry {/MAJORINDUSTRY}
- {GOVTPRIORITY} Government Spending priority {/GOVTPRIORITY}
-{GOVT}
- {ADMINISTRATION} % of Government spending {/ADMINISTRATION}
- {WELFARE} % of Government spending {/WELFARE}
- {HEALTHCARE} % of Government spending {/HEALTHCARE}
- {EDUCATION} % of Government spending {/EDUCATION}
- {SPIRITUALITY} % of Government spending {/SPIRITUALITY}
- {DEFENCE} % of Government spending {/DEFENCE}
- {LAWANDORDER} % of Government spending {/LAWANDORDER}
- {COMMERCE} % of Government spending {/COMMERCE}
- {PUBLICTRANSPORT} % of Government spending {/PUBLICTRANSPORT}
- {ENVIRONMENT} % of Government spending {/ENVIRONMENT}
- {SOCIALEQUALITY} % of Government spending {/SOCIALEQUALITY}
- {/GOVT}
- {LASTLOGIN} date in ?? format {/LASTLOGIN}
- {LASTACTIVITY} time in minutes {/LASTACTIVITY}
- {/NATIONINFO}
Regional XML feed
To access this feed, take the following URL and paste it into your browser window and change 'YourRegion' to whichever region you would like to see.
http://www.nationstates.net/cgi-bin/regiondata.cgi/region=YourRegion
Regional Feed example
{?xml version="1.0" ?}
- {REGIONINFO}
- {NAME} region {/NAME}
- {FACTBOOK} The text of the World Factboook entry {/FACTBOOK}
- {NUMNATIONS} number of nations present in the region {/NUMNATIONS}
- {NATIONS} nation1 : nation2 : nation3 : nation4 {/NATIONS}
- {DELEGATE} UN Delegate {/DELEGATE}
- {DELEGATEVOTES} number of votes the Delegate gets {/DELEGATEVOTES}
- {FOUNDER} Founder {/FOUNDER}
- {/REGIONINFO}