# AccountUsage

The AccountUsage type of the TypeScript SDK, which accounts.getUsage take or answer.

```ts
type AccountUsage = {
  accountId: string
  days: UsageDay[]
  from: string
  requests?: RequestBreakdownRow[]
  to: string
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `accountId` | `string` | Account ID |
| `days` | [`UsageDay[]`](/docs/sdks/typescript/types/usage-day) | Daily usage metrics for each day in range |
| `from` | `string` | Start date of queried usage range (YYYY-MM-DD) |
| `requests` | [`RequestBreakdownRow[]`](/docs/sdks/typescript/types/request-breakdown-row) | Optional. Summary of API calls broken down by resource and surface |
| `to` | `string` | End date of queried usage range (YYYY-MM-DD) |

## Used by

| Method | What it does |
| --- | --- |
| [`accounts.getUsage`](/docs/sdks/typescript/accounts/get-usage) | Get daily account usage metrics |
