What is the maximum number of months that AWS cost Explorer will forecast?

You create a forecast by selecting a future time range for your report. For more information, see . The following section discusses the accuracy of the forecasts created by Cost Explorer and how to read them.

A forecast is a prediction of how much you will use AWS services over the forecast time period that you selected. This forecast is based on your past usage. You can use a forecast to estimate your AWS bill and set alarms and budgets for based on predictions. Because forecasts are predictions, the forecasted billing amounts are estimated and might differ from your actual charges for each statement period.

Like weather forecasts, billing forecasts can vary in accuracy. Different ranges of accuracy have different prediction intervals. The higher the prediction interval, the more likely the forecast has a wider range. For example, suppose that you have a budget set to 100 dollars for a given month. An 80% prediction interval might forecast your spend between 90 and 100, with a mean of 95. The range in the prediction band is dependent on your historical spend volatility, or fluctuations. The more consistent and predictable the historical spend, the narrower the prediction range in forecast spend.

Cost Explorer forecasts have a prediction interval of 80%. If AWS doesn't have enough data to forecast an 80% prediction interval, Cost Explorer doesn't provide a forecast. This is common for accounts that have less than one full billing cycle.

Reading forecasts

How you read the Cost Explorer forecasts depends on the type of chart that you're using. Forecasts are available for both line charts and bar charts.

The 80% prediction interval appears differently on each type of chart:

  • Line charts represent the prediction interval as a set of lines that are on either side of your costs line.

  • Bar charts represent the prediction interval as two lines that are on either side of the top of your bar.

If you receive discounts, we encourage you to use Show net unblended costs when forecasting your monthly costs to include discounts. Unblended costs don't include discounts. Instead, they separate discounts into their own line item. For more information about different costs, see Cost Explorer Advanced Options.

If you use the consolidated billing feature in AWS Organizations, the forecasts are calculated with the data from all the accounts. If you add a new member account to an organization, forecasts don't include that new member account until the new spending patterns of the organization are analyzed. For more information about consolidated billing, see Consolidated billing for AWS Organizations.

Retrieves a forecast for how much Amazon Web Services predicts that you will use over the forecast time period that you select, based on your past usage.

Request Syntax

{
   "Filter": { 
      "And": [ 
         "Expression"
      ],
      "CostCategories": { 
         "Key": "string",
         "MatchOptions": [ "string" ],
         "Values": [ "string" ]
      },
      "Dimensions": { 
         "Key": "string",
         "MatchOptions": [ "string" ],
         "Values": [ "string" ]
      },
      "Not": "Expression",
      "Or": [ 
         "Expression"
      ],
      "Tags": { 
         "Key": "string",
         "MatchOptions": [ "string" ],
         "Values": [ "string" ]
      }
   },
   "Granularity": "string",
   "Metric": "string",
   "PredictionIntervalLevel": number,
   "TimePeriod": { 
      "End": "string",
      "Start": "string"
   }
}

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

The filters that you want to use to filter your forecast. The GetUsageForecast API supports filtering by the following dimensions:

  • AZ

  • INSTANCE_TYPE

  • LINKED_ACCOUNT

  • LINKED_ACCOUNT_NAME

  • OPERATION

  • {
       "ForecastResultsByTime": [ 
          { 
             "MeanValue": "string",
             "PredictionIntervalLowerBound": "string",
             "PredictionIntervalUpperBound": "string",
             "TimePeriod": { 
                "End": "string",
                "Start": "string"
             }
          }
       ],
       "Total": { 
          "Amount": "string",
          "Unit": "string"
       }
    }
    0

  • {
       "ForecastResultsByTime": [ 
          { 
             "MeanValue": "string",
             "PredictionIntervalLowerBound": "string",
             "PredictionIntervalUpperBound": "string",
             "TimePeriod": { 
                "End": "string",
                "Start": "string"
             }
          }
       ],
       "Total": { 
          "Amount": "string",
          "Unit": "string"
       }
    }
    1

  • {
       "ForecastResultsByTime": [ 
          { 
             "MeanValue": "string",
             "PredictionIntervalLowerBound": "string",
             "PredictionIntervalUpperBound": "string",
             "TimePeriod": { 
                "End": "string",
                "Start": "string"
             }
          }
       ],
       "Total": { 
          "Amount": "string",
          "Unit": "string"
       }
    }
    2

  • {
       "ForecastResultsByTime": [ 
          { 
             "MeanValue": "string",
             "PredictionIntervalLowerBound": "string",
             "PredictionIntervalUpperBound": "string",
             "TimePeriod": { 
                "End": "string",
                "Start": "string"
             }
          }
       ],
       "Total": { 
          "Amount": "string",
          "Unit": "string"
       }
    }
    3

  • {
       "ForecastResultsByTime": [ 
          { 
             "MeanValue": "string",
             "PredictionIntervalLowerBound": "string",
             "PredictionIntervalUpperBound": "string",
             "TimePeriod": { 
                "End": "string",
                "Start": "string"
             }
          }
       ],
       "Total": { 
          "Amount": "string",
          "Unit": "string"
       }
    }
    4

  • {
       "ForecastResultsByTime": [ 
          { 
             "MeanValue": "string",
             "PredictionIntervalLowerBound": "string",
             "PredictionIntervalUpperBound": "string",
             "TimePeriod": { 
                "End": "string",
                "Start": "string"
             }
          }
       ],
       "Total": { 
          "Amount": "string",
          "Unit": "string"
       }
    }
    5

  • {
       "ForecastResultsByTime": [ 
          { 
             "MeanValue": "string",
             "PredictionIntervalLowerBound": "string",
             "PredictionIntervalUpperBound": "string",
             "TimePeriod": { 
                "End": "string",
                "Start": "string"
             }
          }
       ],
       "Total": { 
          "Amount": "string",
          "Unit": "string"
       }
    }
    6

  • {
       "ForecastResultsByTime": [ 
          { 
             "MeanValue": "string",
             "PredictionIntervalLowerBound": "string",
             "PredictionIntervalUpperBound": "string",
             "TimePeriod": { 
                "End": "string",
                "Start": "string"
             }
          }
       ],
       "Total": { 
          "Amount": "string",
          "Unit": "string"
       }
    }
    7

  • {
       "ForecastResultsByTime": [ 
          { 
             "MeanValue": "string",
             "PredictionIntervalLowerBound": "string",
             "PredictionIntervalUpperBound": "string",
             "TimePeriod": { 
                "End": "string",
                "Start": "string"
             }
          }
       ],
       "Total": { 
          "Amount": "string",
          "Unit": "string"
       }
    }
    8

  • {
       "ForecastResultsByTime": [ 
          { 
             "MeanValue": "string",
             "PredictionIntervalLowerBound": "string",
             "PredictionIntervalUpperBound": "string",
             "TimePeriod": { 
                "End": "string",
                "Start": "string"
             }
          }
       ],
       "Total": { 
          "Amount": "string",
          "Unit": "string"
       }
    }
    9

  • POST / HTTP/1.1
    Host: ce.us-east-1.amazonaws.com
    x-amz-Date: 
    Authorization: AWS4-HMAC-SHA256 Credential=, SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,Signature=
    User-Agent: 
    Content-Type: application/x-amz-json-1.1
    Content-Length: 
    Connection: Keep-Alive
    X-Amz-Target: AWSInsightsIndexService.GetUsageForecast
    {
      "TimePeriod": {
        "Start":"2018-10-25",
        "End": "2018-10-27"
      },
      "Granularity": "DAILY",
      "Filter": {      
        "Dimensions": {
          "Key": "SERVICE",
          "Values": [
            "Amazon Simple Storage Service"
          ]
        }
      },
      "Metric":"USAGE_QUANTITY",
      "PredictionIntervalLevel":85
    }
    0

  • POST / HTTP/1.1
    Host: ce.us-east-1.amazonaws.com
    x-amz-Date: 
    Authorization: AWS4-HMAC-SHA256 Credential=, SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,Signature=
    User-Agent: 
    Content-Type: application/x-amz-json-1.1
    Content-Length: 
    Connection: Keep-Alive
    X-Amz-Target: AWSInsightsIndexService.GetUsageForecast
    {
      "TimePeriod": {
        "Start":"2018-10-25",
        "End": "2018-10-27"
      },
      "Granularity": "DAILY",
      "Filter": {      
        "Dimensions": {
          "Key": "SERVICE",
          "Values": [
            "Amazon Simple Storage Service"
          ]
        }
      },
      "Metric":"USAGE_QUANTITY",
      "PredictionIntervalLevel":85
    }
    1

  • POST / HTTP/1.1
    Host: ce.us-east-1.amazonaws.com
    x-amz-Date: 
    Authorization: AWS4-HMAC-SHA256 Credential=, SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,Signature=
    User-Agent: 
    Content-Type: application/x-amz-json-1.1
    Content-Length: 
    Connection: Keep-Alive
    X-Amz-Target: AWSInsightsIndexService.GetUsageForecast
    {
      "TimePeriod": {
        "Start":"2018-10-25",
        "End": "2018-10-27"
      },
      "Granularity": "DAILY",
      "Filter": {      
        "Dimensions": {
          "Key": "SERVICE",
          "Values": [
            "Amazon Simple Storage Service"
          ]
        }
      },
      "Metric":"USAGE_QUANTITY",
      "PredictionIntervalLevel":85
    }
    2

  • POST / HTTP/1.1
    Host: ce.us-east-1.amazonaws.com
    x-amz-Date: 
    Authorization: AWS4-HMAC-SHA256 Credential=, SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,Signature=
    User-Agent: 
    Content-Type: application/x-amz-json-1.1
    Content-Length: 
    Connection: Keep-Alive
    X-Amz-Target: AWSInsightsIndexService.GetUsageForecast
    {
      "TimePeriod": {
        "Start":"2018-10-25",
        "End": "2018-10-27"
      },
      "Granularity": "DAILY",
      "Filter": {      
        "Dimensions": {
          "Key": "SERVICE",
          "Values": [
            "Amazon Simple Storage Service"
          ]
        }
      },
      "Metric":"USAGE_QUANTITY",
      "PredictionIntervalLevel":85
    }
    3

  • POST / HTTP/1.1
    Host: ce.us-east-1.amazonaws.com
    x-amz-Date: 
    Authorization: AWS4-HMAC-SHA256 Credential=, SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,Signature=
    User-Agent: 
    Content-Type: application/x-amz-json-1.1
    Content-Length: 
    Connection: Keep-Alive
    X-Amz-Target: AWSInsightsIndexService.GetUsageForecast
    {
      "TimePeriod": {
        "Start":"2018-10-25",
        "End": "2018-10-27"
      },
      "Granularity": "DAILY",
      "Filter": {      
        "Dimensions": {
          "Key": "SERVICE",
          "Values": [
            "Amazon Simple Storage Service"
          ]
        }
      },
      "Metric":"USAGE_QUANTITY",
      "PredictionIntervalLevel":85
    }
    4

  • POST / HTTP/1.1
    Host: ce.us-east-1.amazonaws.com
    x-amz-Date: 
    Authorization: AWS4-HMAC-SHA256 Credential=, SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,Signature=
    User-Agent: 
    Content-Type: application/x-amz-json-1.1
    Content-Length: 
    Connection: Keep-Alive
    X-Amz-Target: AWSInsightsIndexService.GetUsageForecast
    {
      "TimePeriod": {
        "Start":"2018-10-25",
        "End": "2018-10-27"
      },
      "Granularity": "DAILY",
      "Filter": {      
        "Dimensions": {
          "Key": "SERVICE",
          "Values": [
            "Amazon Simple Storage Service"
          ]
        }
      },
      "Metric":"USAGE_QUANTITY",
      "PredictionIntervalLevel":85
    }
    5

  • POST / HTTP/1.1
    Host: ce.us-east-1.amazonaws.com
    x-amz-Date: 
    Authorization: AWS4-HMAC-SHA256 Credential=, SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,Signature=
    User-Agent: 
    Content-Type: application/x-amz-json-1.1
    Content-Length: 
    Connection: Keep-Alive
    X-Amz-Target: AWSInsightsIndexService.GetUsageForecast
    {
      "TimePeriod": {
        "Start":"2018-10-25",
        "End": "2018-10-27"
      },
      "Granularity": "DAILY",
      "Filter": {      
        "Dimensions": {
          "Key": "SERVICE",
          "Values": [
            "Amazon Simple Storage Service"
          ]
        }
      },
      "Metric":"USAGE_QUANTITY",
      "PredictionIntervalLevel":85
    }
    6

  • POST / HTTP/1.1
    Host: ce.us-east-1.amazonaws.com
    x-amz-Date: 
    Authorization: AWS4-HMAC-SHA256 Credential=, SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,Signature=
    User-Agent: 
    Content-Type: application/x-amz-json-1.1
    Content-Length: 
    Connection: Keep-Alive
    X-Amz-Target: AWSInsightsIndexService.GetUsageForecast
    {
      "TimePeriod": {
        "Start":"2018-10-25",
        "End": "2018-10-27"
      },
      "Granularity": "DAILY",
      "Filter": {      
        "Dimensions": {
          "Key": "SERVICE",
          "Values": [
            "Amazon Simple Storage Service"
          ]
        }
      },
      "Metric":"USAGE_QUANTITY",
      "PredictionIntervalLevel":85
    }
    7

Type: Expression object

Required: No

How granular you want the forecast to be. You can get 3 months of

POST / HTTP/1.1
Host: ce.us-east-1.amazonaws.com
x-amz-Date: 
Authorization: AWS4-HMAC-SHA256 Credential=, SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,Signature=
User-Agent: 
Content-Type: application/x-amz-json-1.1
Content-Length: 
Connection: Keep-Alive
X-Amz-Target: AWSInsightsIndexService.GetUsageForecast
{
  "TimePeriod": {
    "Start":"2018-10-25",
    "End": "2018-10-27"
  },
  "Granularity": "DAILY",
  "Filter": {      
    "Dimensions": {
      "Key": "SERVICE",
      "Values": [
        "Amazon Simple Storage Service"
      ]
    }
  },
  "Metric":"USAGE_QUANTITY",
  "PredictionIntervalLevel":85
}
8 forecasts or 12 months of
POST / HTTP/1.1
Host: ce.us-east-1.amazonaws.com
x-amz-Date: 
Authorization: AWS4-HMAC-SHA256 Credential=, SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,Signature=
User-Agent: 
Content-Type: application/x-amz-json-1.1
Content-Length: 
Connection: Keep-Alive
X-Amz-Target: AWSInsightsIndexService.GetUsageForecast
{
  "TimePeriod": {
    "Start":"2018-10-25",
    "End": "2018-10-27"
  },
  "Granularity": "DAILY",
  "Filter": {      
    "Dimensions": {
      "Key": "SERVICE",
      "Values": [
        "Amazon Simple Storage Service"
      ]
    }
  },
  "Metric":"USAGE_QUANTITY",
  "PredictionIntervalLevel":85
}
9 forecasts.

The GetUsageForecast operation supports only

POST / HTTP/1.1
Host: ce.us-east-1.amazonaws.com
x-amz-Date: 
Authorization: AWS4-HMAC-SHA256 Credential=, SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,Signature=
User-Agent: 
Content-Type: application/x-amz-json-1.1
Content-Length: 
Connection: Keep-Alive
X-Amz-Target: AWSInsightsIndexService.GetUsageForecast
{
  "TimePeriod": {
    "Start":"2018-10-25",
    "End": "2018-10-27"
  },
  "Granularity": "DAILY",
  "Filter": {      
    "Dimensions": {
      "Key": "SERVICE",
      "Values": [
        "Amazon Simple Storage Service"
      ]
    }
  },
  "Metric":"USAGE_QUANTITY",
  "PredictionIntervalLevel":85
}
8 and
POST / HTTP/1.1
Host: ce.us-east-1.amazonaws.com
x-amz-Date: 
Authorization: AWS4-HMAC-SHA256 Credential=, SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,Signature=
User-Agent: 
Content-Type: application/x-amz-json-1.1
Content-Length: 
Connection: Keep-Alive
X-Amz-Target: AWSInsightsIndexService.GetUsageForecast
{
  "TimePeriod": {
    "Start":"2018-10-25",
    "End": "2018-10-27"
  },
  "Granularity": "DAILY",
  "Filter": {      
    "Dimensions": {
      "Key": "SERVICE",
      "Values": [
        "Amazon Simple Storage Service"
      ]
    }
  },
  "Metric":"USAGE_QUANTITY",
  "PredictionIntervalLevel":85
}
9 granularities.

Type: String

Valid Values:

HTTP/1.1 200 OK
x-amzn-RequestId: 
Content-Type: application/x-amz-json-1.1
Content-Length: 
Date: 
{
  "ForecastResultsByTime": [
    {
      "MeanValue": "37.0786663399", 
      "PredictionIntervalLowerBound": "34.9970026341", 
      "PredictionIntervalUpperBound": "39.1603300457", 
      "TimePeriod": {
        "End": "2019-10-26", 
        "Start": "2019-10-25"
      }
    }, 
    {
      "MeanValue": "37.0786663399", 
      "PredictionIntervalLowerBound": "34.9970026341", 
      "PredictionIntervalUpperBound": "39.1603300457", 
      "TimePeriod": {
        "End": "2019-10-27", 
        "Start": "2019-10-26"
      }
    }
  ], 
  "Total": {
      "Amount": "74.1573326798", 
      "Unit": "Hrs"
  }
}
3

Required: Yes

Which metric Cost Explorer uses to create your forecast.

Valid values for a GetUsageForecast call are the following:

  • USAGE_QUANTITY

  • NORMALIZED_USAGE_AMOUNT

Type: String

Valid Values:

HTTP/1.1 200 OK
x-amzn-RequestId: 
Content-Type: application/x-amz-json-1.1
Content-Length: 
Date: 
{
  "ForecastResultsByTime": [
    {
      "MeanValue": "37.0786663399", 
      "PredictionIntervalLowerBound": "34.9970026341", 
      "PredictionIntervalUpperBound": "39.1603300457", 
      "TimePeriod": {
        "End": "2019-10-26", 
        "Start": "2019-10-25"
      }
    }, 
    {
      "MeanValue": "37.0786663399", 
      "PredictionIntervalLowerBound": "34.9970026341", 
      "PredictionIntervalUpperBound": "39.1603300457", 
      "TimePeriod": {
        "End": "2019-10-27", 
        "Start": "2019-10-26"
      }
    }
  ], 
  "Total": {
      "Amount": "74.1573326798", 
      "Unit": "Hrs"
  }
}
5

Required: Yes

AWS Cost Explorer always returns the mean forecast as a single point. You can request a prediction interval around the mean by specifying a confidence level. The higher the confidence level, the more confident Cost Explorer is about the actual value falling in the prediction interval. Higher confidence levels result in wider prediction intervals.

Type: Integer

Valid Range: Minimum value of 51. Maximum value of 99.

Required: No

The start and end dates of the period that you want to retrieve usage forecast for. The start date is included in the period, but the end date isn't included in the period. For example, if

HTTP/1.1 200 OK
x-amzn-RequestId: 
Content-Type: application/x-amz-json-1.1
Content-Length: 
Date: 
{
  "ForecastResultsByTime": [
    {
      "MeanValue": "37.0786663399", 
      "PredictionIntervalLowerBound": "34.9970026341", 
      "PredictionIntervalUpperBound": "39.1603300457", 
      "TimePeriod": {
        "End": "2019-10-26", 
        "Start": "2019-10-25"
      }
    }, 
    {
      "MeanValue": "37.0786663399", 
      "PredictionIntervalLowerBound": "34.9970026341", 
      "PredictionIntervalUpperBound": "39.1603300457", 
      "TimePeriod": {
        "End": "2019-10-27", 
        "Start": "2019-10-26"
      }
    }
  ], 
  "Total": {
      "Amount": "74.1573326798", 
      "Unit": "Hrs"
  }
}
6 is
HTTP/1.1 200 OK
x-amzn-RequestId: 
Content-Type: application/x-amz-json-1.1
Content-Length: 
Date: 
{
  "ForecastResultsByTime": [
    {
      "MeanValue": "37.0786663399", 
      "PredictionIntervalLowerBound": "34.9970026341", 
      "PredictionIntervalUpperBound": "39.1603300457", 
      "TimePeriod": {
        "End": "2019-10-26", 
        "Start": "2019-10-25"
      }
    }, 
    {
      "MeanValue": "37.0786663399", 
      "PredictionIntervalLowerBound": "34.9970026341", 
      "PredictionIntervalUpperBound": "39.1603300457", 
      "TimePeriod": {
        "End": "2019-10-27", 
        "Start": "2019-10-26"
      }
    }
  ], 
  "Total": {
      "Amount": "74.1573326798", 
      "Unit": "Hrs"
  }
}
7 and
HTTP/1.1 200 OK
x-amzn-RequestId: 
Content-Type: application/x-amz-json-1.1
Content-Length: 
Date: 
{
  "ForecastResultsByTime": [
    {
      "MeanValue": "37.0786663399", 
      "PredictionIntervalLowerBound": "34.9970026341", 
      "PredictionIntervalUpperBound": "39.1603300457", 
      "TimePeriod": {
        "End": "2019-10-26", 
        "Start": "2019-10-25"
      }
    }, 
    {
      "MeanValue": "37.0786663399", 
      "PredictionIntervalLowerBound": "34.9970026341", 
      "PredictionIntervalUpperBound": "39.1603300457", 
      "TimePeriod": {
        "End": "2019-10-27", 
        "Start": "2019-10-26"
      }
    }
  ], 
  "Total": {
      "Amount": "74.1573326798", 
      "Unit": "Hrs"
  }
}
8 is
HTTP/1.1 200 OK
x-amzn-RequestId: 
Content-Type: application/x-amz-json-1.1
Content-Length: 
Date: 
{
  "ForecastResultsByTime": [
    {
      "MeanValue": "37.0786663399", 
      "PredictionIntervalLowerBound": "34.9970026341", 
      "PredictionIntervalUpperBound": "39.1603300457", 
      "TimePeriod": {
        "End": "2019-10-26", 
        "Start": "2019-10-25"
      }
    }, 
    {
      "MeanValue": "37.0786663399", 
      "PredictionIntervalLowerBound": "34.9970026341", 
      "PredictionIntervalUpperBound": "39.1603300457", 
      "TimePeriod": {
        "End": "2019-10-27", 
        "Start": "2019-10-26"
      }
    }
  ], 
  "Total": {
      "Amount": "74.1573326798", 
      "Unit": "Hrs"
  }
}
9, then the cost and usage data is retrieved from
HTTP/1.1 200 OK
x-amzn-RequestId: 
Content-Type: application/x-amz-json-1.1
Content-Length: 
Date: 
{
  "ForecastResultsByTime": [
    {
      "MeanValue": "37.0786663399", 
      "PredictionIntervalLowerBound": "34.9970026341", 
      "PredictionIntervalUpperBound": "39.1603300457", 
      "TimePeriod": {
        "End": "2019-10-26", 
        "Start": "2019-10-25"
      }
    }, 
    {
      "MeanValue": "37.0786663399", 
      "PredictionIntervalLowerBound": "34.9970026341", 
      "PredictionIntervalUpperBound": "39.1603300457", 
      "TimePeriod": {
        "End": "2019-10-27", 
        "Start": "2019-10-26"
      }
    }
  ], 
  "Total": {
      "Amount": "74.1573326798", 
      "Unit": "Hrs"
  }
}
7 up to and including GetUsageForecast1 but not including
HTTP/1.1 200 OK
x-amzn-RequestId: 
Content-Type: application/x-amz-json-1.1
Content-Length: 
Date: 
{
  "ForecastResultsByTime": [
    {
      "MeanValue": "37.0786663399", 
      "PredictionIntervalLowerBound": "34.9970026341", 
      "PredictionIntervalUpperBound": "39.1603300457", 
      "TimePeriod": {
        "End": "2019-10-26", 
        "Start": "2019-10-25"
      }
    }, 
    {
      "MeanValue": "37.0786663399", 
      "PredictionIntervalLowerBound": "34.9970026341", 
      "PredictionIntervalUpperBound": "39.1603300457", 
      "TimePeriod": {
        "End": "2019-10-27", 
        "Start": "2019-10-26"
      }
    }
  ], 
  "Total": {
      "Amount": "74.1573326798", 
      "Unit": "Hrs"
  }
}
9. The start date must be equal to or later than the current date to avoid a validation error.

Type: DateInterval object

Required: Yes

Response Syntax

{
   "ForecastResultsByTime": [ 
      { 
         "MeanValue": "string",
         "PredictionIntervalLowerBound": "string",
         "PredictionIntervalUpperBound": "string",
         "TimePeriod": { 
            "End": "string",
            "Start": "string"
         }
      }
   ],
   "Total": { 
      "Amount": "string",
      "Unit": "string"
   }
}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

The forecasts for your query, in order. For

POST / HTTP/1.1
Host: ce.us-east-1.amazonaws.com
x-amz-Date: 
Authorization: AWS4-HMAC-SHA256 Credential=, SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,Signature=
User-Agent: 
Content-Type: application/x-amz-json-1.1
Content-Length: 
Connection: Keep-Alive
X-Amz-Target: AWSInsightsIndexService.GetUsageForecast
{
  "TimePeriod": {
    "Start":"2018-10-25",
    "End": "2018-10-27"
  },
  "Granularity": "DAILY",
  "Filter": {      
    "Dimensions": {
      "Key": "SERVICE",
      "Values": [
        "Amazon Simple Storage Service"
      ]
    }
  },
  "Metric":"USAGE_QUANTITY",
  "PredictionIntervalLevel":85
}
8 forecasts, this is a list of days. For
POST / HTTP/1.1
Host: ce.us-east-1.amazonaws.com
x-amz-Date: 
Authorization: AWS4-HMAC-SHA256 Credential=, SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,Signature=
User-Agent: 
Content-Type: application/x-amz-json-1.1
Content-Length: 
Connection: Keep-Alive
X-Amz-Target: AWSInsightsIndexService.GetUsageForecast
{
  "TimePeriod": {
    "Start":"2018-10-25",
    "End": "2018-10-27"
  },
  "Granularity": "DAILY",
  "Filter": {      
    "Dimensions": {
      "Key": "SERVICE",
      "Values": [
        "Amazon Simple Storage Service"
      ]
    }
  },
  "Metric":"USAGE_QUANTITY",
  "PredictionIntervalLevel":85
}
9 forecasts, this is a list of months.

Type: Array of ForecastResult objects

How much you're forecasted to use over the forecast period.

Type: MetricValue object

Errors

For information about the errors that are common to all actions, see Common Errors.

DataUnavailableException

The requested data is unavailable.

HTTP Status Code: 400

LimitExceededException

You made too many calls in a short period of time. Try again later.

HTTP Status Code: 400

UnresolvableUsageUnitException

Cost Explorer was unable to identify the usage unit. Provide GetUsageForecast5 filter selections that contain matching units, for example: GetUsageForecast6.

HTTP Status Code: 400

Examples

Example

The following example shows how to retrieve a forecast using the GetUsageForecast operation.

Sample Request

POST / HTTP/1.1
Host: ce.us-east-1.amazonaws.com
x-amz-Date: 
Authorization: AWS4-HMAC-SHA256 Credential=, SignedHeaders=contenttype;date;host;user-agent;x-amz-date;x-amz-target;x-amzn-requestid,Signature=
User-Agent: 
Content-Type: application/x-amz-json-1.1
Content-Length: 
Connection: Keep-Alive
X-Amz-Target: AWSInsightsIndexService.GetUsageForecast
{
  "TimePeriod": {
    "Start":"2018-10-25",
    "End": "2018-10-27"
  },
  "Granularity": "DAILY",
  "Filter": {      
    "Dimensions": {
      "Key": "SERVICE",
      "Values": [
        "Amazon Simple Storage Service"
      ]
    }
  },
  "Metric":"USAGE_QUANTITY",
  "PredictionIntervalLevel":85
}

Sample Response

HTTP/1.1 200 OK
x-amzn-RequestId: 
Content-Type: application/x-amz-json-1.1
Content-Length: 
Date: 
{
  "ForecastResultsByTime": [
    {
      "MeanValue": "37.0786663399", 
      "PredictionIntervalLowerBound": "34.9970026341", 
      "PredictionIntervalUpperBound": "39.1603300457", 
      "TimePeriod": {
        "End": "2019-10-26", 
        "Start": "2019-10-25"
      }
    }, 
    {
      "MeanValue": "37.0786663399", 
      "PredictionIntervalLowerBound": "34.9970026341", 
      "PredictionIntervalUpperBound": "39.1603300457", 
      "TimePeriod": {
        "End": "2019-10-27", 
        "Start": "2019-10-26"
      }
    }
  ], 
  "Total": {
      "Amount": "74.1573326798", 
      "Unit": "Hrs"
  }
}

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

How far into the future can AWS cost Explorer forecast spending for your account?

AWS Cost Explorer Cost Explorer allows you to choose custom date ranges to analyze up to 12 months in the past, but you can also select dates up to 12 months in the future, to get forecasted ranges for your cost.

How far back does AWS cost Explorer go?

After you enable Cost Explorer, AWS prepares the data about your costs for the current month and the last 12 months, and then calculates the forecast for the next 12 months.

What is forecasted amount in AWS?

You can use a forecast to estimate your AWS bill and set alarms and budgets for based on predictions. Because forecasts are predictions, the forecasted billing amounts are estimated and might differ from your actual charges for each statement period. Like weather forecasts, billing forecasts can vary in accuracy.

Which AWS service should be used to get a prediction of the next month's bill for the services you use?

AWS Cost Explorer enables you to view and analyze your AWS Cost and Usage Reports (AWS CUR). You can also predict your overall cost associated with AWS services in the future by creating a forecast of AWS Cost Explorer, but you can't view historical data beyond 12 months.