Project Name: YouTube Insights API
Description: The YouTube Insights API provides access to trending videos data from various countries and artists. It crawls data from the Kworb website and presents it in a structured JSON format, allowing developers to integrate YouTube trending data into their applications.
Usage:
- Clone the repository:
git clone https://github.com/tiendk195/api-mtiendev.git
- Navigate to the project directory:
cd api-mtiendev
- Install dependencies:
npm install
- Start the server:
npm start
- Access the API endpoints:
/youtubeAll
: Get all top trending YouTube videos globally./youtubeAsian
: Get all top trending YouTube videos in Asian region./treding
: Get music videos trending worldwide./artistVideos/{artist}
: Get top trending YouTube videos of a specific artist./mostViewVideos/{mostView}
: Get most viewed videos by category
Deployment on Render:
-
Or try accessing the API at: https://api-mtiendev.onrender.com/
Contributing: Contributions are welcome! If you have any suggestions, feature requests, or bug reports, please open an issue or create a pull request on GitHub.
License: This project is licensed under the MIT License. See the LICENSE file for details.
Contact: For any inquiries or support, please contact tiendk195@gmail.com.
Acknowledgements:
- This project utilizes the Axios, Cheerio, Express, and Swagger UI Express libraries.
- Special thanks to Kworb for providing the YouTube trending data used in this API.
Happy coding!
Note:
-
Due to the resource-intensive nature of cron data, please consider this when deploying to a server.
-
Ensure that your Render web service is configured to build from the correct branch and has the appropriate build settings for Node.js applications.