This project will help you to create Live img.shields.io Badges which will Count YouTube Stats (Subscriber, Views, Videos) without YouTube API

Free YouTube Stats Badge

This project will help you to create Live img.shields.io Badges which will Count YouTube Stats (Subscriber, Views, Videos) without YouTube API

Motive of this project

There is no way to get YouTube Stats (Subscriber Count, Videos Count, Views Count) without using YouTube API, that's why there is no public img.shield.io badge which will count Live YouTube Stats for you.

That's why, I've created this project, which will help you to create Live YouTube Stats Badges for absolutely Free, which you can then use on your GitHub page.

Example Badges

Urls

Name Example
Live Subscriber count Custom badge
Live Total Views count Custom badge
Live Total Videos count Custom badge

Styles

Name Examples
plastic Custom badge
flat Custom badge
flat-square Custom badge
for-the-badge Custom badge
social Custom badge

Features

  • Caching Functionality to Prevent Rate Limiting
  • Using Free API for fetching LIVE YouTube Stats
  • Converts Integer (e.g. 10700) to K-Thousand, M-Million, B-Billion, T-Trillion Number (e.g. 10.7K)
  • Very Low Latency as Whole Project is Written in GoLang

Commands For Local Testing

  • How to use on Windows Server for testing purposes
# Export Cache Time Global Variable
SET CACHE_TIME=10

# Export CHANNEL_ID Global Variable containing your YouTube Channel ID
SET CHANNEL_ID=UCRv-wp0CWXXXXXX3NkTIXXX  

# Running API
go run .

# Visit: http://localhost:8090/subscribers
  • How to use on Linux Server for testing purposes
# Export Cache Time Global Variable
export CACHE_TIME=10

# Export CHANNEL_ID Global Variable containing your YouTube Channel ID
export CHANNEL_ID=UCRv-wp0CWXXXXXX3NkTIXXX

# Running API
go run .

# Visit: http://localhost:8090/subscribers

Deployment

It is neccessary to deploy this repo by yourself to get a domain for the desired youtube channel. An easy and free way to deploy this repo is by using vercel. Just use the button below.

Deploy with Vercel

Step by step

  1. Click on the above deploy button or simply click here

  2. Click on GitHub Button

    url image

  3. Click on Add GitHub Namespace and Authorize vercel

    url image

  4. After Adding the GitHub Namespace, Select your Namespace from the Drop down url image

  5. Type Any Repository Name of your choice & then click on Create Button

    url image

  6. Type your Channel ID and Cache Time, then finally click on Deploy Button

    url image

Usage

  1. Deploy the repo and get your url from domains

    Example in vercel:

    url image

  2. Visit this url: Shields.io and scroll down

    url image

  3. Add your vercel url to the url field

  4. Add your wanted url suffix:

    • to get the subscriber count: add api/subscriber
    • to get the view count: add api/views
    • to get the video count: add api/videos

    It should look like this:

    url image

  5. Override the labels/colors/logo if you want (optional)

  6. Click on the button to copy the badge url

    url image

Owner
Pushpender Singh
A Ethical Hacker, Programmer & Web Developer who just love to code in python
Pushpender Singh
Similar Resources

Open Source runtime tool which help to detect malware code execution and run time mis-configuration change on a kubernetes cluster

Open Source runtime tool which help to detect malware code execution and run time mis-configuration change on a kubernetes cluster

Kube-Knark Project Trace your kubernetes runtime !! Kube-Knark is an open source tracer uses pcap & ebpf technology to perform runtime tracing on a de

Sep 19, 2022

Plays videos using Prometheus, e.g. Bad Apple.

Plays videos using Prometheus, e.g. Bad Apple.

prom_bad_apple Plays videos using Prometheus, e.g. Bad Apple. Inspiration A while back I thought this blog post and the corresponding source code were

Nov 30, 2022

tfa is a 2fa cli tool that aims to help you to generate 2fa code on CI/CD pipelines.

tfa tfa is 2fa cli tool that aim to help you to generate 2fa code on CI/CD pipelines. You can provide secret with stdin or flag. Install brew install

Nov 27, 2022

Hackathon project with intent to help based on heuristics for aks cluster upgrades.

Hackathon project with intent to help based on heuristics for aks cluster upgrades.

AKS-Upgrade-Doctor AKS Upgrade Doctor is a client side, self-help diagnostic tool designed to identify and detect possible issues that cause upgrade o

Sep 20, 2022

A live-updating version of the UNIX wc command.

A live-updating version of the UNIX wc command.

lwc A live-updating version of the UNIX wc command. Installation You can get a prebuilt binary for every major platform from the Releases page. Just e

Jul 26, 2022

🔎 gowatch Live reload for go apps.

Watch 🔎 gowatch Live reload for go apps Motivation I had no app to live reload my Go programs. Usage Install go install github.com/gelfand/gowatch ◆

Dec 29, 2021

Litestream-read-replica-demo - A demo application for running live read replication on fly.io with Litestream

Litestream Read Replica Demo A demo application for running live read replicatio

Oct 18, 2022

An example of using Litestream's live read replication feature.

Litestream Read Replica Example This repository is an example of how to setup and deploy a multi-node SQLite database using Litestream's live read rep

Dec 14, 2022

Tool which gathers basic info from apk, which can be used for Android penetration testing.

Tool which gathers basic info from apk, which can be used for Android penetration testing.

APKSEC Tool which gathers basic info from apk, which can be used for Android penetration testing. REQUIREMENTS AND INSTALLATION Build APKSEC: git clon

Sep 2, 2022
A shields.io API for your youtube channel to protect your api key
A shields.io API for your youtube channel to protect your api key

Youtube-Channel-Badge A shields.io API for your youtube channel to protect your

Dec 23, 2021
A go (golang) library to search videos in YouTube.

YT Search A go (golang) library to search videos in YouTube. Installation go get github.com/AnjanaMadu/YTSearch Usage package main import ( "fmt"

Oct 1, 2022
A long-running Go program that watches a Youtube playlist for new videos, and downloads them using yt-dlp or other preferred tool.

ytdlwatch A long-running Go program that watches a Youtube playlist for new videos, and downloads them using yt-dlp or other preferred tool. Ideal for

Jul 25, 2022
Simple project by Follow up Question from LINE MAN Wongnai about summary covid stats from API.

Simple JSON API to summarize COVID-19 stats API created by Follow-up Question from LINE MAN Wongnai. they can show summary covid stats from Province a

Feb 19, 2022
A simple project (which is visitor counter) on kubernetesA simple project (which is visitor counter) on kubernetes

k8s playground This project aims to deploy a simple project (which is visitor counter) on kubernetes. Deploy steps kubectl apply -f secret.yaml kubect

Dec 16, 2022
A Prometheus exporter which scrapes metrics from CloudLinux LVE Stats 2
A Prometheus exporter which scrapes metrics from CloudLinux LVE Stats 2

CloudLinux LVE Exporter for Prometheus LVE Exporter - A Prometheus exporter which scrapes metrics from CloudLinux LVE Stats 2 Help on flags: -h, --h

Nov 2, 2021
Poc rsa - A simple golang scaffolding to help me to create new api projects or workers with golang on k8s

go-scaffold A simple golang scaffolding to help me to create new api projects or

Feb 3, 2022
Help my family picking secret santas without having a person beeing involved

secret-santa This is a small project I wrote to help my family picking secret santas without having a person beeing involved. This way noone is left o

Nov 6, 2021
Count total LoC in a given folder, recursively.

GoLoc A simple CLI tool to calculate the total LoC of a given directory. Usage goloc Flags Flag Description --use-gitignore Use your .gitignore file a

Apr 27, 2022
Kepler (Kubernetes-based Efficient Power Level Exporter) uses eBPF to probe energy related system stats and exports as Prometheus metrics
Kepler (Kubernetes-based Efficient Power Level Exporter) uses eBPF to probe energy related system stats and exports as Prometheus metrics

kepler Kepler (Kubernetes Efficient Power Level Exporter) uses eBPF to probe energy related system stats and exports as Prometheus metrics Architectur

Dec 26, 2022