Streams

Get viewer and traffic totals

GET/streams/stats/

read Read: looks, changes nothing. Scopes

What the dashboard's top bar shows: connections and lines watching now and, for accounts that see the whole panel, streams online, server traffic and whether "Under attack" mode is on. A reseller gets only its own lines' connections.

Response

200 OK

  • active_connectionsintegerrequired
  • online_usersintegerrequired

    Lines watching now.

  • active_streamsinteger
  • bytes_in_totalinteger
  • bytes_out_totalinteger
  • bytes_in_rate_bpsinteger
  • bytes_out_rate_bpsinteger
  • under_attackobjectcan be null
    • sincestring (date-time)requiredcan be null
    • endsstring (date-time)requiredcan be null
    • runningbooleanrequired

Errors

  • 401 No credential, or one that is wrong, expired or revoked.
  • 403 The account, or the key's or app's scopes, may not do this.
  • 429 Slow down: wait the seconds in the Retry-After header, then try again.

What each error means