Get Active Visitor Count
get_realtimeCheck how many visitors are active on your site right now, counting activity within the last five minutes.
Instructions
Count the visitors active on the site within the last 5 minutes. A point-in-time number with no history: it takes no date, filter, or pagination arguments. Use get_timeseries with interval hour for recent trends and get_realtime_map when you need where those visitors are. Returns data[0].visitors. Poll no more than once every 5 seconds. Requires websiteId or domain with a workspace token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | Website domain from list_websites (e.g. "example.com"). Alternative to websiteId with a workspace token. | |
| websiteId | No | Website ID from list_websites. Required with a workspace token unless domain is given; ignored with a website key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Object with status and data: data[0].visitors is the count of visitors active in the last 5 minutes. |