---
title: "Get streak"
method: GET
path: "/api/v1/authenticated/streak"
tags: ["OAuth2-specific"]
---

# Get streak

`GET /api/v1/authenticated/streak`

Returns the current streak information (days coded in a row). Requires an OAuth2 access token with the `read` scope in the Bearer header.

## Response `200`

successful

- object
  - `streak_days` integer

## Other responses

- `401` — unauthorized — Returned when the OAuth access token is missing or invalid.
- `403` — insufficient scope

## Changes

- **2026-08-09** (v1) `b19b0d3a87ae` — 3 info
  - the endpoint scheme security `OAuth2` was added to the API
  - the endpoint scheme security `Bearer` was removed from the API
  - added the non-success response with the status `403`
- **2026-06-07** (v1) `10d87f00ef0b` — 4 info
  - the endpoint scheme security `Bearer` was added to the API
  - the endpoint scheme security `Bearer AND ApiKeyAuth` was removed from the API
  - api tag `OAuth2-specific` added
  - api tag `Authenticated` removed
- **2026-01-27** (v1) `b6d6849481da` — 4 info
  - the endpoint scheme security `Bearer AND ApiKeyAuth` was added to the API
  - the endpoint scheme security `Bearer` was removed from the API
  - api tag `Authenticated` added
  - api tag `OAuth2-specific` removed

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