Skip to Content
ReferenceAPI referenceGeo Locations

Get the map location of every server

GET
/api/v1/geo-locations/server-locations

Returns the location recorded for each server, and this instance's own location in default. The map puts a server without a recorded location at default.

Authorization

cookiesession<token>

Session cookie authentication.

Response Body

Request fulfilled, document follows

application/json
  1. response

Every server's map location, plus this instance's own location as the default.

default*|

This instance's own location, found at startup or set with MAP_SERVER_LATITUDE and MAP_SERVER_LONGITUDE. Null when it has neither.

locations*array<>

Sorted by server name.

Example Request
curl -X GET 'https://geometrikks.example.com/api/v1/geo-locations/server-locations'
Example Response200
{  "default": {    "latitude": 0,    "longitude": 0  },  "locations": [    {      "detectedAt": "string",      "lastEventDay": "string",      "latitude": 0,      "longitude": 0,      "server": "string",      "source": "auto"    }  ]}