Skip to content

MSMods-Pro/AnimeKai-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🎌 Anime Kai REST API

Anime Kai Logo

Python Flask GitHub Status


🌟 Overview

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.

💎 Key Features

  • 🎬 Direct Streaming Resolver: Automated multi-step decryption to find real m3u8 video 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.app for secure token (_) parameters.
  • 🧼 Pristine Source Code: Clean, comment-free, and production-ready Python logic.

🛠 Architecture & Tech Stack

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.

🚀 Installation & Deployment

1. Set Up Environment

Ensure you have Python 3.10 or higher installed.

# Install required packages
pip install flask flask-cors requests beautifulsoup4

2. Launch the API

# 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

☁️ Cloud Deployment (Render, Heroku, etc.)

If you want to host this API on platforms like Render, Heroku, or Railway, you need to follow these specific steps:

1. Add requirements.txt

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

2. Deployment Commands (For Render)

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).

📖 API Documentation

Example Discovery Flow

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!

👤 Author & Contribution

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.

About

🚀 Anime Kai - Unofficial REST API A high-performance, developer-first scraping engine that provides seamless access to AnimeKai's massive library. This API handles all the heavy lifting—from rich metadata discovery (Search, Home, Details) to automated decryption of direct m3u8 streaming links.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages