It’s not possible directly.
The only way of doing it now, is …
- Grabbing ALL WarIDs … over SIX HUNDRED THIRTY THOUSAND so far.
- Resolving ALL of them.
- Searching for that one specific entity inside all of that data.
I’m not even touching on the fact that one can not grab all Wars at once. /wars/ only gives the most recent ones, which means that every single war ID has to be resolved seperately! That not only takes AGES (630.000 requests and counting), it’s also going to hog the CPU completely, because not threading all the requests would be absolute madness!
Imagine I write a locally used “War Explorer” who does exactly that. I understand that, if I had it running on a server, I could just cache the data on the server. I write tools which are being used locally, though, so everyone using it would have to go through the list above. It’s a waste of CCP’s bandwidth/CPU and a waste of the User’s time/bandwidth.
Client side storage isn’t really an option either! The sum of all resolved WarIDs exceeds the amount of bytes offered by all options for local storage except one, indexeddb, and that one is an unnecessary mess to work with.
Compression isn’t really an option either. Compressing all resolved Wars into a zipfile using WinRAR results in a file that’s FIFTEEN MEGABYTES large! The uncompressed file has OVER TWO HUNDRED!
IndexedDB is a ■■■■■■■ mess and adds an amount of effort that’s absolutely not in relation to what I want to do.
Cookies are too small. I know what the spec about Cookies says, but I also know what people say. They say that the real world and the spec are two different cakes. I do not see how an “unlimited cookie size” could ever be a good thing anyway.
Local Storage is only required to be at least five megabytes of size, which means it varies per browser and there’s no guarantee it’ll be big enough.
I hereby request the ability to directly look up the past and current Wars of a corp/alliance.