Gateway API to fetch online status

This looks like the most likely candidate as a ‘web page’ type request:

https://www.thethingsindustries.com/docs/reference/api/gateway_server/

GET /api/v3/gs/gateways/{gateway_id}/connection/stats

Returns a packet that looks like this:

{
  "connected_at": "0001-01-01T00:00:00Z",
  "protocol": "",
  "last_status_received_at": "0001-01-01T00:00:00Z",
  "last_status": {},
  "last_uplink_received_at": "0001-01-01T00:00:00Z",
  "uplink_count": 0,
  "last_downlink_received_at": "0001-01-01T00:00:00Z",
  "downlink_count": 0,
  "round_trip_times": {},
  "sub_bands": [],
}
1 Like