---
title: "Get Channel Analytics"
method: GET
path: "/channels/{channel_id}/youtube/analytics"
tags: ["youtube"]
---

# Get Channel Analytics

`GET /channels/{channel_id}/youtube/analytics`

## Request

- Base URL: `https://api.framesail.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.framesail.com/channels/{channel_id}/youtube/analytics`
- Auth: HTTP bearer

## Path parameters

- `channel_id` string, required

## Query parameters

- `days` 7 | 28 | 90 | 365: The periods the analytics views offer, in days. An enum rather than a Literal so the `days` query parameter is coerced from its string form.

## Response `200`

Successful Response

- YouTubeAnalytics: YouTube Analytics rows as YouTube returned them, keyed by metric name. `totals` is null when YouTube has no data for the period yet.
  - `totals` object, nullable, required
  - `daily` object[], required

## Other responses

- `422`: Validation Error

---

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