Skip to content

fix: YouTube subscriber count is hardcoded and outdated #1956

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

iamashishxo
Copy link

Fixes #1954

Key changes:
Implemented YouTube Data API integration
Added environment variable configuration
Created reusable YouTube data fetching utilities
Added proper error handling and loading states
Implemented number formatting for subscriber counts (K/M suffixes)

Type of change
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)

How should this be tested

Set up environment variables:
``
YOUTUBE_API_KEY=your_api_key

YOUTUBE_CHANNEL_ID=your_channel_id
``

Test the following scenarios:
Verify subscriber count displays correctly
Verify video count displays correctly
Test with invalid API key (should fail gracefully)
Test loading state appears while fetching data
Verify mobile responsiveness

Mandatory Tasks
Self-reviewed the code
Verified no console errors
Tested multiple viewport sizes

Checklist
My code follows the style guidelines of this project
I have commented my code, particularly in hard-to-understand areas
My changes generate no new warnings
I have checked that my changes don't break existing functionality

Screnshot

After
Screenshot 2025-06-19 at 5 56 43 PM

Copy link

vercel bot commented Jun 19, 2025

@iamashishxo is attempting to deploy a commit to the Piyush Garg's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added the bug Something isn't working label Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: YouTube subscriber count is hardcoded and outdated
1 participant