---
title: "Get admin user projects"
method: GET
path: "/api/admin/v1/user/projects"
tags: ["Admin Utils"]
---

# Get admin user projects

`GET /api/admin/v1/user/projects`

Get projects for a user (Admin view).

## Query parameters

- `user_id` string

## Response `200`

successful

- object
  - `user_id` integer
  - `username` string
  - `total_projects` integer
  - `projects` object[]
    - `name` string, nullable
    - `total_heartbeats` integer
    - `total_duration` number
    - `first_heartbeat` number, nullable
    - `last_heartbeat` number, nullable
    - `languages` string[]
    - `repo` string, nullable
    - `repo_mapping_id` integer, nullable
    - `archived` boolean

## Other responses

- `404` — user not found

## Changes

- **2026-01-27** (v1) `b6d6849481da` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hackclub/apis/hackatime-api/changes/api/admin/v1/user/projects/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)
