Online count
Just the number of visitors active in the last few minutes.
Related: Visitors online now in Realtime.
Request
Path parameters
websitestringrequiredWebsite id or domain, e.g. example.com
1–253 characters
Headers
AuthorizationstringrequiredBearer followed by a site key, an account token or an OAuth access token with the analytics:read scope.
Response
Count.
{
"status": "string",
"data": {
"online": 0,
"windowMinutes": "string"
}
}Response fields
| Field | Type | Description |
|---|---|---|
| status | "ok" | |
| data | object | |
| data.online | integer | |
| data.windowMinutes | 5 |