---
title: "Get hours"
method: GET
path: "/api/v1/authenticated/hours"
tags: ["Authenticated"]
---

# Get hours

`GET /api/v1/authenticated/hours`

Returns the total coding hours for the authenticated user.

## Query parameters

- `start_date` string
- `end_date` string

## Response `200`

successful

- object
  - `start_date` string, date
  - `end_date` string, date
  - `total_seconds` number

## Other responses

- `401` — unauthorized

## Changes

- **2026-01-27** (v1) `b6d6849481da` — 6 info
  - the endpoint scheme security `Bearer AND ApiKeyAuth` was added to the API
  - the endpoint scheme security `Bearer` was removed from the API
  - api tag `Authenticated` added
  - api tag `OAuth2-specific` removed
  - …2 more

[Change history](https://skmtc.dev/hackclub/apis/hackatime-api/changes/api/v1/authenticated/hours/get.md)

---

[API](https://skmtc.dev/hackclub/apis/hackatime-api.md) · [All operations](https://skmtc.dev/hackclub/apis/hackatime-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hackclub/hackatime-api/revisions/b6d6849481da/schema)
