| This page documents the API.
This page is about the API for the game. It contains information such as contents, structure, & other miscellany. See Category:API for other pages on the API. |
The War API provides information about war.
Accessing the API
Access URL
baseurl/war/{war id}/&key={api key}
Example: https://politicsandwar.com/api/war/184112/&key=123
JSON Example
{
"success":true,
"war":[{"war_ended":true,
"date":"2017-01-01T00:00:00+00:00",
"aggressor_id":"6",
"defender_id":"14820",
"aggressor_alliance_name":"Example Alliance B"
"aggressor_is_applicant":true,
"defender_alliance_name":"Example Alliance A",
"defender_is_applicant":false,
"aggressor_offering_peace":true,
"war_reason":"Example for the API Wiki Page",
"ground_control":"6",
"air_superiority":"14820",
"blockade":"14820",
"aggressor_military_action_points":"7",
"defender_military_action_points":"3",
"aggressor_resistance":"25",
"defender_resistance":"49",
"aggressor_is_fortified":true,
"defender_is_fortified":false,
"turns_left":0
}]}