---
title: "Get Cdn Usage Timeseries"
method: GET
path: "/v1/orgs/{org_id}/usage/cdn/timeseries"
tags: ["organizations"]
---

# Get Cdn Usage Timeseries

`GET /v1/orgs/{org_id}/usage/cdn/timeseries`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/orgs/{org_id}/usage/cdn/timeseries`
- Auth: none declared

Exact per-day CDN egress + storage (GB) for the org, last `days` days.

Billing-grade history from `cdn_usage_daily` (task 916) — zero-filled,
oldest→newest. Pass `project_id` to scope to one project. Both dimensions
are returned: bandwidth (metered/pay-as-you-go) and storage (snapshot).

## Path parameters

- `org_id` string, required

## Query parameters

- `days` integer
- `project_id` string, nullable: scope the series to a single project

## Response `200`

Successful Response

- OrgCdnTimeseriesOut
  - `org_uuid` string, required
  - `days` integer, required
  - `points` OrgCdnDailyPoint[], required
    - `date` string, required
    - `bytes_egress` integer, required
    - `egress_gb` number, required
    - `storage_bytes` integer, required
    - `storage_gb` number, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sonenta/apis/sonenta-api.md) · [All operations](https://skmtc.dev/sonenta/apis/sonenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sonenta/apis/sonenta-api/revisions/f853ea49fb05?raw)
