Live Traffic Counter
Returns a point-in-time request-rate snapshot for your active account: the request count over the trailing minute, the count over the trailing five minutes, and the derived requests-per-second. Powers the dashboard "live counter" pill that polls every few seconds. For aggregate window metrics use /traffic/metrics; for a streaming feed use /traffic/metrics/realtime.
Requires the traffic-inspector read permission on the active account.
Query parameters
None. The two windows (last 1 minute and last 5 minutes) are fixed and not configurable.
Response (200 OK)
requests_per_second number
The last-minute request count divided by 60. A simple rate over the trailing minute, not an instantaneous gauge.
last_minute int64
Number of requests recorded in the last 60 seconds.
last_5_minutes int64
Number of requests recorded in the last 300 seconds.
as_of string (RFC 3339)
UTC timestamp the snapshot was computed at.
Errors
401 Unauthorized
Missing auth.
403 Forbidden
No active account, not a member, or missing the traffic-inspector read permission.
Request
curl "https://api.ngris.com/v1/traffic/live" \
-H "X-API-KEY: <your_api_key>"
Python — poll the live counter
import time, requests
while True:
r = requests.get(
"https://api.ngris.com/v1/traffic/live",
headers={"X-API-KEY": "<your_api_key>"},
).json()
print(f"{r['requests_per_second']:.1f} req/s ({r['last_minute']} in last min)")
time.sleep(5)
Response — 200 OK
{
"requests_per_second": 11.85,
"last_minute": 711,
"last_5_minutes": 3480,
"as_of": "2026-06-15T12:00:00Z"
}