> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Cost & Usage

Retrieves cost and usage from your cloud accounts invoice.

## Basic Parameters

<div className="integrations-table">
  | Parameter                | Description                                           |
  | ------------------------ | ----------------------------------------------------- |
  | Cost Type                | Type of cost to get the report for.                   |
  | End Date                 | End date of the cost and usage data examination.      |
  | Group By                 | The group by value that will be used for the results. |
  | Period Granularity Level | Granularity level of the period in the output data.   |
  | Start Date               | Start date of the cost and usage data examination.    |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter   | Description                                                                                                                                                                                 |
  | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Account Key | Which account key to use for authentication.<br /><br />Must be used with a valid Division ID.<br /><br />If not provided, will default to use the first Account Key and Division ID found. |
  | Division ID | Which division ID to use for authentication.<br /><br />Must be used with a valid Account Key.<br /><br />If not provided, will default to use the first Account Key and Division ID found. |
</div>

## Example Output

```json theme={"dark"}
[
	{
		"group_by": "undefined",
		"usage_date": "2022-05",
		"account_id": "932213950603",
		"total_cost": 36564.952178,
		"total_usage_quantity": 1096079113.54,
		"resource_name": "",
		"resource_id": ""
	},
	{
		"group_by": "undefined",
		"usage_date": "2022-06",
		"account_id": "932213950603",
		"total_cost": 41454.924133,
		"total_usage_quantity": 1247146351.53,
		"resource_name": "",
		"resource_id": ""
	}
]
```

## Workflow Library Example

[Get Cost and Usage with Anodot and Send Results Via Email](https://library.blinkops.com/workflows/get-cost-and-usage-with-anodot-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/get-cost-and-usage-with-anodot-and-send-results-via-email/canvas" />
</div>
