Get coding stats
wakatime_get_statsRead-only
Aggregated coding stats for a range: total time, daily average, best day, AI vs human line changes, and the full breakdown by language, project, editor, operating system, category, dependencies and machine. If the reply says it is still calculating, call again shortly. GET /users/current/stats/{range}.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | No | Time range: last_7_days, last_30_days, last_6_months, last_year, all_time, a year (2026) or a month (2026-09). | last_7_days |
| timeout | No | Keystroke timeout in minutes (default: the user's preference). | |
| writes_only | No | Only count heartbeats that were file writes (default: the user's preference). |