If you don’t want to use the YouTube API, you can use an npm package like "ytdl-core" to fetch YouTube video details.
Steps to Implement:
like:) npm install ytdl-core
- Create a getYoutubeVideoDetails server action
- Import ytdl-core and pass the video ID to retrieve video details.