---
title: "Get commitments savings (timeseries)"
method: GET
path: "/api/v2/cost/commitments/savings/timeseries"
tags: ["Cloud Cost Management"]
---

# Get commitments savings (timeseries)

`GET /api/v2/cost/commitments/savings/timeseries`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/cost/commitments/savings/timeseries`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token` scopes: `cloud_cost_management_read`

Get timeseries savings metrics for cloud commitment programs, including actual cost, on-demand equivalent cost, realized savings, and effective savings rate over time.

## Query parameters

- `provider` 'aws' | 'azure', required: Cloud provider for commitment programs.
- `product` string, required
- `start` integer, required
- `end` integer, required
- `filterBy` string

## Response `200`

OK

- CommitmentsSavingsTimeseriesResponse: Response containing timeseries savings metrics for cloud commitment programs.
  - `actual_cost` CommitmentsTimeseriesMetric, required: A timeseries metric containing timestamps, series values, and optional unit metadata.
    - `series` CommitmentsTimeseriesSeries, required: Timeseries data as a map of series names to their corresponding value arrays.
    - `times` integer[], required: Unix timestamps in seconds for the timeseries data points.
    - `unit` CommitmentsUnit: Unit metadata for a numeric metric.
      - `family` string, required: The unit family (for example, percentage or money).
      - `id` integer, required: The unit identifier.
      - `name` string, required: The unit name (for example, percent or dollar).
      - `plural` string, required: The plural form of the unit name.
      - `scale_factor` number, double, required: The scale factor for the unit.
      - `short_name` string, required: The abbreviated unit name (for example, % or $).
  - `effective_savings_rate` CommitmentsTimeseriesMetric, required: A timeseries metric containing timestamps, series values, and optional unit metadata.
    - `series` CommitmentsTimeseriesSeries, required: Timeseries data as a map of series names to their corresponding value arrays.
    - `times` integer[], required: Unix timestamps in seconds for the timeseries data points.
    - `unit` CommitmentsUnit: Unit metadata for a numeric metric.
      - `family` string, required: The unit family (for example, percentage or money).
      - `id` integer, required: The unit identifier.
      - `name` string, required: The unit name (for example, percent or dollar).
      - `plural` string, required: The plural form of the unit name.
      - `scale_factor` number, double, required: The scale factor for the unit.
      - `short_name` string, required: The abbreviated unit name (for example, % or $).
  - `on_demand_equivalent_cost` CommitmentsTimeseriesMetric, required: A timeseries metric containing timestamps, series values, and optional unit metadata.
    - `series` CommitmentsTimeseriesSeries, required: Timeseries data as a map of series names to their corresponding value arrays.
    - `times` integer[], required: Unix timestamps in seconds for the timeseries data points.
    - `unit` CommitmentsUnit: Unit metadata for a numeric metric.
      - `family` string, required: The unit family (for example, percentage or money).
      - `id` integer, required: The unit identifier.
      - `name` string, required: The unit name (for example, percent or dollar).
      - `plural` string, required: The plural form of the unit name.
      - `scale_factor` number, double, required: The scale factor for the unit.
      - `short_name` string, required: The abbreviated unit name (for example, % or $).
  - `realized_savings` CommitmentsTimeseriesMetric, required: A timeseries metric containing timestamps, series values, and optional unit metadata.
    - `series` CommitmentsTimeseriesSeries, required: Timeseries data as a map of series names to their corresponding value arrays.
    - `times` integer[], required: Unix timestamps in seconds for the timeseries data points.
    - `unit` CommitmentsUnit: Unit metadata for a numeric metric.
      - `family` string, required: The unit family (for example, percentage or money).
      - `id` integer, required: The unit identifier.
      - `name` string, required: The unit name (for example, percent or dollar).
      - `plural` string, required: The plural form of the unit name.
      - `scale_factor` number, double, required: The scale factor for the unit.
      - `short_name` string, required: The abbreviated unit name (for example, % or $).

## Other responses

- `400`: Bad Request
- `429`: Too many requests

---

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