A web application for analyzing YouTube videos, comparing metrics, and visualizing trends with AI-powered insights.
- Search for YouTube videos
- View detailed analytics for individual videos
- Compare multiple videos with interactive charts
- Analyze video performance trends over time
- View and analyze video comments
- AI-powered video analysis using Google Gemini
- Featured channel: @davidstrejc
- Backend: Node.js, Express
- Frontend: React, Chart.js
- APIs: YouTube Data API v3, Google Gemini AI
- Data Visualization: Chart.js
- Node.js (v14 or higher)
- npm (v6 or higher)
- YouTube Data API key
- Clone the repository:
git clone <repository-url>
cd youtubeanalyzer
- Install dependencies:
npm install
- Create a
.env
file in the root directory and add your YouTube API key:
PORT=5000
YOUTUBE_API_KEY=your_youtube_api_key_here
NODE_ENV=development
To run both the backend server and frontend development server concurrently:
npm run dev
This will start:
- Backend server on http://localhost:5000
- Frontend development server on http://localhost:3000
To create a production build:
npm run build
To run the production build:
npm start
GET /api/video/:id
- Get video detailsGET /api/video/:id/comments
- Get video commentsGET /api/video/:id/stats/history
- Get video statistics historyGET /api/video/:id/ai-analysis
- Get AI-powered analysis of video contentPOST /api/videos/compare
- Compare multiple videosGET /api/search
- Search for videos
- Enter a search term in the search bar to find YouTube videos
- Click on a video card to view detailed analytics
- Check the checkbox on multiple videos to select them for comparison
- Click on the "Compare" tab to see a comparison of the selected videos
- In the video analytics view, click on the "AI Analysis" tab to get AI-powered insights about the video content, engagement, and growth potential
MIT