Read visitors right now
get_site_realtime_visitors
Reads how many people are on a published site at this moment, as a single visitor count.
It answers that count beside published, so it says nothing about which pages they are on. A site that has never been published comes back as zero. If the count cannot be read, the call fails with an error instead of answering zero.
Each call costs 1 of the 1,200 analytics lookups access tokens share per site per hour, as Rate limits and result size explains, and nothing when the answer is already cached or the site was never published. Over that limit it fails with Access tokens, through MCP clients or the API, used their 1,200 analytics lookups for this site this hour. Wait and try again! See The live counter.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The site id. |