v23

latestOpenAPI 3.0.1raw.githubusercontent.com2026-08-0127977.1 KB
Stats

Get user project details

Returns details for a specific project. Accessible anonymously when the target user has public stats lookup enabled.

get/api/v1/users/{username}/project/{project_name}

Path parameters

usernamestring required

Username, Slack ID, or User ID

project_namestring required

Project name

Query parameters

startstring date_time
endstring date_time
start_datestring date_time
end_datestring date_time

Response

successful

namestring
total_secondsnumber
languagesstring[]
repo_urlstring nullable
total_heartbeatsinteger
first_heartbeatstring date_time nullable
last_heartbeatstring date_time nullable
most_recent_heartbeatstring date_time nullable
archivedboolean

Example response

{
  "name": "hackatime",
  "total_seconds": 14820.5,
  "languages": [
    "Ruby",
    "Svelte",
    "TypeScript"
  ],
  "repo_url": "https://github.com/hackclub/hackatime",
  "total_heartbeats": 482,
  "first_heartbeat": "2024-03-20T15:30:00Z",
  "last_heartbeat": "2024-06-06T18:45:00Z",
  "most_recent_heartbeat": "2024-06-06T18:45:00Z"
}