---
title: "Get Cost Period Comparison"
method: GET
path: "/teams/cost/period-comparison"
tags: ["TEAMS"]
---

# Get Cost Period Comparison

`GET /teams/cost/period-comparison`

## Query parameters

- `start_date` string
- `end_date` string
- `page` integer — Page number
- `page_size` integer
- `teams` string[]
- `instance_id` string
- `order_by` 'cost' | 'percentage_spend' | 'percentage_change_from_previous_period' — Order by: cost, percentage_spend, percentage_change_from_previous_period
- `order_direction` 'asc' | 'desc' — Order direction: asc, desc
- `size` integer — Page size

## Headers

- `x-tenant` string, required

## Response `200`

Successful Response

- PageTeamSpend
  - `items` TeamSpend[], required
    - `team` string, required
    - `team_spends` number, required
    - `percentage_spend` number, nullable
    - `percentage_change_from_previous_period` number, nullable
  - `total` integer, nullable, required
  - `page` integer, nullable, required
  - `size` integer, nullable, required
  - `pages` integer, nullable

## Other responses

- `400` — Invalid data
- `403` — Not supported for public user
- `422` — Validation Error

## Changes

- **2026-09-15** `8a08bdb37cfa` — 2 breaking, 5 info
  - the `query` request parameter `order_by` was restricted to a list of enum values
  - the `query` request parameter `order_direction` was restricted to a list of enum values
  - added the new enum value `asc` to the `query` request parameter `order_direction`
  - added the new enum value `cost` to the `query` request parameter `order_by`
  - …3 more

[Change history](https://skmtc.dev/myaltimate/apis/fastapi/changes/teams/cost/period-comparison/get.md)

---

[API](https://skmtc.dev/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.dev/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc.dev/myaltimate/apis/fastapi/revisions/4dfe86ff412c?raw)
