---
title: "Get user trust factor"
method: GET
path: "/api/v1/users/{username}/trust_factor"
tags: ["Stats"]
---

# Get user trust factor

`GET /api/v1/users/{username}/trust_factor`

Returns the (masked) trust level and value for a user. Only the public-facing levels are ever returned: blue (0, unscored), red (1, convicted), green (2, trusted). The internal "yellow" (suspected) level is masked to blue and never exposed.

## Path parameters

- `username` string, required

## Response `200`

successful

- object
  - `trust_level` 'blue' | 'red' | 'green'
  - `trust_value` 0 | 1 | 2

## Other responses

- `404` — not found

---

[API](https://skmtc.net/hackclub/apis/hackatime-api.md) · [All operations](https://skmtc.net/hackclub/apis/hackatime-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hackclub/hackatime-api/versions/4214f8ab061e/schema)
