# Get account run analytics

```http
GET /accounts/{account_id}/analytics/runs
```

Read run activity for the selected account, optionally narrowed to one project or label, using shared reporting controls and a human user session. Requires account.billing.read.

## Parameters

| Name                | In    | Required | Description                                                                                                                                        |
| ------------------- | ----- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| `account_id`        | path  | Yes      |                                                                                                                                                    |
| `preset`            | query |          | Whole local days, defaulting to 30d. Explicit from/to bounds take precedence over preset, including SDK-supplied defaults.                         |
| `from`              | query |          | Inclusive start. Supply both from and to; these bounds take precedence over preset.                                                                |
| `to`                | query |          | Exclusive end, no later than the end of today in timezone.                                                                                         |
| `timezone`          | query |          |                                                                                                                                                    |
| `granularity`       | query |          | UTC hours, or local calendar days, Monday-based weeks and months.                                                                                  |
| `group_by`          | query |          | Grouping dimensions supported by this operation. Repeat the parameter or use a comma-separated list.                                               |
| `compare`           | query |          | Compare preceding calendar months for whole-month custom ranges, local days for whole-day ranges and presets, or equal elapsed duration otherwise. |
| `label`             | query |          |                                                                                                                                                    |
| `project_reference` | query |          | Optional project UUID or slug to scope analytics to a single project.                                                                              |

## Responses

| Status | Description                            |
| ------ | -------------------------------------- |
| 200    | Run activity for the selected account. |
| 400    | Bad request                            |
| 401    | Unauthorized                           |
| 403    | Forbidden                              |
| 404    | Not found                              |
| 429    | Rate limit exceeded                    |
| 500    | Server error                           |
