Cosmobox Demo
YouTube API Integration Demo
Public Demo - No Login Required
How Cosmobox Uses YouTube Data API
- • search.list - Find karaoke videos by song title/artist
- • videos.list - Get video duration information
- • Results displayed: Video ID, Title, Thumbnail, Channel Name
- • Videos played via official YouTube TV app (not embedded)
API Request Example
GET /api/youtube/search?q={query}&maxResults=20&karaoke=true
Response:
{
"results": [
{
"id": "video_id",
"title": "Song Title",
"artist": "Channel Name",
"duration": 240,
"thumbnail_url": "https://i.ytimg.com/...",
"is_karaoke": true
}
],
"cached": false
}YouTube API Compliance
We DO:
- ✓ Use official YouTube Data API v3
- ✓ Display proper attribution
- ✓ Use YouTube TV app for playback
- ✓ Cache results for 24 hours max
We DO NOT:
- ✗ Download or re-host videos
- ✗ Modify video content
- ✗ Remove YouTube branding
- ✗ Store personal user data