Add custom API key support for private playlists#9
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: marzzuki <40539669+marzzuki@users.noreply.github.com>
Co-authored-by: marzzuki <40539669+marzzuki@users.noreply.github.com>
Co-authored-by: marzzuki <40539669+marzzuki@users.noreply.github.com>
Co-authored-by: marzzuki <40539669+marzzuki@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for private playlists feature
Add custom API key support for private playlists
Oct 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Users can now access private YouTube playlists by providing their own API key. The key is stored in browser localStorage and used for all YouTube API calls when present, falling back to the default key otherwise.
Changes
New Component
ApiKeyInput.jsx- Collapsible UI for entering/clearing custom API keys with localStorage persistenceAPI Key Propagation
App.jsx- Manages custom API key state at root levelHeroSection.jsx- Renders ApiKeyInput componentInput.jsx- Uses custom key for playlist metadata and items fetchingResults.jsx- Passes custom key to video details hookuseVideoDurations.js- Uses custom key for video duration/channel API callsDocumentation
Screenshots
Collapsed state:

Expanded with API key input:

Security Note
API key is stored in clear text in localStorage by design—it must be readable to authenticate with YouTube's API. Users are informed the key is stored locally and never transmitted to our servers.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.