Skip to content

Sometimes we need YouTube channels Total Subscribers, videos, views, etc. This will help you to find those details.

Notifications You must be signed in to change notification settings

raj-khan/subscribers-count-youtube-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 

Repository files navigation

Subscribers Count YouTube API

Sometimes we need YouTube channels Total Subscriber, Total videos, total views, this will help you to find those details.

Logo

Requirements

API Reference

Get details

  GET https://www.googleapis.com/youtube/v3/channels?part=statistics&id=$[channelID]]&key=${API KEY}
Parameter Type Description
API KEY string Required. Your API key
channelID string Required. Your YouTube Channel ID

Demo

https://raj-khan.github.io/youtube-subscribers/

FAQ

How to find API KEY?

You need to create a google developers account, then craete a project using YouTube API v3. In credential section you can generate API.

How to find YouTube channel ID?

While playing any youtube video if you click on this YouTube channel you can find the user ID in the browser url section.

Watch the video

Tech Stack

JavaScript, HTML, Google Developers API

Support

For support, email meherullah97@gmail.com.

Code/Examples

fetch(`https://www.googleapis.com/youtube/v3/channels?part=statistics&id=['CHANNEL ID']&key=[API KEY]`)
    .then(response => {
        return response.json()
    })
    .then(data => {
    console.log(data);
})

License

GLWTPL

About

Sometimes we need YouTube channels Total Subscribers, videos, views, etc. This will help you to find those details.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published