Get Visitor Stats
get_visitor_statsRetrieve unique visitor statistics for real-time counts, daily totals, or hourly breakdowns to analyze traffic patterns and user activity.
Instructions
Get unique visitor (user) statistics. Supports real-time current visitor count, daily totals, or hourly breakdown. Useful for understanding traffic patterns and user activity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date in YYYYMMDD format. Used for daily mode. Defaults to today. | |
| mode | No | realtime: current visitor count, daily: total for a date, hourly: hourly breakdown, group: total visitors for multiple agents over a time range | realtime |
| end_time | No | End time for hourly/group modes. Defaults to now. | |
| obj_hash | No | Specific agent object hash. Overrides obj_type for realtime/daily modes. | |
| obj_type | No | Object type filter (e.g., 'tomcat'). Ignored if obj_hash or obj_hashes is provided. | |
| obj_hashes | No | Comma-separated object hashes. Used for realtime (multi-agent total) and group modes. | |
| start_time | No | Start time for hourly/group modes. Defaults to 6 hours ago. |