---
title: "Get Team Daily Activity Aggregated"
method: GET
path: "/team/daily/activity/aggregated"
tags: ["team management"]
---

# Get Team Daily Activity Aggregated

`GET /team/daily/activity/aggregated`

Aggregated daily activity for teams without pagination, including per-team breakdown.

One SQL GROUPING SETS pass returns every day in the range regardless of row
volume, so callers never reassemble pages. Same response shape as the
paginated endpoint with page metadata pinned to a single page.

Args:
    team_ids (Optional[str]): Comma-separated list of team IDs to filter by. If not provided, returns data for all teams.
    start_date (Optional[str]): Start date for the activity period (YYYY-MM-DD).
    end_date (Optional[str]): End date for the activity period (YYYY-MM-DD).
    model (Optional[str]): Filter by model name.
    api_key (Optional[str]): Filter by API key.
    exclude_team_ids (Optional[str]): Comma-separated list of team IDs to exclude.
    timezone (Optional[int]): Timezone offset in minutes from UTC, matching JavaScript's Date.getTimezoneOffset() convention.
Returns:
    SpendAnalyticsPaginatedResponse: Response containing all daily activity data for the range.

## Query parameters

- `team_ids` string, nullable
- `start_date` string, nullable
- `end_date` string, nullable
- `model` string, nullable
- `api_key` string, nullable
- `exclude_team_ids` string, nullable
- `timezone` integer, nullable

## Response `200`

Successful Response

- SpendAnalyticsPaginatedResponse
  - `results` DailySpendData[], required
    - `date` string, date, required
    - `metrics` SpendMetrics, required
      - `spend` number
      - `flat_cost` number
      - `prompt_tokens` integer
      - `completion_tokens` integer
      - `cache_read_input_tokens` integer
      - `cache_creation_input_tokens` integer
      - `compression_saved_tokens` integer
      - `compression_savings_spend` number
      - `prompt_caching_savings_spend` number
      - `gateway_injected_caching_savings_spend` number
      - `autorouter_savings_spend` number
      - `total_tokens` integer
      - `successful_requests` integer
      - `failed_requests` integer
      - `api_requests` integer
    - `breakdown` BreakdownMetrics — Breakdown of spend by different dimensions
      - `mcp_servers` object
      - `models` object
      - `model_groups` object
      - `providers` object
      - `endpoints` object
      - `api_keys` object
      - `entities` object
  - `metadata` DailySpendMetadata
    - `total_spend` number
    - `total_flat_cost` number
    - `total_prompt_tokens` integer
    - `total_completion_tokens` integer
    - `total_tokens` integer
    - `total_api_requests` integer
    - `total_successful_requests` integer
    - `total_failed_requests` integer
    - `total_cache_read_input_tokens` integer
    - `total_cache_creation_input_tokens` integer
    - `total_compression_saved_tokens` integer
    - `total_compression_savings_spend` number
    - `total_prompt_caching_savings_spend` number
    - `total_gateway_injected_caching_savings_spend` number
    - `total_autorouter_savings_spend` number
    - `page` integer
    - `total_pages` integer
    - `has_more` boolean

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-18** `082b5fabd909` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/flock/apis/litellm-api/changes/team/daily/activity/aggregated/get.md)

---

[API](https://skmtc.dev/flock/apis/litellm-api.md) · [All operations](https://skmtc.dev/flock/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flock/apis/litellm-api/revisions/7ed45f30a5f0?raw)
