Retrieve detailed analytics data for any YouTube channel — subscriber counts, video counts, view counts, geography/demographics, and short vs. long-form view performance.
Base URL: https://prod.dashboard.nexlev.io — see Authentication for the required header.
Operations Quick Reference
| Operation | Method & Path | Quota Cost |
|---|---|---|
| Get Analytics | POST /api/external/analytics/channel-analytics | 🥞 10 |
| Get Geography Demographics Revenue | POST /api/external/analytics/channel-analytics/geography-revenue | 🥞 20 |
| Get Short vs Long Views | GET /api/external/analytics/channel-analytics/:channelId/short-vs-long-views | 🥞 1 |
Available Operations
The Channel Analytics resource provides three different operations to retrieve channel analytics data:
Get Analytics
POST /api/external/analytics/channel-analyticsDescription: Retrieve comprehensive channel analytics including subscriber count, video count, view count, and detailed channel information.
cURL Example:
curl -X POST https://prod.dashboard.nexlev.io/api/external/analytics/channel-analytics \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA"}'Request Body:
{
"channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA"
}When to use this operation:
- Building channel profile dashboards with complete metadata
- Tracking channel growth metrics over time
- Comparing multiple channels for competitive analysis
- Gathering channel information for research databases
Status Code: 200 OK
Response Body:
[
{
"about": {
"description": "SUBSCRIBE FOR A COOKIE!\nNew MrBeast or MrBeast Gaming video every single Saturday at noon eastern time!\nAccomplishments:\n- Raised $20,000,000 To Plant 20,000,000 Trees\n- Removed 30,000,000 pounds of trash from the ocean\n- Helped 2,000 people walk again\n- Helped 1,000 blind people see\n- Helped 1,000 deaf people hear\n- Built wells in Africa\n- Built and gave away 100 houses\n- Adopted every dog in a shelter (twice)\n- Given millions to charity\n- Started my own snack company Feastables\n- Started my own software company Viewstats\n- Started Lunchly, a tasty, better-for-you lunch option\n- Gave away a private island (twice)\n- Gave away 1 million meals\n- I counted to 100k\n- Ran a marathon in the world's largest shoes\n- Survived 50 hours in Antarctica\n- Recreated Squid Game in real life\n- Created the largest competition show with 1000 people (Beast Games)\n- Gave $5,000,000 to one person\n- Passed T-Series to become most subscribed YouTube channel 🥹\nyou get it, I appreciate all of you so much :)\n",
"subscriberCount": 454000000,
"viewCount": 102990519473,
"videoCount": 929,
"joinedDate": "2012-02-19",
"country": "United States",
"links": [
{
"title": "TEAM WATER!",
"url": "teamwater.org"
},
{
"title": "Follow",
"url": "instagram.com/mrbeast"
},
{
"title": "Twitter",
"url": "twitter.com/MrBeast"
},
{
"title": "Facebook",
"url": "facebook.com/mrbeast"
}
],
"channelUrl": "https://youtube.com/channel/UCX6OQ3DkcsbYNE6H8uQQuVA",
"channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA",
"daysSinceStart": 5044,
"avgVideoLengthSeconds": 1321.6440677966102,
"avgVideoLength": "22:01",
"channelName": "MrBeast",
"thumbnail": [
{
"url": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s160-c-k-c0x00ffffff-no-rj",
"width": 160,
"height": 160
}
],
"hasShorts": true,
"lastVideoUploadDate": "4 days ago"
},
"channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA",
"keywords": [],
"tags": ["mrbeast6000", "beast", "mrbeast", "Mr.Beast", "mr"],
"categories": ["Philanthropy", "Vlogs", "Entertainment"]
}
]Response Fields:
about- Comprehensive channel information including all metricsdescription- Full channel description with accomplishmentssubscriberCount- Total subscriber countviewCount- Total cumulative views across all videosvideoCount- Total number of published videosjoinedDate- Channel creation date (YYYY-MM-DD format)country- Channel country locationlinks- Social media and external linkschannelUrl- Full YouTube channel URLchannelId- YouTube channel identifierdaysSinceStart- Days since channel creationavgVideoLengthSeconds- Average video length in secondsavgVideoLength- Average video length formatted (MM:SS)channelName- Display name of the channelthumbnail- Channel avatar with URL, width, and heighthasShorts- Whether channel publishes YouTube ShortslastVideoUploadDate- Relative time since last upload (e.g., "4 days ago")
channelId- YouTube channel unique identifierkeywords- Channel-level keywords (empty array if none)tags- Channel tags for categorizationcategories- Content categories (e.g., "Philanthropy", "Vlogs", "Entertainment")
Get Geography Demographics Revenue
POST /api/external/analytics/channel-analytics/geography-revenueDescription: Get detailed demographics, geography distribution, RPM rates, and revenue estimates for a channel.
cURL Example:
curl -X POST https://prod.dashboard.nexlev.io/api/external/analytics/channel-analytics/geography-revenue \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA"}'Request Body:
{
"channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA"
}When to use this operation:
- Analyzing audience demographics for targeting strategies
- Understanding revenue potential by content category
- Identifying geographic markets for content localization
- Comparing RPM rates across different niches
Status Code: 200 OK
Response Body:
[
{
"category": "technology",
"rpm": {
"rpm_15": 5.5,
"rpm_45": 6.8,
"rpm_45_plus": 8.2
},
"demographics": {
"gender": {
"male": 65.4,
"female": 33.8,
"user_specified": 0.8
},
"age": {
"13_17_years": 5.2,
"18_24_years": 18.5,
"25_34_years": 32.4,
"35_44_years": 22.1,
"45_54_years": 12.8,
"55_64_years": 6.7,
"65_plus_years": 2.3
},
"viewership_country": {
"United States": 42.8,
"United Kingdom": 15.3,
"Canada": 12.6,
"Australia": 8.9,
"Germany": 6.4
}
},
"revenue": {
"month_revenue": 125000.5,
"month_long_revenue": 95000,
"month_short_revenue": 30000,
"short_view_count": 45000000,
"long_view_count": 180000000
}
}
]Response Fields:
-
category- Content category of the channel -
rpm- Revenue per mille (RPM) data by age grouprpm_15- RPM for 15-24 age grouprpm_45- RPM for 25-44 age grouprpm_45_plus- RPM for 45+ age group
-
demographics- Audience demographic breakdowngender- Gender distribution percentagesmale- Male audience percentagefemale- Female audience percentageuser_specified- User-specified gender percentage
age- Age distribution percentages13_17_years- 13-17 age group percentage18_24_years- 18-24 age group percentage25_34_years- 25-34 age group percentage35_44_years- 35-44 age group percentage45_54_years- 45-54 age group percentage55_64_years- 55-64 age group percentage65_plus_years- 65+ age group percentage
viewership_country- Top countries by viewership percentage
-
revenue- Revenue breakdown datamonth_revenue- Total monthly revenue estimatemonth_long_revenue- Monthly revenue from long-form videosmonth_short_revenue- Monthly revenue from shortsshort_view_count- Total views from shortslong_view_count- Total views from long-form videos
Get Short vs Long Views
GET /api/external/analytics/channel-analytics/:channelId/short-vs-long-viewsDescription: Compare short-form (Shorts) vs long-form video view counts to understand content format performance.
Path Parameters: channelId (required) — the YouTube channel ID
cURL Example:
curl https://prod.dashboard.nexlev.io/api/external/analytics/channel-analytics/UCX6OQ3DkcsbYNE6H8uQQuVA/short-vs-long-views \
-H "Authorization: Bearer YOUR_API_KEY"When to use this operation:
- Comparing short-form vs long-form content performance
- Understanding content format preferences
- Analyzing content strategy effectiveness
- Planning content mix optimization
Status Code: 200 OK
Response Body:
[
{
"shortView": 45000000,
"longViews": 180000000
}
]Response Fields:
shortView- Total view count from YouTube ShortslongViews- Total view count from long-form videos
Error Responses
Status Code: 400 Bad Request
Description: The request was invalid or malformed.
{
"error": {
"code": 400,
"message": "Invalid channel ID format",
"details": "Channel ID must be a valid YouTube channel identifier"
}
}Status Code: 401 Unauthorized
Description: Authentication credentials are missing or invalid.
{
"error": {
"code": 401,
"message": "Unauthorized",
"details": "Invalid API key or credentials not provided. Create your API key at https://dashboard.nexlev.io/nexlev-api/create-api-key"
}
}Status Code: 429 Too Many Requests
Description: You have exceeded your API rate limit.
{
"error": {
"code": 429,
"message": "Rate limit exceeded",
"details": "You have exceeded your API quota. Please try again later.",
"retryAfter": 3600
}
}