Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YouTube Badge #5101

Closed
MohamedAliRashad opened this issue May 17, 2020 · 4 comments · Fixed by #5132
Closed

YouTube Badge #5101

MohamedAliRashad opened this issue May 17, 2020 · 4 comments · Fixed by #5132
Assignees
Labels
service-badge New or updated service badge

Comments

@MohamedAliRashad
Copy link

MohamedAliRashad commented May 17, 2020

📋 Description

  • The Badge will have the youtube logo on it with a red theme and an endpoint to a specified video or a channel.
  • It will also be customizable to monitor a view count, a like count or a subscription count (like any social badge).

🔗 Data

YouTube API has a live streaming option now, Tom Scott has proven this idea.

🎤 Motivation

  • It will be nice for linking demonstration videos to repos without taking this huge space for showing the video thumbnail or just leave an embedded link in a word.
  • Also, it can help content creators to have a clean way of merging their tutorials with their repos in GitHub.
@MohamedAliRashad MohamedAliRashad added the service-badge New or updated service badge label May 17, 2020
@PyvesB
Copy link
Member

PyvesB commented May 18, 2020

Hello @MohamedAliRashad , thanks for the suggestion!

I've done a bit of digging, and I believe the relevant API to get statistics about a video (viewers, likes, etc.) is the following: https://developers.google.com/youtube/v3/docs/videos#resource

Keeping in mind the problems that we've had with other services, for example #2120, I looked into the API quota documentation. If my understanding is correct, we would need to perform a video list call with a statistics part. This would consume approximately 3 API units, amounting to 3333 API calls per day. If the badge becomes popular, this may not be sufficient, but it seems easy enough to request a free quota increase by filling in a form.

Given the above and given that YouTube is used by quite a few developers, I think adding this badge would be a good idea!

Would you be interested in helping us out? We've got a great little tutorial to get you started!

@MohamedAliRashad
Copy link
Author

Thanks @PyvesB for the research, i would very much like to help but my knowledge in JavaScript is basically zero so i don't think i will be of much help.

@PyvesB
Copy link
Member

PyvesB commented May 20, 2020

Okay fair. Will probably pick this up myself at some point, however, if someone wants to pick it up in the meantime, feel free to ping me here!

@ngoldack
Copy link

ngoldack commented Sep 2, 2020

I've created a simple api so you can use a custom /endpoint badge for youtube. You need to deploy it yourself but with vercel it's free and simple: https://github.com/ntec-io/youtube-channel-badge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service-badge New or updated service badge
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants