---
title: "GET /api/activity/reports/trends/"
method: GET
path: "/api/activity/reports/trends/"
tags: ["activity"]
---

# GET /api/activity/reports/trends/

`GET /api/activity/reports/trends/`

Return period-over-period trend series for the productivity score, focused time, in-tab activity level, and the productivity-class focused-time mix, bucketed by ``day`` (default) or ``week`` in the optional ``tz`` (else UTC), for a member (``user``) or across one or more groups (``groups``), else the whole organization. Also returns totals for the selected window and the immediately-preceding equal-length window for period-over-period deltas. Re-aggregates existing page-session spans (no new capture). Restricted to organization admins/managers and gated by the activity-tracking flag.

## Query parameters

- `organization` string, uuid, required
- `user` string, uuid
- `groups` string[]
- `start` string, date-time
- `end` string, date-time
- `granularity` 'day' | 'week'
- `tz` string

## Response `200`

---

[API](https://skmtc.dev/pixiebrix/apis/pixiebrix-api.md) · [All operations](https://skmtc.dev/pixiebrix/apis/pixiebrix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pixiebrix/pixiebrix-api/revisions/941ab9eb01d6/schema)
