Korben Posted March 20, 2021 Share Posted March 20, 2021 I am trying to find a list of API endpoints we can call on. I searched the forums, looked at wiki and didn't get too far. So far I have http://politicsandwar.com/api/{endpoint} /tradeprice/?resource=steel&key={API key} /all-cities/key={API key} /nation/id={nation id}&key={API key} /city/id={city id}&key={API key} /alliance/id={alliance id}&key={API key} Can someone help with a link, thanks. Quote Link to comment Share on other sites More sharing options...
Guest Zephyr Posted March 20, 2021 Share Posted March 20, 2021 4 hours ago, Korben said: I am trying to find a list of API endpoints we can call on. I searched the forums, looked at wiki and didn't get too far. So far I have http://politicsandwar.com/api/{endpoint} /tradeprice/?resource=steel&key={API key} /all-cities/key={API key} /nation/id={nation id}&key={API key} /city/id={city id}&key={API key} /alliance/id={alliance id}&key={API key} Can someone help with a link, thanks. Here's the wiki page for all of them: https://politicsandwar.fandom.com/wiki/Category:API Quote Link to comment Share on other sites More sharing options...
Korben Posted March 20, 2021 Share Posted March 20, 2021 Thank you! 🤯🍻 Quote Link to comment Share on other sites More sharing options...
synthesis Posted April 12, 2021 Share Posted April 12, 2021 Can you add the GNI field into the Nation API? 1 Quote Link to comment Share on other sites More sharing options...
Ragnar-Danneskjold Posted June 22, 2021 Share Posted June 22, 2021 Some things that I would love to see added to the Nation API: the nations GNI would be very useful, and I think that seems reasonable to add. It would also be cool to see a nations total improvements in the nation API, such as total number of iron mines in all cities, so if I wanted that information I don't have to access the API for each city and add them. I don't know if that would be easily implementable, but I'd love to see it. Quote Link to comment Share on other sites More sharing options...
Ragnar-Danneskjold Posted June 29, 2021 Share Posted June 29, 2021 (edited) So, currently, I'm really struggling with the Wars API, and figured I'd post here to see if anyone smarter than me could help me resolve this issue. The wiki says the Wars API can be filtered by nation, but I can't make this work. For example, baseurl/wars/?key={api key}&nation_id={my nation id} I think should generate a list of my countries most recent wars. However all I get is the default Wars API, showing the 100 most recent wars, as if the &nation_id filter isn't there at all. Is the API just not functioning correctly right now, or am I doing something wrong? If anyone can help me out here I would be super grateful. Edited June 29, 2021 by Ragnar-Danneskjold Quote Link to comment Share on other sites More sharing options...
slayer of worlds Posted July 24, 2021 Share Posted July 24, 2021 A national safekeeping api that you can put a percentage of your income in without continuously putting it in. For example You mak 100k/turn %50 of that goes into the national safekeeping. A timer untill you can withdraw from the national safekeeping would be great too. PS: the national safekeeping can be looted at all times of war. I thought of this because I spend too much of my income. 1 Quote Link to comment Share on other sites More sharing options...
Zukran Posted July 25, 2021 Share Posted July 25, 2021 (edited) Can we change the Alliances API(https://politicsandwar.fandom.com/wiki/Alliances_API) members property to actually represent the alliances members. If you want to include applicants I would suggest a separate property. Edited July 25, 2021 by Zukran Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.