Introducing the YouTube Viewers Count API, a powerful tool designed to provide comprehensive insights into the performance of any YouTube video. With seamless integration capabilities, this API empowers content creators, marketers, and businesses to stay informed about their video engagement in real-time.
Gone are the days of uncertainty regarding your video's impact. Our API offers a user-friendly interface, allowing you to effortlessly retrieve viewership metrics for any YouTube video of your choice. Whether you're a content creator eager to analyze the success of your latest upload or a marketer tracking campaign performance, our YouTube Viewers Count API is your gateway to accurate and up-to-date data.
Accessing the API is a straightforward process, enabling you to incorporate viewership data directly into your applications, dashboards, or analytical tools. Stay ahead of the curve, make informed decisions, and adapt your content strategy based on real-time audience engagement.
Unleash the potential of your YouTube presence by understanding the dynamics of viewer interaction. The YouTube Viewers Count API is your key to unlocking the metrics that matter, providing a comprehensive solution for those who seek actionable insights into their video performance on the world's leading video platform.
Pass the YouTube video URL and receive viewer count and other data as well.
Content Performance Analytics: Content creators can leverage the YouTube Viewers Count API to track the viewership of their videos over time. By integrating this API into their analytics dashboard, creators gain valuable insights into which videos resonate most with their audience, enabling data-driven decisions for future content creation.
Campaign Tracking for Marketers: Marketers running YouTube campaigns can use the API to monitor the real-time viewership of their promotional videos. This enables them to assess the effectiveness of their campaigns, make adjustments on the fly, and optimize marketing strategies based on audience engagement.
Influencer Marketing ROI: Brands collaborating with influencers on YouTube can utilize the API to measure the impact of sponsored content. By understanding the viewership metrics of influencer-promoted videos, brands can evaluate the return on investment (ROI) and make informed decisions when selecting influencers for future partnerships.
Trend Analysis and Industry Benchmarking: Researchers and industry analysts can employ the API to conduct trend analysis and benchmark the viewership of videos within specific niches or industries. This use case allows professionals to stay updated on popular content, identify emerging trends, and assess the competitive landscape on YouTube.
Audience Engagement Monitoring: Educational institutions, event organizers, or public speakers can integrate the API to monitor audience engagement during live or recorded presentations on YouTube. This real-time feedback on viewership helps speakers understand audience retention, identify impactful content moments, and refine their communication strategies for enhanced engagement.
Besides the number of API calls, there is no other limitation
To use this endpoint you must indicate the ID of a video in the parameter.
Get Viewers - Endpoint Features
| Object | Description |
|---|---|
vid_id |
[Required] |
{"success":true,"code":200,"message":"success get video detail","data":{"streamingData":{"expiresInSeconds":"21540","formats":[{"itag":18,"mimeType":"video/mp4; codecs=\"avc1.42001E, mp4a.40.2\"","bitrate":290901,"width":480,"height":360,"lastModified":"1718912776704595","quality":"medium","fps":30,"qualityLabel":"360p","projectionType":"RECTANGULAR","audioQuality":"AUDIO_QUALITY_LOW","approxDurationMs":"295891","audioSampleRate":"44100","audioChannels":2,"signatureCipher":"s=hJfAJfQdSswRQIhAK6WvoId56tzlw6ULYdY_LbPnUFWLwFn1rYsAjf%3DoPapAiAvUp7gBBGBEVP4zyTvh7dZ7gMcSisVHy854y2l8NmZOQ%3DY%3DY&sp=sig&url=https://rr2---sn-npoe7nsy.googlevideo.com/videoplayback%3Fexpire%3D1723501140%26ei%3D9DW6ZvX1NPat9fwPvNmf2Qs%26ip%3D103.119.138.66%26id%3Do-AMV5fdTTGoX5RwnwHEmsRX3GZb85Pk9VymnynIPCajZ1%26itag%3D18%26source%3Dyoutube%26requiressl%3Dyes%26xpc%3DEgVo2aDSNQ%253D%253D%26mh%3DyF%26mm%3D31%252C29%26mn%3Dsn-npoe7nsy%252Csn-npoldn7s%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D2%26pl%3D24%26gcr%3Did%26initcwndbps%3D590000%26bui%3DAQmm2ewz9AmZgsBGd9gRLsF85C-XarQqZFmwlQsImOGsLSiz4n78Pum-RrtI6ri6jLEJ8eoJh9NFo17Y%26spc%3DMv1m9p7jGLsytGHr5Ss32Yo2drZ01NHnXhR24PCx3x6t_XlbyEHB9mcyV1dbJBI%26vprv%3D1%26svpuc%3D1%26mime%3Dvideo%252Fmp4%26ns%3DSW6LatIyZIipKXUaVudSBNQQ%26rqh%3D1%26cnr%3D14%26ratebypass%3Dyes%26dur%3D295.891%26lmt%3D1718912776704595%26mt%3D1723479188%26fvip%3D4%26c%3DWEB%26sefc%3D1%26txp%3D4538434%26n%3Duo42C69ArPQweyQFl8Ot%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Citag%252Csource%252Crequiressl%252Cxpc%252Cgcr%252Cbui%252Cspc%252Cvprv%252Csvpuc%252Cmime%252Cns%252Crqh%252Ccnr%252Cratebypass%252Cdur%252Clmt%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpl%252Cinitcwndbps%26lsig%3DAGtxev0wRQIgEjzTBWKyn9PQGo2QIuzmy25BF6sJNLG1zWoz6400sDECIQDRxcB-xHBxWhOajDpa8CUb7bIdXUBbBjasm8ViqJn23g%253D%253D"}],"adaptiveFormats":[{"itag":135,"mimeType":"video/mp4; codecs=\"avc1.4d401e\"","bitrate":539124,"width":640,"height":480,"initRange":{"start":"0","end":"737"},"indexRange":{"start":"738","end":"1453"},"lastModified":"1718912680921315","contentLength":"10959015","quality":"large","fps":30,"qualityLabel":"480p","projectionType":"RECTANGULAR","averageBitrate":296361,"approxDurationMs":"295828","signatureCipher":"s=vJfAJfQdSswRQIhAOI3-T185LpsuoUR7yET5Q2XQhu3ioomOnZKAPA%3Da_DYAiB1htSbVIYoUwcPbAZ9khEenJPC8lNiQymQD8YfAgrpDw%3DU%3DU&sp=sig&url=https://rr2---sn-npoe7nsy.googlevideo.com/videoplayback%3Fexpire%3D1723501140%26ei%3D9DW6ZvX1NPat9fwPvNmf2Qs%26ip%3D103.119.138.66%26id%3Do-AMV5fdTTGoX5RwnwHEmsRX3GZb85Pk9VymnynIPCajZ1%26itag%3D135%26aitags%3D133%252C134%252C135%252C160%252C242%252C243%252C244%252C278%252C394%252C395%252C396%252C397%26source%3Dyoutube%26requiressl%3Dyes%26xpc%3DEgVo2aDSNQ%253D%253D%26mh%3DyF%26mm%3D31%252C29%26mn%3Dsn-npoe7nsy%252Csn-npoldn7s%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D2%26pl%3D24%26gcr%3Did%26initcwndbps%3D590000%26bui%3DAQmm2ewoRQ0EjmUKuai0diFwtWOpLLRdDN-UvokzzzzlqQ5Cvrlo5gLQrF-CvteUP2gujd2cx_ZVzodq%26spc%3DMv1m9p7gGLsytGHr5Ss32Yo2drZ01NDnXhR24PCx3x6t_XlbyEHB9mcyV1db%26vprv%3D1%26svpuc%3D1%26mime%3Dvideo%252Fmp4%26ns%3DFdc8u5HPm9Baoxl4ef7YPq8Q%26rqh%3D1%26gir%3Dyes%26clen%3D10959015%26dur%3D295.828%26lmt%3D1718912680921315%26mt%3D1723479188%26fvip%3D4%26keepalive%3Dyes%26c%3DWEB%26sefc%3D1%26txp%3D4532434%26n%3DO12lEEynV-jlO-c4IFd4%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Caitags%252Csource%252Crequiressl%252Cxpc%252Cgcr%252Cbui%252Cspc%252Cvprv%252Csvpuc%252Cmime%252Cns%252Crqh%252Cgir%252Cclen%252Cdur%252Clmt%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpl%252Cinitcwndbps%26lsig%3DAGtxev0wRQIgEjzTBWKyn9PQGo2QIuzmy25BF6sJNLG1zWoz6400sDECIQDRxcB-xHBxWhOajDpa8CUb7bIdXUBbBjasm8ViqJn23g%253D%253D"},{"itag":244,"mimeType":"video/webm; codecs=\"vp9\"","bitrate":907990,"width":640,"height":480,"initRange":{"start":"0","end":"219"},"indexRange":{"start":"220","end":"1179"},"lastModified":"1700457042766562","contentLength":"13660847","quality":"large","fps":30,"qualityLabel":"480p","projectionType":"RECTANGULAR","averageBitrate":369425,"colorInfo":{"primaries":"COLOR_PRIMARIES_BT709","transferCharacteristics":"COLOR_TRANSFER_CHARACTERISTICS_BT709","matrixCoefficients":"COLOR_MATRIX_COEFFICIENTS_BT709"},"approxDurationMs":"295829","signatureCipher":"s=-JfAJfQdSswRQIgA5APoWX8DCpockhZcBr_tdSl_k6khQQk-VSOAba%3D304CIQC51ahjtlr1f3ltM5C4-yRqVTFlDr5DYQKiDgN5u_FCKA%3Dw%3Dw&sp=sig&url=https://rr2---sn-npoe7nsy.googlevideo.com/videoplayback%3Fexpire%3D1723501140%26ei%3D9DW6ZvX1NPat9fwPvNmf2Qs%26ip%3D103.119.138.66%26id%3Do-AMV5fdTTGoX5RwnwHEmsRX3GZb85Pk9VymnynIPCajZ1%26itag%3D244%26aitags%3D133%252C134%252C135%252C160%252C242%252C243%252C244%252C278%252C394%252C395%252C396%252C397%26source%3Dyoutube%26requiressl%3Dyes%26xpc%3DEgVo2aDSNQ%253D%253D%26mh%3DyF%26mm%3D31%252C29%26mn%3Dsn-npoe7nsy%252Csn-npoldn7s%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D2%26pl%3D24%26gcr%3Did%26initcwndbps%3D590000%26bui%3DAQmm2ewoRQ0EjmUKuai0diFwtWOpLLRdDN-UvokzzzzlqQ5Cvrlo5gLQrF-CvteUP2gujd2cx_ZVzodq%26spc%3DMv1m9p7gGLsytGHr5Ss32Yo2drZ01NDnXhR24PCx3x6t_XlbyEHB9mcyV1db%26vprv%3D1%26svpuc%3D1%26mime%3Dvideo%252Fwebm%26ns%3DFdc8u5HPm9Baoxl4ef7YPq8Q%26rqh%3D1%26gir%3Dyes%26clen%3D13660847%26dur%3D295.829%26lmt%3D1700457042766562%26mt%3D1723479188%26fvip%3D4%26keepalive%3Dyes%26c%3DWEB%26sefc%3D1%26txp%3D4537434%26n%3DO12lEEynV-jlO-c4IFd4%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Caitags%252Csource%252Crequiressl%252Cxpc%252Cgcr%252Cbui%252Cspc%252Cvprv%252Csvpuc%252Cmime%252Cns%252Crqh%252Cgir%252Cclen%252Cdur%252Clmt%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpl%252Cinitcwndbps%26lsig%3DAGtxev0wRQIgEjzTBWKyn9PQGo2QIuzmy25BF6sJNLG1zWoz6400sDECIQDRxcB-xHBxWhOajDpa8CUb7bIdXUBbBjasm8ViqJn23g%253D%253D"},{"itag":397,"mimeType":"video/mp4; codecs=\"av01.0.04M.08\"","bitrate":565435,"width":640,"height":480,"initRange":{"start":"0","end":"699"},"indexRange":{"start":"700","end":"1415"},"lastModified":"1700458057670490","contentLength":"9048625","quality":"large","fps":30,"qualityLabel":"480p","projectionType":"RECTANGULAR","averageBitrate":244699,"colorInfo":{"primaries":"COLOR_PRIMARIES_BT709","transferCharacteristics":"COLOR_TRANSFER_CHARACTERISTICS_BT709","matrixCoefficients":"COLOR_MATRIX_COEFFICIENTS_BT709"},"approxDurationMs":"295828","signatureCipher":"s=2JfAJfQdSswRQIgQ7g02GFUCPbRLLdspDLeV6qoeMzSUr0y4c9yAuv%3Dz9cCIQDB2Xgfeem3FkLtptKiuc50zhlaqhCeTf_IdIXl4oylqg%3D4%3D4&sp=sig&url=https://rr2---sn-npoe7nsy.googlevideo.com/videoplayback%3Fexpire%3D1723501140%26ei%3D9DW6ZvX1NPat9fwPvNmf2Qs%26ip%3D103.119.138.66%26id%3Do-AMV5fdTTGoX5RwnwHEmsRX3GZb85Pk9VymnynIPCajZ1%26itag%3D397%26aitags%3D133%252C134%252C135%252C160%252C242%252C243%252C244%252C278%252C394%252C395%252C396%252C397%26source%3Dyoutube%26requiressl%3Dyes%26xpc%3DEgVo2aDSNQ%253D%253D%26mh%3DyF%26mm%3D31%252C29%26mn%3Dsn-npoe7nsy%252Csn-npoldn7s%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D2%26pl%3D24%26gcr%3Did%26initcwndbps%3D590000%26bui%3DAQmm2ewoRQ0EjmUKuai0diFwtWOpLLRdDN-UvokzzzzlqQ5Cvrlo5gLQrF-CvteUP2gujd2cx_ZVzodq%26spc%3DMv1m9p7gGLsytGHr5Ss32Yo2drZ01NDnXhR24PCx3x6t_XlbyEHB9mcyV1db%26vprv%3D1%26svpuc%3D1%26mime%3Dvideo%252Fmp4%26ns%3DFdc8u5HPm9Baoxl4ef7YPq8Q%26rqh%3D1%26gir%3Dyes%26clen%3D9048625%26dur%3D295.828%26lmt%3D1700458057670490%26mt%3D1723479188%26fvip%3D4%26keepalive%3Dyes%26c%3DWEB%26sefc%3D1%26txp%3D4537434%26n%3DO12lEEynV-jlO-c4IFd4%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Caitags%252Csource%252Crequiressl%252Cxpc%252Cgcr%252Cbui%252Cspc%252Cvprv%252Csvpuc%252Cmime%252Cns%252Crqh%252Cgir%252Cclen%252Cdur%252Clmt%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpl%252Cinitcwndbps%26lsig%3DAGtxev0wRQIgEjzTBWKyn9PQGo2QIuzmy25BF6sJNLG1zWoz6400sDECIQDRxcB-xHBxWhOajDpa8CUb7bIdXUBbBjasm8ViqJn23g%253D%253D"},{"itag":134,"mimeType":"video/mp4; codecs=\"avc1.4d401e\"","bitrate":340777,"width":480,"height":360,"initRange":{"start":"0","end":"738"},"indexRange":{"start":"739","end":"1454"},"lastModified":"1718912688735726","contentLength":"5987456","quality":"medium","fps":30,"qualityLabel":"360p","projectionType":"RECTANGULAR","averageBitrate":161917,"highReplication":true,"approxDurationMs":"295828","signatureCipher":"s=PJfAJfQdSswRQIhAPaLoij9Gb_M_w08rUTbLl60A-j9xvdG0dMUA0b%3DFvI3AiB76TNDXNjuSOCkRYqtGNy-YQa-DdY4ZO9WL9w2yUfHpA%3Db%3Db&sp=sig&url=https://rr2---sn-npoe7nsy.googlevideo.com/videoplayback%3Fexpire%3D1723501140%26ei%3D9DW6ZvX1NPat9fwPvNmf2Qs%26ip%3D103.119.138.66%26id%3Do-AMV5fdTTGoX5RwnwHEmsRX3GZb85Pk9VymnynIPCajZ1%26itag%3D134%26aitags%3D133%252C134%252C135%252C160%252C242%252C243%252C244%252C278%252C394%252C395%252C396%252C397%26source%3Dyoutube%26requiressl%3Dyes%26xpc%3DEgVo2aDSNQ%253D%253D%26mh%3DyF%26mm%3D31%252C29%26mn%3Dsn-npoe7nsy%252Csn-npoldn7s%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D2%26pl%3D24%26gcr%3Did%26initcwndbps%3D590000%26bui%3DAQmm2ewoRQ0EjmUKuai0diFwtWOpLLRdDN-UvokzzzzlqQ5Cvrlo5gLQrF-CvteUP2gujd2cx_ZVzodq%26spc%3DMv1m9p7gGLsytGHr5Ss32Yo2drZ01NDnXhR24PCx3x6t_XlbyEHB9mcyV1db%26vprv%3D1%26svpuc%3D1%26mime%3Dvideo%252Fmp4%26ns%3DFdc8u5HPm9Baoxl4ef7YPq8Q%26rqh%3D1%26gir%3Dyes%26clen%3D5987456%26dur%3D295.828%26lmt%3D1718912688735726%26mt%3D1723479188%26fvip%3D4%26keepalive%3Dyes%26c%3DWEB%26sefc%3D1%26txp%3D4532434%26n%3DO12lEEynV-jlO-c4IFd4%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Caitags%252Csource%252Crequiressl%252Cxpc%252Cgcr%252Cbui%252Cspc%252Cvprv%252Csvpuc%252Cmime%252Cns%252Crqh%252Cgir%252Cclen%252Cdur%252Clmt%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpl%252Cinitcwndbps%26lsig%3DAGtxev0wRQIgEjzTBWKyn9PQGo2QIuzmy25BF6sJNLG1zWoz6400sDECIQDRxcB-xHBxWhOajDpa8CUb7bIdXUBbBjasm8ViqJn23g%253D%253D"},{"itag":243,"mimeType":"video/webm; codecs=\"vp9\"","bitrate":399729,"width":480,"height":360,"initRange":{"start":"0","end":"219"},"indexRange":{"start":"220","end":"1179"},"lastModified":"1700457059744729","contentLength":"8509183","quality":"medium","fps":30,"qualityLabel":"360p","projectionType":"RECTANGULAR","averageBitrate":230110,"colorInfo":{"primaries":"COLOR_PRIMARIES_BT709"}}]}},"_note":"Response truncated for documentation purposes"}
curl --location --request GET 'https://zylalabs.com/api/3234/youtube+viewers+count+api/6095/get+viewers?vid_id=Zi_XLOBDo_Y' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
Access to the API is granted through API keys provided upon registration. Visit our developer portal, sign up, and obtain your unique API key to integrate the service into your applications or systems.
The API utilizes API key authentication. Include your unique API key in the request headers to authenticate and access the viewership data for the specified YouTube video.
The API primarily provides real-time viewership metrics. For historical data, consider implementing your own data storage solution or regularly polling the API to accumulate data over time.
The API provides near real-time data, with updates occurring within minutes of a change in viewership. However, specific update intervals may vary, and it's advisable to consult our documentation for the most accurate information.
The API returns data in a standardized format such as JSON. Ensure your application is equipped to parse and handle this format for seamless integration.
The Get Viewers endpoint returns real-time viewership metrics for a specified YouTube video, including the current viewer count and additional streaming data such as video formats, quality, and duration.
Key fields in the response include "success," "code," "message," and "data." Within "data," you'll find "streamingData," which contains viewer count, video formats, quality labels, and other relevant metrics.
The response data is structured in JSON format. It includes a top-level object with success status and a data object that houses detailed metrics like viewer count and streaming information, making it easy to parse.
The primary parameter for the Get Viewers endpoint is the YouTube video ID. Users must provide this ID to retrieve the corresponding viewership data for that specific video.
The Get Viewers endpoint provides information such as the current viewer count, video quality options, format details, and streaming data, allowing users to analyze video performance comprehensively.
Users can leverage the returned data to track video performance, assess audience engagement, and make informed decisions about content strategy. For example, analyzing viewer count trends can guide future video topics.
The data is sourced directly from YouTube's platform, ensuring accuracy and relevance. The API retrieves real-time metrics based on YouTube's internal analytics, maintaining high data quality.
Data accuracy is maintained through direct integration with YouTube's systems, which provide real-time updates. Regular monitoring and validation processes ensure that the metrics reflect the most current viewership information.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Service Level:
100%
Response Time:
998ms
Service Level:
100%
Response Time:
19,344ms
Service Level:
100%
Response Time:
6,257ms
Service Level:
100%
Response Time:
58ms
Service Level:
100%
Response Time:
32ms
Service Level:
100%
Response Time:
1,026ms
Service Level:
100%
Response Time:
55ms
Service Level:
100%
Response Time:
54ms
Service Level:
100%
Response Time:
5,760ms
Service Level:
100%
Response Time:
52ms
Service Level:
100%
Response Time:
618ms
Service Level:
100%
Response Time:
13ms
Service Level:
100%
Response Time:
25ms
Service Level:
100%
Response Time:
669ms
Service Level:
100%
Response Time:
22ms
Service Level:
100%
Response Time:
878ms
Service Level:
100%
Response Time:
16ms
Service Level:
100%
Response Time:
359ms
Service Level:
100%
Response Time:
1,451ms
Service Level:
100%
Response Time:
364ms