HOME | COUNTIES | GAMES | BATTLES | STATS | ABOUT | GAME: 22 | GAME OVER |
GAME 22 OVER : Game 23 will start on Monday at 7:01 AM MST(AZ) / 14:01 UTC. |
COUNTY WAR'S VERY GEEKY API | ||||||||||||||||||||||||||||||
OK, since we are going to develop what many may find as a totally pointless website that is very long and drawn out, like a test cricket match; we might as well include an open application programming interface (API) to go with it. The API is simply some of the functions from the CountyWAR site that you can use to develop your own interface to the data and live results. Perhaps, build a desktop app that sounds an alarm when your selected county is engaged in battle. The possibilities are only limited to what you can really do with randomized US counties. The API is delivered in JSON and there are several endpoints that can be used. Enjoy the API while you engage down your path of expanding your inner-nerdiness. |
||||||||||||||||||||||||||||||
game SECTION | ||||||||||||||||||||||||||||||
Many of our endpoints provide a section called game. This section gives some basic information about the live game including:
|
||||||||||||||||||||||||||||||
CERTAIN VALUES IN RAW AND FORMATTED VERSIONS | ||||||||||||||||||||||||||||||
Certain values such as populations and number of entities are provided in the next level down. value contains the value of the variable. formatted is the value of the variable but formatted with commas for display purposes. |
||||||||||||||||||||||||||||||
GEOGRAPHIC IDENTIFIERS (geoId) | ||||||||||||||||||||||||||||||
The geoId is a 5-digit zero-filled value that uniquely identifies a county entity. The values are based on the Federal Information Processing Standards (FIPS) code for that county or other third-level entity. |
||||||||||||||||||||||||||||||
LIVE RESULTS API | ||||||||||||||||||||||||||||||
Endpoint: https://countywar.com/api/live This API provides information on the last battle/round that was played. The data in this endpoint updates once per minute during the period of when a live game is in progress. In addition to the game section described above, this endpoint also includes the following sections: battle - General information about the last round played. Note: The terms "battle" and "round" are used interchangeably in this game.
attack and target - These are two separate sections that use the same data structure. Attack is the entity that engaged the Target in the battle. Liberation rounds will only display the attack section:
hitPoints - This is a simple array that shows the outcome for each of the 9 fights within the battle. A value of 1 indicates that the attacker won the point where a value of 2 indicates that the target was the winner. Hit points are not used in liberation or free pass rounds. |
||||||||||||||||||||||||||||||
LEADERBOARD API | ||||||||||||||||||||||||||||||
Endpoint (entity leaders): https://countywar.com/api/leaderboard The leaderboard API identifies the top 25 controlling entities. It is updated after each round of the live game. There are two different versions for entity leaders and population leaders. This API includes the game section shown above. leader
leaderboard - Up to 25 of the following values ranked by either entities or population:
|
From your friends at the Fun and Games Department at REC!
Copyright © REC Networks - All rights reserved. |
Developer API REC Privacy Policy | REC GDPR Policy |