raj-khan / subscribers-count-youtube-api

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

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

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