Get Cost And Usage Example

BillingCost ManagementCost ExplorerBudgetsCost OptimizationFinOpsAmazon Web Services

Get Cost And Usage Example is an example object payload from Amazon Billing And Cost Management, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "POST",
    "url": "https://ce.us-east-1.amazonaws.com/GetCostAndUsage",
    "headers": {
      "Content-Type": "application/x-amz-json-1.1",
      "X-Amz-Target": "AWSInsightsIndexService.GetCostAndUsage",
      "Authorization": "AWS4-HMAC-SHA256 Credential=..."
    },
    "body": {
      "TimePeriod": {
        "Start": "2026-01-01",
        "End": "2026-04-01"
      },
      "Granularity": "MONTHLY",
      "Metrics": ["UnblendedCost", "UsageQuantity"],
      "GroupBy": [
        { "Type": "DIMENSION", "Key": "SERVICE" }
      ],
      "Filter": {
        "Dimensions": {
          "Key": "LINKED_ACCOUNT",
          "Values": ["123456789012"]
        }
      }
    }
  },
  "response": {
    "status": 200,
    "body": {
      "ResultsByTime": [
        {
          "TimePeriod": { "Start": "2026-01-01", "End": "2026-02-01" },
          "Total": {},
          "Groups": [
            {
              "Keys": ["Amazon EC2"],
              "Metrics": {
                "UnblendedCost": { "Amount": "1234.56", "Unit": "USD" },
                "UsageQuantity": { "Amount": "8760.00", "Unit": "Hrs" }
              }
            },
            {
              "Keys": ["Amazon S3"],
              "Metrics": {
                "UnblendedCost": { "Amount": "45.23", "Unit": "USD" },
                "UsageQuantity": { "Amount": "1024.00", "Unit": "GB" }
              }
            }
          ],
          "Estimated": false
        }
      ],
      "DimensionValueAttributes": []
    }
  }
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/get-cost-and-usage-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.