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
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"
}