Support needed? Reach out! 📧

How to Scrape Youtube Channel Profile Data

This tutorial shows how to use Youtube Channel Profile Data API to scrape and crawl structured Youtube data in real-time.
Pull complete YouTube channel profiles via our API including subscriber counts, total view figures, upload frequency, and channel metadata for competitive benchmarking.

Access Youtube Data in 3 Steps

Start crawling Youtube channel analytics data. Follow these steps to extract social media data in minutes.

1

Create Your Account

Go to our registration page and make an account. It's free, no credit card, and you get credits right away to play around with.

2

Verify Your Email Address

You'll get a verification email, click the link in it. Once that's done, you can grab your API token from the dashboard.

3

Make Your First API Call

Copy the code snippet below, swap in your API key, and run it. You'll get Youtube data back as JSON within a few seconds.

Code Sample

Here's a JavaScript example to get you going. Swap out the token and you're good, works the same way in any language that can make HTTP requests. Start collecting channel analytics data via our REST API!

javascript-logo JavaScript
Youtube Channel Detailed Info
1 const root = 'https://ensembledata.com/apis'
2 const endpoint = '/youtube/channel/detailed-info'
3 const params = {
4   "browseId""UCnQghMm3Z164JFhScQYFTBw",
5   "from_url": false,
6   "get_additional_info": false,
7   "token""YOUR-TOKEN-HERE"
8 }
9  
10 const queryString = new URLSearchParams(params).toString();
11 const url = `${root}${endpoint}?${queryString}`;
12  
13 await fetch(url)
14   .then(response => response.json())
15   .then(data => console.log(data))
16   .catch(error => console.error(error));
17  

Parameters

browseId (string) Channel ID. REQUIRED
from_url (boolean) if true, the `browseId` needs to be a url like youtube.com/@... OR youtube.com/channel/... OR youtube.com/c/.... If True, 1 extra unit is charged.
get_additional_info (boolean) Fetch additional information for the channel (title, avatars, thumbails...) If True, 1 extra unit is charged.
token (string) Private token assigned to each client to access the APIs. REQUIRED

Example Response

Explore the fields returned by this endpoint. Click a row to expand nested objects and arrays, hover a value to copy it, or use "Expand all" to see everything at once.

JSON
Youtube Channel Detailed Info
dataobject2 fields
metadataobject1 field
aboutChannelViewModelobject14 fields
descriptionstring"Thank you for being here :) "
descriptionLabelobject2 fields
contentstring"Description"
styleRunsarray1 item · schema from #0 1 item
startIndexnumber0
lengthnumber11
customLinksLabelobject2 fields
contentstring"Links"
styleRunsarray1 item · schema from #0 1 item
startIndexnumber0
lengthnumber5
subscriberCountTextstring"6.05M subscribers"
viewCountTextstring"3,212,465,955 views"
joinedDateTextobject2 fields
contentstring"Joined Feb 4, 2020"
styleRunsarray1 item · schema from #0 1 item
startIndexnumber0
lengthnumber18
canonicalChannelUrlstring"http://www.youtube.com/@mmmjoemele"
channelIdstring"UClAa0YLrW4MaIKOWaeZR9Xg"
additionalInfoLabelobject2 fields
contentstring"Channel details"
styleRunsarray1 item · schema from #0 1 item
startIndexnumber0
lengthnumber15
customUrlOnTapobject1 field
innertubeCommandobject3 fields
clickTrackingParamsstring"CAAQhGciEwjsneTw8-6EAxWkzRYJHc2uBtc="
commandMetadataobject1 field
webCommandMetadataobject1 field
ignoreNavigationbooleantrue
shareEntityEndpointobject2 fields
serializedShareEntitystring"GhhVQ2xBYTBZTHJXNE1hSUtPV2FlWlI5WGc%3D"
sharePanelTypestring"SHARE_PANEL_TYPE_UNIFIED_SHARE_PANEL"
videoCountTextstring"851 videos"
signInForBusinessEmailobject3 fields
contentstring"Sign in to see email address"
commandRunsarray1 item · schema from #0 1 item
startIndexnumber0
lengthnumber7
onTapobject1 field
innertubeCommandobject3 fields
clickTrackingParamsstring"CAAQhGciEwjsneTw8-6EAxWkzRYJHc2uBtc="
commandMetadataobject1 field
webCommandMetadataobject3 fields
urlstring"https://accounts.google.com/ServiceLogin?service=youtube&uilel=3&passi…"
webPageTypestring"WEB_PAGE_TYPE_UNKNOWN"
rootVenumber83769
signInEndpointobject1 field
nextEndpointobject3 fields
clickTrackingParamsstring"CAAQhGciEwjsneTw8-6EAxWkzRYJHc2uBtc="
commandMetadataobject1 field
webCommandMetadataobject4 fields
urlstring"/@mmmjoemele"
webPageTypestring"WEB_PAGE_TYPE_CHANNEL"
rootVenumber3611
apiUrlstring"/youtubei/v1/browse"
browseEndpointobject3 fields
browseIdstring"UClAa0YLrW4MaIKOWaeZR9Xg"
paramsstring"8gYECgIyAA%3D%3D"
canonicalBaseUrlstring"/@mmmjoemele"
styleRunsarray1 item · schema from #0 1 item
startIndexnumber0
lengthnumber28
linksarray4 items · schema from #0 4 items
channelExternalLinkViewModelobject3 fields
titleobject1 field
contentstring"Instagram"
linkobject2 fields
contentstring"instagram.com/mmmjoemele"
commandRunsarray1 item · schema from #0 1 item
startIndexnumber0
lengthnumber24
onTapobject1 field
innertubeCommandobject3 fields
clickTrackingParamsstring"CAkQobIHGAIiEwjsneTw8-6EAxWkzRYJHc2uBtc="
commandMetadataobject1 field
webCommandMetadataobject3 fields
urlstring"https://www.youtube.com/redirect?event=channel_description&redir_token…"
webPageTypestring"WEB_PAGE_TYPE_UNKNOWN"
rootVenumber83769
urlEndpointobject3 fields
urlstring"https://www.youtube.com/redirect?event=channel_description&redir_token…"
targetstring"TARGET_NEW_WINDOW"
nofollowbooleantrue
faviconobject1 field
sourcesarray10 items · schema from #0 10 items
urlstring"https://encrypted-tbn3.gstatic.com/favicon-tbn?q=tbn:ANd9GcRfYQ4UPLA7A…"
widthnumber16
heightnumber16
displayCanonicalChannelUrlstring"www.youtube.com/@mmmjoemele"
shareChannelobject1 field
buttonRendererobject7 fields
stylestring"STYLE_DEFAULT"
sizestring"SIZE_DEFAULT"
textobject1 field
runsarray1 item · schema from #0 1 item
textstring"Share channel"
iconobject1 field
iconTypestring"SHARE"
trackingParamsstring"CAEQ8FsiEwjsneTw8-6EAxWkzRYJHc2uBtc="
accessibilityDataobject1 field
accessibilityDataobject1 field
labelstring"Share"
commandobject3 fields
clickTrackingParamsstring"CAEQ8FsiEwjsneTw8-6EAxWkzRYJHc2uBtc="
commandMetadataobject1 field
webCommandMetadataobject1 field
sendPostbooleantrue
signalServiceEndpointobject2 fields
signalstring"CLIENT_SIGNAL"
actionsarray1 item · schema from #0 1 item
clickTrackingParamsstring"CAEQ8FsiEwjsneTw8-6EAxWkzRYJHc2uBtc="
openPopupActionobject2 fields
popupobject1 field
menuPopupRendererobject1 field
itemsarray2 items · schema from #0 2 items
menuServiceItemRendererobject3 fields
textobject1 field
runsarray1 item · schema from #0 1 item
textstring"Share channel"
trackingParamsstring"CAQQ0rYLGAEiEwjsneTw8-6EAxWkzRYJHc2uBtc="
commandobject3 fields
clickTrackingParamsstring"CAQQ0rYLGAEiEwjsneTw8-6EAxWkzRYJHc2uBtc="
commandMetadataobject1 field
webCommandMetadataobject2 fields
sendPostbooleantrue
apiUrlstring"/youtubei/v1/share/get_share_panel"
shareEntityServiceEndpointobject2 fields
serializedShareEntitystring"GhhVQ2xBYTBZTHJXNE1hSUtPV2FlWlI5WGc%3D"
commandsarray1 item · schema from #0 1 item
clickTrackingParamsstring"CAQQ0rYLGAEiEwjsneTw8-6EAxWkzRYJHc2uBtc="
openPopupActionobject3 fields
popupobject1 field
unifiedSharePanelRendererobject2 fields
trackingParamsstring"CAUQjmIiEwjsneTw8-6EAxWkzRYJHc2uBtc="
showLoadingSpinnerbooleantrue
popupTypestring"DIALOG"
beReusedbooleantrue
popupTypestring"RESPONSIVE_DROPDOWN"

Response Codes

Status codes this endpoint can return, so you can handle errors before they surprise you in production.

200SuccessSuccessful Response
422Client ErrorValidation Error
465Client ErrorInvalid Youtube URL
471Client ErrorUser restricted
491Client ErrorToken not found
492Client ErrorEmail not verified
493Client ErrorSubscription expired
495Client ErrorAll daily units used
500Server ErrorSomething went wrong

API Pricing

2 units Cost per successful call to this endpoint.

Fetch Youtube Data at Scale

Retrieve channel-level YouTube data at scale and feed it into your competitive analysis or content strategy workflows.

deco-icon

Subscriber Data

Get exact subscriber and total view counts for any YouTube channel.

deco-icon

Upload History

See upload frequency to understand a channel's publishing cadence.

deco-icon

Channel Metadata

Pull full channel metadata in one structured API response.