Get insight
wakatime_get_insightRead-only
One WakaTime insight for a range: stats, weekdays (average per weekday), days (per-day totals, optionally one weekday), ai_days, best_day, daily_average, or a breakdown by projects, languages, editors, categories, machines or operating_systems. GET /users/current/insights/{insight_type}/{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_year |
| timeout | No | Keystroke timeout in minutes (default: the user's preference). | |
| weekday | No | Only for insight_type 'days': a weekday, 0-6 or monday..sunday. | |
| writes_only | No | Only count heartbeats that were file writes (default: the user's preference). | |
| insight_type | Yes |