Get a request token

Request

curl https://checklatency.com/api/req

Response

{
  "token": "gAAAAABhZASXV2UraUPrKaIZsk9oAge86613eSaTPFxgKNF0BwRo3WYK3DoEAJuIFKbrCsy8kCdlUrpCqXIw-PYeBfBhvCV1l-Ls29KsSgSqMWugRNYDEMUhTx9BFrBJtxHtr_uIovZ7KPlJZCDvxdA3WDuI5SUNMg=="
}

Get request details

Request

curl https://checklatency.com/api/info/<TOKEN>

Response

All intervals are in seconds and all timestamps are seconds since the Unix Epoch.

{
  "query": {
    "address": "127.0.0.1",
    "port": 54321,
    "ts": 1577836800.123456
  },
  "connection": {
    "duration": 0.789012345,
    "minrtt": 0.345678,
    "mss": 1460,
    "server_retrans": 0,
    "ts": 1577836800.234567
  },
  "address": {
    "day": {
      "minrtt": 0.123456,
      "mss": 1460
    },
    "hour": {
      "minrtt": 0.234567,
      "mss": 1460
    },
    "minute": {
      "minrtt": 0.345678,
      "mss": 1460
    }
  }
}

Get request details with an implicit token

The request details are returned automatically via a temporary redirect.

Request

curl -L https://checklatency.com/api/info

Response

See above.