Skip to main content
POST
/
youtube
/
analyzer
/
insights
Get YouTube Insights
curl --request POST \
  --url https://backend.clipvision.ai/youtube/analyzer/insights \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "access_token": "<string>",
  "channel_id": "<string>",
  "max_results": 123,
  "time_range": 123
}'
{
  "insights": {
    "channel_id": "<string>",
    "likes_data": {
      "title": "Likes",
      "data": [
        {
          "date": "<string>",
          "param1": 123,
          "value": 123
        }
      ]
    },
    "popular_video_data": {
      "id": "<string>",
      "title": "<string>",
      "thumbnail": "<string>",
      "url": "<string>",
      "publish_date": "<string>",
      "views": 123
    },
    "views_data": {
      "title": "Views",
      "data": [
        {
          "date": "<string>",
          "param1": 123,
          "value": 123
        }
      ]
    },
    "subscribers_data": {
      "title": "Subscribers",
      "data": [
        {
          "date": "2023-12-25",
          "param1": 123,
          "param2": 123,
          "value": 123
        }
      ]
    }
  },
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
access_token
string
required
Minimum length: 1
channel_id
string
required
Minimum length: 1
max_results
integer
time_range
integer

0 for "This Week", 1 for "This Month", 2 for "This Year"

Response

Insights fetched successfully

Insights Response Object OpenAPI Schema

insights
object

YouTube Statistics OpenAPI Schema

error
string