Get live visitors is a WordPress ability from Burst Statistics — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Get live visitors
Read-onlyReturn the current number of visitors active on the site right now.
Requires the Burst Statistics plugin on WordPress 6.6+. All abilities register only when the 'Enable Abilities API' setting is turned on in Burst, and the current user needs the 'manage_burst_statistics' capability. The sales-data and subscriptions-data abilities additionally require Burst Pro (the BURST_PRO constant) to be active.
What it does
This ability calls Burst's live visitor tracker and returns a single integer count of visitors who are currently active on the site. It takes no input and always returns a non-negative number. Because it reflects real-time activity rather than a historical report, an AI assistant can use it to answer immediate 'how many people are on my site right now' questions without opening the Burst dashboard.
See it in action
You ask your AI assistant
"How many people are currently browsing my website?"
Returns
An object with a single 'visitors' field: the current integer count of live visitors (minimum 0).
Permission
The current user must have the 'manage_burst_statistics' capability (cron jobs, WP-CLI, and authenticated MainWP requests with the capability are also allowed). The ability is registered only when Burst's 'Enable Abilities API' setting is on.
More Burst Statistics abilities
Get data
Fetch Burst analytics data as either an insights time series or a specific datatable (pages, referrers, countries, campaigns, search terms, and more).
Get license notices
Return the current Burst Pro license status and any related notices.
Get live traffic
List the individual sessions currently active on the site, along with the pages they're viewing.
Get sales data
Return ecommerce sales metrics — products, sale counts, and revenue — for a date range (Burst Pro only).
Get subscriptions data
Return ecommerce subscription metrics — active, canceled, and trialling subscribers plus recurring revenue — for a date range (Burst Pro only).
Get tasks
Return Burst's current onboarding/setup task list and each task's completion status.