---
title: Get a budget's custom forecast
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > API Reference > Cloud Cost Management
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Get a budget's custom forecast{% #get-a-budgets-custom-forecast %}
Copy pageCopied
{% tab title="v2" %}

| Datadog site      | API endpoint                                                                     |
| ----------------- | -------------------------------------------------------------------------------- |
| ap1.datadoghq.com | GET https://api.ap1.datadoghq.com/api/v2/cost/budget/{budget_id}/custom-forecast |
| ap2.datadoghq.com | GET https://api.ap2.datadoghq.com/api/v2/cost/budget/{budget_id}/custom-forecast |
| app.datadoghq.eu  | GET https://api.datadoghq.eu/api/v2/cost/budget/{budget_id}/custom-forecast      |
| app.ddog-gov.com  | GET https://api.ddog-gov.com/api/v2/cost/budget/{budget_id}/custom-forecast      |
| us2.ddog-gov.com  | GET https://api.us2.ddog-gov.com/api/v2/cost/budget/{budget_id}/custom-forecast  |
| uk1.datadoghq.com | GET https://api.uk1.datadoghq.com/api/v2/cost/budget/{budget_id}/custom-forecast |
| app.datadoghq.com | GET https://api.datadoghq.com/api/v2/cost/budget/{budget_id}/custom-forecast     |
| us3.datadoghq.com | GET https://api.us3.datadoghq.com/api/v2/cost/budget/{budget_id}/custom-forecast |
| us5.datadoghq.com | GET https://api.us5.datadoghq.com/api/v2/cost/budget/{budget_id}/custom-forecast |

### Overview

Get the custom forecast for a budget.

### Arguments

#### Path Parameters

| Name                        | Type   | Description |
| --------------------------- | ------ | ----------- |
| budget_id [*required*] | string | Budget id.  |

### Response

{% tab title="200" %}
OK
{% tab title="Model" %}
Response object containing the custom forecast for a budget.

| Parent field | Field                         | Type     | Description                                                                                                 |
| ------------ | ----------------------------- | -------- | ----------------------------------------------------------------------------------------------------------- |
|              | data [*required*]        | object   | Custom forecast resource wrapper in a response.                                                             |
| data         | attributes [*required*]  | object   | Attributes of a custom forecast.                                                                            |
| attributes   | budget_uid [*required*]  | string   | The UUID of the budget that this custom forecast belongs to.                                                |
| attributes   | created_at [*required*]  | int64    | Timestamp the custom forecast was created, in Unix milliseconds.                                            |
| attributes   | created_by [*required*]  | string   | The id of the user that created the custom forecast.                                                        |
| attributes   | entries [*required*]     | [object] | Monthly custom forecast entries.                                                                            |
| entries      | amount [*required*]      | double   | Forecast amount for the month.                                                                              |
| entries      | month [*required*]       | int64    | Month the custom forecast entry applies to, in `YYYYMM` format.                                             |
| entries      | tag_filters [*required*] | [object] | Tag filters that scope this custom forecast entry to specific resources.                                    |
| tag_filters  | tag_key [*required*]     | string   | The tag key to filter on.                                                                                   |
| tag_filters  | tag_value [*required*]   | string   | The tag value to filter on.                                                                                 |
| attributes   | updated_at [*required*]  | int64    | Timestamp the custom forecast was last updated, in Unix milliseconds.                                       |
| attributes   | updated_by [*required*]  | string   | The id of the user that last updated the custom forecast.                                                   |
| data         | id [*required*]          | string   | The unique identifier of the custom forecast.                                                               |
| data         | type [*required*]        | enum     | The type of the custom forecast resource. Must be `custom_forecast`. Allowed enum values: `custom_forecast` |

{% /tab %}

{% tab title="Example" %}

```json
{
  "data": {
    "attributes": {
      "budget_uid": "00000000-0000-0000-0000-000000000001",
      "created_at": 1738258683590,
      "created_by": "00000000-0a0a-0a0a-aaa0-00000000000a",
      "entries": [
        {
          "amount": 400,
          "month": 202501,
          "tag_filters": [
            {
              "tag_key": "service",
              "tag_value": "ec2"
            }
          ]
        }
      ],
      "updated_at": 1738258683590,
      "updated_by": "00000000-0a0a-0a0a-aaa0-00000000000a"
    },
    "id": "11111111-1111-1111-1111-111111111111",
    "type": "custom_forecast"
  }
}
```

{% /tab %}

{% /tab %}

{% tab title="400" %}
Bad Request
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

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

{% /tab %}

{% /tab %}

{% tab title="404" %}
Not Found
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

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

{% /tab %}

{% /tab %}

{% tab title="429" %}
Too many requests
{% tab title="Model" %}
API error response.

| Field                    | Type     | Description       |
| ------------------------ | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |

{% /tab %}

{% tab title="Example" %}

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

{% /tab %}

{% /tab %}

### Code Example

##### 
                  \# Path parameters export budget_id="CHANGE_ME" \# Curl command curl -X GET "https://api.datadoghq.com/api/v2/cost/budget/${budget_id}/custom-forecast" \
-H "Accept: application/json" \
-H "DD-API-KEY: ${DD_API_KEY}" \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY}" 
                
{% /tab %}
