WakaTime Compatibility

Get daily summaries (WakaTime compatible)

Returns coding activity for an inclusive date range as WakaTime-compatible daily summaries.

get/api/hackatime/v1/users/{id}/summaries

Path parameters

idstring required

User ID or "current" (recommended). The authenticated user is resolved from the API token.

Query parameters

startstring required

Inclusive start date in YYYY-MM-DD format.

endstring required

Inclusive end date in YYYY-MM-DD format. The range may contain at most 366 days.

projectstring

Only include activity for this project.

timezonestring

Timezone used to segment days. Defaults to the user's timezone.

Response

successful

startstring date required
endstring date required

Example response

{
  "data": [
    {
      "grand_total": {
        "total_seconds": 7200,
        "hours": 2,
        "digital": "02:00:00",
        "decimal": "2.00",
        "text": "2h",
        "ai_input_tokens": 1200,
        "ai_output_tokens": 350,
        "ai_model_breakdown": [
          {
            "name": "gpt/5.6",
            "lines": 18
          }
        ]
      },
      "projects": [
        {
          "name": "hackatime",
          "total_seconds": 7200,
          "percent": 100,
          "hours": 2,
          "digital": "02:00:00",
          "decimal": "2.00",
          "text": "2h"
        }
      ],
      "range": {
        "text": "Today",
        "timezone": "America/New_York"
      }
    }
  ],
  "cumulative_total": {
    "seconds": 7200,
    "text": "2h",
    "decimal": "2.00",
    "digital": "02:00:00"
  },
  "daily_average": {
    "days_including_holidays": 1,
    "days_minus_holidays": 1,
    "seconds": 7200,
    "text": "2h"
  }
}

Changes