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

# Get run analytics

> Return account run analytics.

`getAccountRunAnalytics(command: RunsGetAccountRunAnalyticsCommand!): RunsAccountAnalytics!`

## Arguments

| Argument | Type | Required |
| - | - | - |
| `command` | [`RunsGetAccountRunAnalyticsCommand!`](https://veryfront.com/docs/cloud/graphql/types/runsgetaccountrunanalyticscommand) | Yes |

## Input fields

### command

[`RunsGetAccountRunAnalyticsCommand`](https://veryfront.com/docs/cloud/graphql/types/runsgetaccountrunanalyticscommand)

| Field | Type | Required | Description |
| - | - | - | - |
| `accountId` | [`ID`](https://veryfront.com/docs/cloud/graphql/types/id) | No | Account to report; omitted, use the authorized context account or caller default. Requires account.billing.read. |
| `preset` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Whole local days, defaulting to 30d. Explicit from/to bounds take precedence over preset, including SDK-supplied defaults. |
| `from` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Inclusive start. Supply both from and to; these bounds take precedence over preset. |
| `to` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Exclusive end, no later than the end of today in timezone. |
| `timezone` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | |
| `granularity` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | UTC hours, or local calendar days, Monday-based weeks and months. |
| `groupBy` | [`[String!]`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Grouping dimensions supported by this operation. Repeat the parameter or use a comma-separated list. |
| `compare` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Compare preceding calendar months for whole-month custom ranges, local days for whole-day ranges and presets, or equal elapsed duration otherwise. |
| `label` | [`[String!]`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Project label filters as key or key=value, repeated or comma-separated. |
| `projectReference` | [`String`](https://veryfront.com/docs/cloud/graphql/types/string) | No | Optional project UUID or slug to scope analytics to a single project. |
| `projectId` | [`ID`](https://veryfront.com/docs/cloud/graphql/types/id) | No | Deprecated: Use projectReference. |

## Response

Returns [`RunsAccountAnalytics!`](https://veryfront.com/docs/cloud/graphql/types/runsaccountanalytics). Open the type for its fields and nested types.

| Field | Type |
| - | - |
| `scope` | [`RunsAccountAnalyticsScope`](https://veryfront.com/docs/cloud/graphql/types/runsaccountanalyticsscope) |
| `groupBy` | [`[String!]`](https://veryfront.com/docs/cloud/graphql/types/string) |
| `summary` | [`RunsAccountAnalyticsSummary!`](https://veryfront.com/docs/cloud/graphql/types/runsaccountanalyticssummary) |
| `timeframe` | [`RunsAccountAnalyticsTimeframe!`](https://veryfront.com/docs/cloud/graphql/types/runsaccountanalyticstimeframe) |
| `series` | [`[RunsAccountAnalyticsSeries!]!`](https://veryfront.com/docs/cloud/graphql/types/runsaccountanalyticsseries) |
| `statuses` | [`[RunsAccountAnalyticsStatuses!]!`](https://veryfront.com/docs/cloud/graphql/types/runsaccountanalyticsstatuses) |
| `models` | [`[RunsAccountAnalyticsModels!]!`](https://veryfront.com/docs/cloud/graphql/types/runsaccountanalyticsmodels) |
| `tools` | [`[RunsAccountAnalyticsTools!]!`](https://veryfront.com/docs/cloud/graphql/types/runsaccountanalyticstools) |

[All fields of `RunsAccountAnalytics`](https://veryfront.com/docs/cloud/graphql/types/runsaccountanalytics).

Types marked with `!` cannot be null. Lists use `[Type]` notation. The [type index](https://veryfront.com/docs/cloud/graphql/schema.md) lists all published input and response types.

## Example

```graphql title="query.graphql" theme={null}
query GetAccountRunAnalytics($command: RunsGetAccountRunAnalyticsCommand!) {
  getAccountRunAnalytics(command: $command) {
    groupBy
  }
}
```

```json title="variables.json" theme={null}
{
  "command": {}
}
```

<details>
  <summary>Try this query</summary>

  Calls use `https://api.veryfront.com/graphql`. Replace sample values with resources you can access. See [Authentication](https://veryfront.com/docs/cloud/authentication.md) for credentials and permissions.

  Bearer token or API key

  Stored in this tab's session. Clear credential

  Query

  Variables (JSON)
</details>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.