List Cloud Cost Management tag metadata months

Note: This endpoint is in preview and is subject to change. If you have any feedback, contact Datadog support.

GET https://api.ap1.datadoghq.com/api/v2/cost/tag_metadata/monthshttps://api.ap2.datadoghq.com/api/v2/cost/tag_metadata/monthshttps://api.datadoghq.eu/api/v2/cost/tag_metadata/monthshttps://api.ddog-gov.com/api/v2/cost/tag_metadata/monthshttps://api.us2.ddog-gov.com/api/v2/cost/tag_metadata/monthshttps://api.datadoghq.com/api/v2/cost/tag_metadata/monthshttps://api.us3.datadoghq.com/api/v2/cost/tag_metadata/monthshttps://api.us5.datadoghq.com/api/v2/cost/tag_metadata/months

Overview

List months that have Cloud Cost Management tag metadata for a given provider, ordered most-recent first. The response is capped at 36 months. This endpoint requires the cloud_cost_management_read permission.

OAuth apps require the cloud_cost_management_read authorization scope to access this endpoint.

Arguments

Query Strings

Name

Type

Description

filter[provider] [required]

string

Provider to scope the query to. Use the value of the providername tag in CCM (for example, aws, azure, gcp, Oracle, Confluent Cloud, Snowflake). For costs uploaded through the Custom Costs API, use custom. Values are case-sensitive.

Response

OK

List of months that have Cloud Cost Management tag metadata for the requested provider, ordered most-recent first and capped at 36 months.

Expand All

Field

Type

Description

data [required]

[object]

List of months that have tag metadata available.

id [required]

string

The month, in YYYY-MM format.

type [required]

enum

Type of the Cloud Cost Management tag metadata month resource. Allowed enum values: cost_tag_metadata_month

default: cost_tag_metadata_month

{
  "data": [
    {
      "id": "2026-04",
      "type": "cost_tag_metadata_month"
    },
    {
      "id": "2026-03",
      "type": "cost_tag_metadata_month"
    }
  ]
}

Bad Request

API error response.

Expand All

Field

Type

Description

errors [required]

[string]

A list of errors.

{
  "errors": [
    "Bad Request"
  ]
}

Forbidden

API error response.

Expand All

Field

Type

Description

errors [required]

[string]

A list of errors.

{
  "errors": [
    "Bad Request"
  ]
}

Too many requests

API error response.

Expand All

Field

Type

Description

errors [required]

[string]

A list of errors.

{
  "errors": [
    "Bad Request"
  ]
}

Code Example

                  # Required query arguments
export filter[provider]="aws"
# Curl command
curl -X GET "https://api.ap1.datadoghq.com"https://api.ap2.datadoghq.com"https://api.datadoghq.eu"https://api.ddog-gov.com"https://api.us2.ddog-gov.com"https://api.datadoghq.com"https://api.us3.datadoghq.com"https://api.us5.datadoghq.com/api/v2/cost/tag_metadata/months?filter[provider]=${filter[provider]}" \ -H "Accept: application/json" \ -H "DD-API-KEY: ${DD_API_KEY}" \ -H "DD-APPLICATION-KEY: ${DD_APP_KEY}"