Anime Kai REST API is a high-performance, developer-first scraping engine designed to unlock the full potential of AnimeKai. By combining advanced HTML parsing with automated token encryption, this API provides a seamless bridge to anime metadata, episode lists, and direct m3u8 streaming links.
- 🎬 Direct Streaming Resolver: Automated multi-step decryption to find real
m3u8video sources. - 🕒 Smart Timestamps: Built-in intro and outro skip points for a premium viewing experience.
- 🏠 Dynamic Dashboard: Scrapes homepage banners, latest updates, and trending anime (Now, Day, Week, Month).
- 🧬 Automated Encryption: Zero-manual-work integration with
enc-dec.appfor secure token (_) parameters. - 🧼 Pristine Source Code: Clean, comment-free, and production-ready Python logic.
This project is built using modern Python tools to ensure speed and reliability:
- Flask: Lightweight and scalable RESTful API framework.
- BeautifulSoup4: Elegant HTML parsing and data extraction.
- Requests: Robust HTTP communication with custom header management.
- Enc-Dec Bridge: External integration for rolling token security.
Ensure you have Python 3.10 or higher installed.
# Install required packages
pip install flask flask-cors requests beautifulsoup4
# Clone the repository
git clone [https://github.com/DPModsPro/AnimeKai-API.git](https://github.com/DPModsPro/AnimeKai-API.git)
cd AnimeKai-API
# Start the server
python app.py
If you want to host this API on platforms like Render, Heroku, or Railway, you need to follow these specific steps:
Make sure your repository has a requirements.txt file in the root directory. gunicorn is mandatory for production cloud deployment. Create or update your file to look exactly like this:
Flask
flask-cors
requests
beautifulsoup4
gunicorn
When deploying, make sure to configure the following settings in your deployment dashboard:
- Build Command: bash
pip install -r requirements.txt - Start Command: Cloud platforms use gunicorn to run Flask apps in production. Enter the following in the Start Command input box:
gunicorn app:app
(Note: If your main python file is named main.py instead of app.py, use gunicorn main:app instead).
| Order | Action | Endpoint | Purpose |
|---|---|---|---|
| 0 | Search | GET /api/search?keyword=Naruto | Find the anime slug. |
| 1 | Info | GET /api/anime/{slug} | Extract metadata and the key ani_id. |
| 2 | Episodes | GET /api/episodes/{ani_id} | Retrieve individual episode tokens. |
| 3 | Servers | GET /api/servers/{ep_token} | Discover Sub, Dub, and Softsub mirrors. |
| 4 | Play | GET /api/source/{link_id} | Final Prize: Direct m3u8 stream! |
Developed and visioned by Walter. Please star the repository for future updates For contributions, bug reports, or feature requests, visit the official repository: 🔗 GitHub Repository
Made with ❤️by Walter for the Anime Community. Educational use only.
