Giter Club home page Giter Club logo

youtube-stats-card's Introduction

YouTube Stats Card

YouTube Stats Card

Get dynamically generated YouTube Stats Cards for your github readmes & websites!

View Demo Β· Report Bug Β· Request Feature

What’s In This Document

YouTube Channel Stats Card

Usage

[![Dhyey's youtube stats](https://youtube-stats-card.vercel.app/api?channelid=UCpKizIKSk8ga_LCI3e3GUig)](https://www.youtube.com/channel/UCpKizIKSk8ga_LCI3e3GUig)

Change the ?channelid= value to your YouTube Channel ID.

Check out this to get your youtube channel id.

Layout Demos

Below layouts uses default parameters*

Layouts Preview
Default Layout Dhyey's youtube stats
Center Layout &layout=center Dhyey's youtube stats
Exruded Layout &layout=extruded Dhyey's youtube stats

Customization

All the Customizations are applied to the default layout*

Parameters Preview
Hide Icons &hide_icons=true Dhyey's youtube stats
Hide Logo &hide_logo=true Dhyey's youtube stats
Color Theme &theme=THEME_NAME Dhyey's youtube stats
Hide Border &hide_border=true Dhyey's youtube stats
Manual Color Theme &title_color=cbf7db&icon_color=99ffbe
&text_color=fffefe&bg_color=40423e
Dhyey's youtube stats
Custom Title custom_title=My%20Channel%20Name Dhyey's youtube stats

Check all the available color themes here or checkout the theme config file & you can also contribute new themes if you like πŸ™‚.

Overview

You can customize the appearance of your Channel Stats Card with following URL params:

  • hide_icons - Hide the icons from channel card (boolean)
  • hide_logo - Hide the logo from channel card (boolean)
  • theme - Name of the theme, choose from all available themes
  • hide_border - Hides the card's border (boolean)
  • title_color - Card's title color (hex color)
  • text_color - Body text color (hex color)
  • icon_color - Icons color if available (hex color)
  • bg_color - Card's background color (hex color)
  • custom_title - Add custom title to the channel card (use %20 to add space)
  • cache_seconds - set the cache header manually (min: 1800, max: 86400)

Note on cache: All cards have a default cache of 2 hours (7200 seconds). Also, note that the cache is clamped to a minimum of 2 hours and a maximum of 24 hours.


β€’ β€’ β€’ β€’

YouTube Video Stats Card

Usage

[![Dhyey's video stats](https://youtube-stats-card.vercel.app/api/video?videoid=4vwZNTagHsQ)](https://youtu.be/4vwZNTagHsQ)

Change the ?videoid= value to your youtube video ID.

Check out this to get your youtube video id.

Layout Demos

Below layouts uses default parameters*

Layouts Preview
Default Layout Dhyey's video stats
Compact Layout &layout=compact Dhyey's video stats

Customization

All the Customizations are applied to the default layout*

Parameters Preview
Hide Icons &hide_icons=true Dhyey's video stats
Hide Video Preview &hide_preview=true Dhyey's video stats
Color Theme &theme=THEME_NAME Dhyey's video stats
Hide Border &hide_border=true Dhyey's video stats
Manual Color Theme &title_color=cbf7db&icon_color=99ffbe
&text_color=fffefe&bg_color=40423e
Dhyey's video stats
Hide Channel Name &hide_channelname=true Dhyey's video stats

Check all the available color themes here or checkout the theme config file & you can also contribute new themes if you like πŸ™‚.

Overview

You can customize the appearance of your Video Stats Card with following URL params:

  • hide_icons - Hide the icons from video card (boolean)
  • hide_preview - Hide the video preview from video card (boolean)
  • theme - Name of the theme, choose from all available themes
  • hide_border - Hides the card's border (boolean)
  • title_color - Card's title color (hex color)
  • text_color - Body text color (hex color)
  • icon_color - Icons color if available (hex color)
  • bg_color - Card's background color (hex color)
  • hide_channelname - Hide the channel name in video card
  • cache_seconds - set the cache header manually (min: 1800, max: 86400)

Note on cache: All cards have a default cache of 2 hours (7200 seconds). Also, note that the cache is clamped to a minimum of 2 hours and a maximum of 24 hours.

Support the project

If you are using this project and happy with it or just want to encourage me to continue creating stuff, there are few ways you can do it :-

  • Giving proper credit when you use youtube-stats-card on your readme.
  • Starring and sharing the project.

If you would like to see a feature implemented, don't hesitate to add it to the issues list, or better is to create pull request 😎

Contributions are welcome!

License

Licensed under the MIT License.

Acknowledgements

Inspired by anuraghazra's github-readme-stats

youtube-stats-card's People

Contributors

dhyeythumar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

devqueue nikitait

youtube-stats-card's Issues

Error in video stats card for a particular video id

Describe the bug
Video API is giving error of a particular video & for other video ist working.

Expected behavior
Video id provided is public n active but still api is giving error.

Screenshots / Live demo link (paste the youtube-stats-card link as markdown image)

Error for this video id: https://youtube-stats-card.vercel.app/api/video?videoid=tFq6Q_muwG0&layout=compact
not working

But works for this one: https://youtube-stats-card.vercel.app/api/video?videoid=4vwZNTagHsQ&layout=compact
working

Any suggestions on logo?

I am thinking to change the logo used on Readme, so do anyone have any suggestions on this?

Originally logo looks like this:

logo

But I think this can be much better. So if you have any ideas on this then please post them here in this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.