Stats
Get details for multiple projects
Returns details for multiple projects, or all projects in a time range. Accessible anonymously when the target user has public stats lookup enabled.
get/api/v1/users/{username}/projects/details
Path parameters
usernamestring required
Username, Slack ID, or User ID
Query parameters
projectsstring
Comma-separated project names
sincestring date_time
Start time (ISO 8601) for project discovery
untilstring date_time
End time (ISO 8601) for project discovery
until_datestring date_time
End time (ISO 8601) for project discovery
startstring date_time
endstring date_time
start_datestring date_time
end_datestring date_time
Response
successful
Example response
{
"projects": [
{
"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"
}
]
}