---
title: "List focus time"
method: GET
path: "/v2/organizations/{organization_id}/insights/focus_time"
tags: ["insights"]
---

# List focus time

`GET /v2/organizations/{organization_id}/insights/focus_time`

## Request

- Base URL: `https://api.hubstaff.com`
- URL: `https://api.hubstaff.com/v2/organizations/{organization_id}/insights/focus_time`
- Auth: OAuth 2
  - Authorization code: `https://account.hubstaff.com/authorizations/new`
  - Token URL: `https://account.hubstaff.com/access_tokens` scopes: `hubstaff:read`, `hubstaff:write`
- TypeScript: <https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/docs/v2/organizations/:organization_id/insights/focus_time/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns focus session totals and tracked seconds per date, user, and project.
Requires the Insights add-on and organization owner or manager access.
Rate limited to 120 requests per hour, separately from the global API limit.

## Path parameters

- `organization_id` integer, required

## Query parameters

- `date[start]` string, date, required
- `date[stop]` string, date, required
- `user_ids` integer[]
- `project_ids` integer[]
- `team_ids` integer[]
- `remote_vs_office` boolean
- `time_zone` string
- `cursor` string
- `page_limit` integer

## Response `200`

A list of focus time rows

- object
  - `hubstaff_public_v2_entities_insights_focus_times` HubstaffPublicV2EntitiesInsightsFocusTime[]
    - `location` string: Member's dominant tracked location that day (remote | on_site | unknown); only present with remote_vs_office
    - `date` string, date, required: Organization-timezone date
    - `user_id` integer, required: User ID
    - `project_id` integer, required: Project ID
    - `focus_seconds` integer, required: Time in qualifying focus sessions
    - `focus_sessions_count` integer, required: Number of focus sessions
    - `tracked` integer, required: Total tracked seconds (focus % denominator)

## Other responses

- `400`: Invalid parameters
- `401`: Unauthorized
- `403`: API access is only for organizations on an active plan
- `404`: Could not find record
- `429`: Rate limit exceeded

## Changes

- **2026-11-06** `c6b90e4e4bdc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/changes/v2/organizations/:organization_id/insights/focus_time/get.md)

---

[API](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api.md) - [All operations](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/revisions/c6b90e4e4bdc?raw)
