---
title: "Get Publication Analytics"
method: GET
path: "/projects/{project_id}/youtube/publications/{publication_id}/analytics"
tags: ["youtube"]
---

# Get Publication Analytics

`GET /projects/{project_id}/youtube/publications/{publication_id}/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/projects/{project_id}/youtube/publications/{publication_id}/analytics`
- Auth: HTTP bearer

## Path parameters

- `project_id` string, required
- `publication_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)
