get_recent_logs
Retrieve recent coding activity logs and heartbeats from Wakapi to track development time, filter by project, and analyze programming productivity metrics.
Instructions
Get heartbeats of user for recent days (extension of heartbeats GET).
Mimics https://wakatime.com/api/v1/users/{user}/heartbeats for multiple days.
Requires ApiKeyAuth: Set header Authorization
to your API Key encoded as Base64
and prefixed with Basic
.
Args: user (str, required, default="current"): Username (or current). project_name (str, optional): Filter by project. days (int, default=7): Number of days to retrieve. limit (int, default=1000): Maximum number of heartbeats.
Returns: List of HeartbeatEntry: Each with id (str), project (str), language (str), entity (str), time (number), is_write (bool), branch (str), category (str), cursorpos (int), line_additions (int), line_deletions (int), lineno (int), lines (int), type (str), user_agent_id (str), user_id (str), machine_name_id (str), created_at (str). Sorted by time descending.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
days | No | ||
limit | No | ||
project_name | No | ||
user | No | current |