Get durations for a day
wakatime_get_durationsRead-only
The coding sessions (durations) of one day, each with start time, length in seconds and the project (or other slice) it belongs to. Needs the read_heartbeats scope for OAuth tokens. GET /users/current/durations.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | The day, yyyy-mm-dd, in the user's timezone. | |
| project | No | Only durations for this project. | |
| timeout | No | Keystroke timeout in minutes (default: the user's preference). | |
| branches | No | Comma separated branch names; needs project. | |
| slice_by | No | What to slice durations by (default project). | |
| timezone | No | IANA timezone such as Europe/Berlin (default: the user's timezone). | |
| writes_only | No | Only count heartbeats that were file writes (default: the user's preference). |