This application uses AI to analyze YouTube trends based on a user-provided niche. It suggests current trends and provides example YouTube videos related to those trends.
- Analyzes YouTube niches using the Google Gemini API.
- Provides a brief trend analysis for the given niche.
- Suggests YouTube search queries to find relevant content.
- Fetches and displays recent trending videos from YouTube based on the AI's suggestions.
To run this application, you need to configure API keys for the Google Gemini API and the YouTube Data API.
-
API Keys:
API_KEY: Your Google Gemini API key.YOUTUBE_API_KEY: Your YouTube Data API v3 key.
-
Environment Variables: These keys must be set as environment variables. The application will look for
process.env.API_KEYandprocess.env.YOUTUBE_API_KEY.For local development, you can create a
.envfile in the root of the project with the following content:API_KEY="YOUR_GEMINI_API_KEY" YOUTUBE_API_KEY="YOUR_YOUTUBE_API_KEY"Replace the placeholder values with your actual API keys. Ensure your development environment or server is configured to load these variables.
- Ensure you have set up your API keys as environment variables (see Setup section).
- Open the
index.htmlfile in your web browser. Alternatively, you can serve the project directory using a simple HTTP server. For example, using Python:Then navigate topython -m http.server
http://localhost:8000(or the port shown by the server) in your browser.
- React
- Tailwind CSS
- Google Gemini API (@google/genai)
- YouTube Data API