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

## Changes

- **2026-06-07** (v1) `10d87f00ef0b` — 6 warning, 3 info
  - added the new `0.00` enum value to the `trust_value` response property for the response status `200`
  - added the new `1.00` enum value to the `trust_value` response property for the response status `200`
  - added the new `2.00` enum value to the `trust_value` response property for the response status `200`
  - added the new `blue` enum value to the `trust_level` response property for the response status `200`
  - …5 more
- **2026-01-27** (v1) `b6d6849481da` — 9 info
  - the endpoint scheme security `Bearer AND ApiKeyAuth` was added to the API
  - api tag `Users` added
  - api tag `Stats` removed
  - removed the `0.00` enum value from the `trust_value` response property for the response status `200`
  - …5 more

[Change history](https://skmtc.dev/hackclub/apis/hackatime-api/changes/api/v1/users/:username/trust_factor/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/172c35ec816f/schema)
