# AWS Cost Explorer Service API

> AWS Cost Explorer Service API on Apizie: 38 endpoints (Creates a new cost anomaly detection monitor with the requested type and monitor specification., Adds an alert subscription to a cost anomaly detection monitor. You can use each subscription to define…, Creates a new Cost Category with the requested name and rules., Deletes a cost anomaly monitor., …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://zieapi.vercel.app/v1/cloud:amazonaws-ce/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `cloud:amazonaws-ce`
- Category: Cloud
- Status: byok
- Source: https://github.com/mermade/aws2openapi
- Page: https://zieapi.vercel.app/api/cloud/amazonaws-ce
- OpenAPI: https://zieapi.vercel.app/api/cloud/amazonaws-ce/openapi.json

You can use the Cost Explorer API to programmatically query your cost and usage data. You can query for aggregated data such as total monthly costs or total daily usage. You can also query for granular data. This might…

## Endpoints

### Creates a new cost anomaly detection monitor with the requested type and monitor specification.
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/create-anomaly-monitor` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Adds an alert subscription to a cost anomaly detection monitor. You can use each subscription to define…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/create-anomaly-subscription` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Creates a new Cost Category with the requested name and rules.
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/create-cost-category-definition` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Deletes a cost anomaly monitor.
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/delete-anomaly-monitor` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Deletes a cost anomaly subscription.
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/delete-anomaly-subscription` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Deletes a Cost Category. Expenses from this month going forward will no longer be categorized with this Cost…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/delete-cost-category-definition` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Returns the name, Amazon Resource Name (ARN), rules, definition, and effective dates of a Cost Category…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/describe-cost-category-definition` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Retrieves all of the cost anomalies detected on your account during the time period that's specified by the…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/get-anomalies` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Retrieves the cost anomaly monitor definitions for your account. You can filter using a list of cost anomaly…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/get-anomaly-monitors` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Retrieves the cost anomaly subscription objects for your account. You can filter using a list of cost…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/get-anomaly-subscriptions` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Retrieves cost and usage metrics for your account. You can specify which cost and usage-related metric that…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/get-cost-and-usage` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Retrieves cost and usage metrics with resources for your account. You can specify which cost and…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/get-cost-and-usage-with-resources` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Retrieves an array of Cost Category names and values incurred cost. If some Cost Category names and values…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/get-cost-categories` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Retrieves a forecast for how much Amazon Web Services predicts that you will spend over the forecast time…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/get-cost-forecast` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Retrieves all available filter values for a specified filter over a period of time. You can search the…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/get-dimension-values` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Retrieves the reservation coverage for your account, which you can use to see how much of your Amazon…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/get-reservation-coverage` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Gets recommendations for reservation purchases. These recommendations might help you to reduce your costs.…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/get-reservation-purchase-recommendation` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Retrieves the reservation utilization for your account. Management account in an organization have access to…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/get-reservation-utilization` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Creates recommendations that help you save cost by identifying idle and underutilized Amazon EC2 instances.…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/get-rightsizing-recommendation` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Retrieves the details for a Savings Plan recommendation. These details include the hourly data-points that…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/get-savings-plan-purchase-recommendation-details` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Retrieves the Savings Plans covered for your account. This enables you to see how much of your cost is…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/get-savings-plans-coverage` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| MaxResults | integer | no | Pagination limit |
| NextToken | string | no | Pagination token |
| body | object | no | JSON request body |

### Retrieves the Savings Plans recommendations for your account. First use…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/get-savings-plans-purchase-recommendation` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Retrieves the Savings Plans utilization for your account across date ranges with daily or monthly…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/get-savings-plans-utilization` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Retrieves attribute data along with aggregate utilization and savings data for a given time period. This…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/get-savings-plans-utilization-details` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| MaxResults | integer | no | Pagination limit |
| NextToken | string | no | Pagination token |
| body | object | no | JSON request body |

### Queries for available tag keys and tag values for a specified period. You can search the tag values for an…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/get-tags` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Retrieves a forecast for how much Amazon Web Services predicts that you will use over the forecast time…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/get-usage-forecast` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Get a list of cost allocation tags. All inputs in the API are optional and serve as filters. By default, all…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/list-cost-allocation-tags` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| MaxResults | integer | no | Pagination limit |
| NextToken | string | no | Pagination token |
| body | object | no | JSON request body |

### Returns the name, Amazon Resource Name (ARN), NumberOfRules and effective dates of all Cost Categories…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/list-cost-category-definitions` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| MaxResults | integer | no | Pagination limit |
| NextToken | string | no | Pagination token |
| body | object | no | JSON request body |

### Retrieves a list of your historical recommendation generations within the past 30 days.
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/list-savings-plans-purchase-recommendation-generation` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Returns a list of resource tags associated with the resource specified by the Amazon Resource Name (ARN).
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/list-tags-for-resource` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Modifies the feedback property of a given cost anomaly.
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/provide-anomaly-feedback` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Requests a Savings Plans recommendation generation. This enables you to calculate a fresh set of Savings…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/start-savings-plans-purchase-recommendation-generation` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### An API operation for adding one or more tags (key-value pairs) to a resource. You can use the TagResource…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/tag-resource` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Removes one or more tags from a resource. Specify only tag keys in your request. Don't specify the value.
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/untag-resource` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Updates an existing cost anomaly monitor. The changes made are applied going forward, and doesn't change…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/update-anomaly-monitor` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Updates an existing cost anomaly subscription. Specify the fields that you want to update. Omitted fields…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/update-anomaly-subscription` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Updates status for cost allocation tags in bulk, with maximum batch size of 20. If the tag status that's…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/update-cost-allocation-tags-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Updates an existing Cost Category. Changes made to the Cost Category rules will be used to categorize the…
`POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/update-cost-category-definition` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

## Example
```
curl "https://zieapi.vercel.app/v1/cloud:amazonaws-ce/create-anomaly-monitor" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the AWS Cost Explorer Service API?
Create a free Apizie key, then send POST https://zieapi.vercel.app/v1/cloud:amazonaws-ce/create-anomaly-monitor with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the AWS Cost Explorer Service API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. AWS Cost Explorer Service itself also needs your own key from amazonaws.com.

### Can AI agents use the AWS Cost Explorer Service API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key cloud:amazonaws-ce.

### What is the status of the AWS Cost Explorer Service API?
Needs your own provider key (bring your own key)
