Stats

Get user stats

User has disabled public stats lookup

get/api/v1/users/{username}/stats

Path parameters

usernamestring required

Username, Slack ID, or User ID

Query parameters

start_datestring

Start date (YYYY-MM-DD)

end_datestring

End date (YYYY-MM-DD)

limitinteger

Limit number of results

featuresstring

Comma-separated list of features to include (e.g., languages,projects)

filter_by_projectstring

Filter results by specific project names (comma-separated)

filter_by_categorystring

Filter results by category (comma-separated)

boundary_awareboolean

Use boundary aware calculation

total_secondsboolean

Return only total seconds

Response

successful

Example response

{
  "data": {
    "total_seconds": 3600,
    "daily_average": 1800,
    "languages": [
      {
        "name": "Ruby",
        "total_seconds": 2400,
        "percent": 66.6
      }
    ],
    "projects": [
      {
        "name": "hackatime",
        "total_seconds": 3600,
        "percent": 100
      }
    ],
    "editors": [
      {
        "name": "VS Code",
        "total_seconds": 3600,
        "percent": 100
      }
    ]
  },
  "trust_factor": {
    "trust_level": "blue",
    "trust_value": 3
  }
}

Changes