---
title: "YouTube channel insights"
method: GET
path: "/api/v1/analytics/youtube/channel-insights"
tags: ["Analytics"]
---

# YouTube channel insights

`GET /api/v1/analytics/youtube/channel-insights`

## Request

- Base URL: `https://app.tryadeli.com`
- URL: `https://app.tryadeli.com/api/v1/analytics/youtube/channel-insights`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/adeli/apis/adeli-api/docs/api/v1/analytics/youtube/channel-insights/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `accountId` string, uuid, required
- `profileId` string, uuid
- `startDate` string
- `endDate` string

## Response `200`

Success

- object
  - `platform` 'youtube', required
  - `accountId` string, uuid, required
  - `profileId` string, uuid, required
  - `channel` object, required
    - `channelId` string, required
    - `title` string, required
    - `handle` string, nullable, required
    - `avatarUrl` string, nullable, required
    - `subscribers` number, nullable, required
    - `views` number, nullable, required
    - `videos` number, nullable, required
  - `insights` object, required
    - `startDate` string, required
    - `endDate` string, required
    - `daily` object[], required
      - `date` string, required
      - `views` number, nullable, required
      - `minutesWatched` number, nullable, required
      - `averageViewDurationSeconds` number, nullable, required
      - `subscribersGained` number, nullable, required
      - `subscribersLost` number, nullable, required
      - `likes` number, nullable, required
      - `comments` number, nullable, required
      - `shares` number, nullable, required
    - `topVideos` object[], required
      - `videoId` string, required
      - `views` number, nullable, required
      - `minutesWatched` number, nullable, required
      - `averageViewDurationSeconds` number, nullable, required
      - `likes` number, nullable, required
      - `comments` number, nullable, required
    - `audience` object, required
      - `ageGender` object[], required
        - `ageGroup` string, required
        - `gender` string, required
        - `percentage` number, nullable, required
      - `countries` object[], required
        - `country` string, required
        - `views` number, nullable, required
  - `fetchedAt` string, date-time, required

## Other responses

- `400`: Invalid request or provider failure
- `401`: Missing or invalid API key
- `403`: The connection lacks a permission or provider-confirmed resource
- `404`: Profile, account, or object not found
- `422`: The connected account cannot perform this operation
- `429`: Provider quota or rate limit exhausted
- `502`: Invalid request or provider failure

---

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