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

# Get Cost Period Comparison

`GET /teams/cost/period-comparison`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/teams/cost/period-comparison`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## 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
    - `compute_spends` number, nullable
    - `storage_spends` 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-10-30** `77a7dface13f`: 2 info
  - added the optional property `items/items/compute_spends` to the response with the `200` status
  - added the optional property `items/items/storage_spends` to the response with the `200` status
- **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

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

---

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