Lyrositor

API Suggestions Mega-Thread

5 posts in this topic

This is a combined list of some of the most requested features for the API. If you have a popular suggestion you would like to see added, post below and I'll edit this post.

The Politics & War API, while very useful, could be much more convenient with a few changes, ranging from simple additions to more complex options:

  • Tax API: an alliance API which lists the gains from the last turn for a specific alliance (protected by key).
  • Grouped Nation API Queries: right now, if we want to fetch a list of nations, we have to first obtain a list of IDs (usually from /nations/ or /alliance/id=*), then fetch each nation individually from /nation/id=*. This is both more time-consuming to implement and more work for the server, which has to deal with the overhead of all the separate requests when it could be optimized in one call to the database. A mechanism that either lets us specify multiple IDs for /nation/id=* or lets us get a detailed version of /nations/ (possibly limited to chunks of X nations at a time if you think pulling the detailed info to every nation in the game at once would be too expensive - e.g. /nations/range=1000:2000 or something of the sort) would make this much easier for everyone.
    Note that this should be optional - so that if you only want a simple list of nations, as is currently the case, it should still be the default.
  • Grouped City API Queries: basically the same thing as above, but for cities. It would be nice, for example, to be able to get both a detailed nation and all the details of all of its cities in one go.
  • Total Number of Improvements in Nation API: just a convenience, instead of having to call every city to find out.
  • Ongoing War IDs in Nation API: it would be very useful to see a list of a nation's ongoing wars in the Nation API.
  • Bank Manipulation in Bank API: might be open to exploits, like what happened with trading bots, but something to manage transaction in the bank could be interesting.
  • Radiation and Season in API (personal suggestion): this is something I would find useful (not sure if others would), but a way to get the radiation level and season for a nation would be nice (in the nation API ideally). 
5

Share this post


Link to post
Share on other sites
29 minutes ago, Lyrositor said:

Ongoing War IDs in Nation API: it would be very useful to see a list of a nation's ongoing wars in the Nation API.

To go along with this, ongoing war IDs in the Alliance API would be pretty sweet. 

2

Share this post


Link to post
Share on other sites

Yes, please. These are all great ideas and I'm excited to see them come to fruition. Keep up the great work!

1

Share this post


Link to post
Share on other sites

I've updated the Nation API to include the following:

offensivewars

defensivewars

offensivewar_ids

defensivewar_ids

But for the time being I can't push these changes live yet. Expect them in the next week or two.

2

Share this post


Link to post
Share on other sites
On 13/11/2017 at 10:11 PM, Lyrositor said:
  • Radiation and Season in API (personal suggestion): this is something I would find useful (not sure if others would), but a way to get the radiation level and season for a nation would be nice (in the nation API ideally). 

I second this one

Also, LYRO IS BACK!!

1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now