Territory Control API
What is this?
An API for territory control. Territory control is fetched every minute. See it in action.
What parameters are there?
- world - World id (2000 = Ceres).
- continent - Continent id (0 = All, 2 = Indar, 4 = Hossin, 6 = Amerish, 8 = Esamir, 344 = Oshur).
- time - [Optional] Time in seconds since the Unix Epoch. (default:current time)
- timeend - [Optional] Time in seconds. If given, an array of between the times is returned. Maximum duration is 12 hrs. (default:current time)
- regions - [Optional] Show continents regions' ownership in the result (true/false). (default:false)
What data is returned?
- params - Parameters used for the query.
- result - An array of territory control between the given times.
- control - Control values for each faction.
- regions - An array of regions.
- timing
- start-ms - How long it took to process request.
- query-ms - How long it took to query database.
- process-ms - How long it took to build response.
- total-ms - How long it took in total.
Limitations
- Control is based on current lattice links. This will update control value for old entries.
- It is possible sometimes (rarely) the script fails to query or fails to run and the record will be missing entirely. Can't really do anything about it.
- time - Data was not recorded since game came out.
How to use?
- fisu