# Get usage series

```http
GET /accounts/{account_id}/usage/series
```

Chart one usage metric of an account by day, optionally for one project; returns the daily series with a total and a per-project breakdown. 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. |
| `metric`            | query | Yes      | Usage metric to chart.                                                                                                                             |
| `project_reference` | query |          | Project ID or slug that narrows the read to one project of the account. A project of another account is not found.                                 |

## Responses

| Status | Description                                                                  |
| ------ | ---------------------------------------------------------------------------- |
| 200    | Daily series of one usage metric of the account, optionally for one project. |
| 400    | Bad request                                                                  |
| 401    | Unauthorized                                                                 |
| 403    | Forbidden                                                                    |
| 404    | Not found                                                                    |
| 500    | Server error                                                                 |
