Population API
What is this?
An API for population data. Population values are saved every minute.
What parameters are there?
- world - World id (2000 = Ceres) or comma separated for multiple worlds at once.
- 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 7 days (for now). (default:current time)
What data is returned?
- params - Parameters used for the query.
- result - An array of population for given time.
- 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
- Population data is only for whole server as DGC's API does not provide any accurate population numbers.
- Population data is based on DGC's streaming API. If there are any issues with said API or my backend have to be restarted, it will affect population numbers.
- time - Data was not recorded since game came out.
How to use?
- fisu