GET
/compat/wakatime/v1/users/{user}/stats/{range}Get coding-activity statistics for a user
Retrieves coding-activity statistics for a user over a selected interval. Use the optional query parameters to filter the statistics by project, language, editor, operating system, machine, or project label.
userstringrequired
The user ID to retrieve statistics for, or `current` to use the authenticated user.
rangestringrequired
The statistics interval. Listed values include today, yesterday, week, month, year, 7_days, last_7_days, 30_days, last_30_days, 6_months, last_6_months, and 12_months.
projectstringoptional
A project name to filter the statistics by.
languagestringoptional
A programming language to filter the statistics by.
editorstringoptional
An editor to filter the statistics by.
operating_systemstringoptional
An operating system to filter the statistics by.
machinestringoptional
A machine name to filter the statistics by.
labelstringoptional
A project label to filter the statistics by.
200Returns a statistics object containing coding-activity totals and breakdowns, including languages, projects, editors, machines, and operating systems.
dataobjectoptional
Error handling
The user path parameter must identify the user whose statistics you want, or be set to current. range must be a supported interval; listed values include today, yesterday, week, month, year, 7_days, last_7_days, 30_days, last_30_days, 6_months, last_6_months, and 12_months.