Service

Useful for client synchronization and checking clock drift.

get/v1/service/time

Request

  • Base URL
    https://api.getmytg.com
  • URL
    https://api.getmytg.com/v1/service/time
  • Auth
    none required

Response

Successful response.

isostring required

Current server time in ISO 8601 format.

epochMsinteger required

Current server time in milliseconds since Unix epoch.

timezonestring required

Server timezone.

Example response

{
  "iso": "2024-01-15T12:00:00.000Z",
  "epochMs": 1705320000000,
  "timezone": "UTC"
}

Changes