Plausible: realtime visitors
plausible_get_realtime_visitorsGet the count of unique visitors on your site in the last few minutes, with optional top pages.
Instructions
Get how many unique visitors are on the site right now (last few minutes), optionally with the pages they are viewing.
Examples:
Current visitors: {"site_id": "example.com"}
Last 15 minutes, top 10 pages: {"window_minutes": 15, "top_pages": 10}
Implemented with a Stats API v2 query over the last N minutes (UTC). Uses 1 request, or 2 when top_pages > 0.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | No | Site domain exactly as registered in Plausible, e.g. "example.com". Optional when PLAUSIBLE_DEFAULT_SITE_ID is set. | |
| top_pages | No | Also list the N most-visited pages in the window. 0 skips the extra request | |
| window_minutes | No | Look-back window in minutes (1-60). Plausible's dashboard uses 5 | |
| response_format | No | "markdown" (default) for a readable table, "json" for machine-readable rows | markdown |