YouTube search
Developed a single-page web application in PHP/JavaScript that allows users to search for videos on YouTube, view them in an embedded player, and track popular content. The project is executed in a modern responsive design with support for dark/light themes.
Key Features
Search for videos by keywords through YouTube results
Embedded video player with autoplay
Display of popular (trending) videos on the homepage
Dynamic loading of the results list in card format
Automatic opening of the first video after searching
Support for dark and light themes (saving the selection in localStorage)
Responsive design — works correctly on mobile devices and PCs
Technical Details
Backend: PHP (curl, parsing YouTube pages, caching trending videos in a JSON file)
Frontend: HTML5, CSS3 (Flexbox, Grid, CSS variables, responsive layout)
Interactivity: Vanilla JavaScript (without external libraries)
API/parsing: using YouTube oEmbed API for basic information, parsing ytInitialData from YouTube pages for search and trends
Key Features
Search for videos by keywords through YouTube results
Embedded video player with autoplay
Display of popular (trending) videos on the homepage
Dynamic loading of the results list in card format
Automatic opening of the first video after searching
Support for dark and light themes (saving the selection in localStorage)
Responsive design — works correctly on mobile devices and PCs
Technical Details
Backend: PHP (curl, parsing YouTube pages, caching trending videos in a JSON file)
Frontend: HTML5, CSS3 (Flexbox, Grid, CSS variables, responsive layout)
Interactivity: Vanilla JavaScript (without external libraries)
API/parsing: using YouTube oEmbed API for basic information, parsing ytInitialData from YouTube pages for search and trends